I've been trying to read a file from a SD card without much success on my own so I downloaded the example file (FAT Read_File.fcfx) from the main site. I then downloaded the code (without any modification) onto an ECIO40P. The program ran but stuck with the message "Waiting for Card" on the LCD. After much wailing and gnashing of teeth I found the problem; in the SD card setup (v5__fat160 properties) the miso_pin and mosi_pin settings are reversed! The correct values are shown below:-[attachment=0]sd_card.jpg[/attachment]
Best regards,
Nick
FAT Read File Example bug found
Moderator: Benj
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: FAT Read File Example bug found
Hi Nick,
Thanks for sharing your findings, I will investigate the examples.
In your component properties the channel is not set to anything, it may default to software mode with nothing specified but I would advise that you ensure this is also set correctly.
Thanks for sharing your findings, I will investigate the examples.
In your component properties the channel is not set to anything, it may default to software mode with nothing specified but I would advise that you ensure this is also set correctly.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel