Electronic – SD card Sector size

atxmegaavrsd

I am working with an SD card using AVR microcontroller.

Questions:

  • Is it possible to change the sector size of SD cards or is it fixed 512 bytes in SD card's case?
  • What things should be considered if I want to change the sector size of SD card with MCU?

Waiting for suggestion, Thank you.

Best Answer

The sector size of an SD card is fix, so you can not change it. Most cards use 512 or 1024 byte sector size. To get the best performance out of the card, you should try to write in blocks of the sector size (or multiples), since sectors are written internally as a whole.