AnsweredAssumed Answered

SDHC writing block procedure

Question asked by Mario Vargas López on Jan 8, 2019
Latest reply on Jan 8, 2019 by Mario Vargas López

I am doing a project using the SDHC module in the K64F board, I believe that the initialization process is fine, but now i want to write into the SD card, does anyone has an example for the writing procedure that must be done? 


Now I am trying with the following steps:

  1. Select the card using CMD7 with the RCA given by the CMD3 at the initialization process
  2. Write into the SDHC_DATPORT (the data entered into this register is some random data just to see if my procedure is correct)
  3. Send the CMD24 (Write block) with address 0 
  4. Stop transmission using CMD12 


Note: When I send the CMD24 my card status has the APP_CMD flag set, I wonder if there is a way to reset it or if this does not affect. 




Mario V.