Page 2 of 2

Re: Do not get any data from SD CARD.

Posted: Sat Jan 09, 2021 4:24 pm
by mon2
@jems - is the posted project complete?

Unable to import into the toolchain and compile without errors.

Does it compile for you ok?

Please select the root folder and zip / rar the entire folder structure and post again.

Also, is sdcard_test.c your main source file inside this project? That C source code file is not initializing any XMOS related hardware.

This project is dealing with the SPI 1 bit interface. Which hardware kit are you using for this development? Recommend to code up SPI routines to read/write to the SPI flash memory that is onboard your kit. Somewhere on this forum I posted working code for the XMOS StartKit that does this. It should be relatively straight forward to shift the same code onto any XMOS kit. Then you can have a working code foundation that can be expanded for use with the SD card use.

Re: Do not get any data from SD CARD.

Posted: Tue Jan 12, 2021 12:39 pm
by jems
I had done as per example suggested.
It compiles ok with .c file which actually calls the particular selected mode xc file and print the data on print line.
If possible go through GitHub example and revert back.

Re: Do not get any data from SD CARD.

Posted: Tue Jan 12, 2021 1:23 pm
by jems