can anyone give me a sd card project for SK S7g2. The filex port framework project is on dk, i am looking for a starting point on sk board but could not find any..
The "FileX Port Block Media Framework Module Guide - Application Project" ( www.renesas.com/.../D6003792.html ) does work on the S7G2-SK. The only thing is that you have to attach an SDCARD reader.I've hacked a SDCARD to microSDCARD reader and connected it to the necessary pins.Not perfect, but works as a proof of concept.
The only thing that I missed at first was the requirement for Pull-up resistors on the clock, data, cmd lines. You can enable the internal pull ups on the I/O lines for this in the Pin configuration tool.
In reply to Richard:
In reply to heman:
Project is attached. The code is taken from the module guide, with the necessary hardware / pin modifications for the S7G2-SK board.
I cannot think of any reasons as to why the 16GB SDCARD will not work. FYI, my project was running with a 2GB SCARD.
NOTE: The project will not format the card, it assumes that it is already formatted.
I removed the capacitor C63 (TSCAP on P2.5) from the S7G2-SK board as I wish to use P2.5 as the DAT3 pin, not as a CTSU pin.
I have enabled the internal pull ups on all of the signals (CLK, CMD, DAT[3:0])
I have intentionally disabled the automatic formatting on intialisation as i think 5 -6 minutes of processing is huge in our application. The problem isn't with formatting!. I just cant write/ read from a 8gb/16gb micro sd card, but can from a 4gb microsd card. I was tring the same code for all trials. you might want to review my project once.sd_card_13_09_2019.zip
In reply to Jeremy:
The 8GB card is formatted as Fat32, and the filesystem starts at 0 offset into the disk :-