Trouble with read write on SD card

Hello community members.

I have recently started working with SD card using Microchip ARM based uC SAM4. So far I have managed to initialize the HSMCI interface of SAM4 and SD card is also initialized and has responded with the card capacity and the RCA (Relative Card Address). What I need to do now is read and write on the SD card. For  this purpose I have extracted some functions implemented in the Atmel Studio examples. What I am confused about is how is the addressing done for the SD card, I realize that the card responds with a RCA but afterwards how is the addressing tracked to read and write data over the SD card and if we want to read data previously written how do we know where to read it from. I understand these are very basic questions but as I mentioned I am very new to this and need assistance.

Thanks in advance.

Regards,

Owais.

Parents
  • Yes it may be a single allocating boot adresse probleme. Did you use an existing distribution, or did you try to compile yourself the code ? I have got this kind of probleme on the OMAP5432 when i tried myself to compile my own SD boot sequence.

    Or unfortunately it may be a dysfunctioning component on the board ?

Reply
  • Yes it may be a single allocating boot adresse probleme. Did you use an existing distribution, or did you try to compile yourself the code ? I have got this kind of probleme on the OMAP5432 when i tried myself to compile my own SD boot sequence.

    Or unfortunately it may be a dysfunctioning component on the board ?

Children