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:
- Select the card using CMD7 with the RCA given by the CMD3 at the initialization process
- Write into the SDHC_DATPORT (the data entered into this register is some random data just to see if my procedure is correct)
- Send the CMD24 (Write block) with address 0
- 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.