FAT Read File Example bug found

A forums to allow bugs and problems with Flowcode v6 to be reported and resolved.

Moderator: Benj

Post Reply
NickDA
Posts: 8
Joined: Thu Jun 28, 2007 2:09 pm
Has thanked: 1 time
Contact:

FAT Read File Example bug found

Post by NickDA »

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
Attachments
sd_card.jpg
sd_card.jpg (52.16 KiB) Viewed 2724 times

User avatar
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

Post by Benj »

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.

Post Reply