anhnha
Full Member level 6
Hello,
I have a project in which I need to write to mmc card from atmega128. In atmega128 I declared a buffer 256 bytes to received an image from computer (the size of image is about 2M). Then I want to store this image in a mmc card and I must read buffer and write it into the card. However, I am not familiar to this.
An image(2M bytes) from computer is sent to atmega128. I declared a buffer(256 bytes) to temporarily store it. Then I want to write the data in buffer to mmc card(2G). I want to use fatfs but I don't have any experience in this.
Could anyone help me about these steps that I need to do?
I know that the minimum data block that can be write in mmc card is 512 bytes but is this still necessary if I use fatfs? I am confused because I only have a buffer 256 bytes and the buffer is not full of data. Therefore is it possible for me to write to mmc with a buffer 256 bytes(assume only 230 bytes data and 26 bytes is null)?
I have a project in which I need to write to mmc card from atmega128. In atmega128 I declared a buffer 256 bytes to received an image from computer (the size of image is about 2M). Then I want to store this image in a mmc card and I must read buffer and write it into the card. However, I am not familiar to this.
An image(2M bytes) from computer is sent to atmega128. I declared a buffer(256 bytes) to temporarily store it. Then I want to write the data in buffer to mmc card(2G). I want to use fatfs but I don't have any experience in this.
Could anyone help me about these steps that I need to do?
I know that the minimum data block that can be write in mmc card is 512 bytes but is this still necessary if I use fatfs? I am confused because I only have a buffer 256 bytes and the buffer is not full of data. Therefore is it possible for me to write to mmc with a buffer 256 bytes(assume only 230 bytes data and 26 bytes is null)?