Search found 68 matches
- Wed Oct 03, 2012 2:59 pm
- Forum: Flowcode V5
- Topic: FAT Keeps Returning 255
- Replies: 79
- Views: 42389
Re: FAT Keeps Returning 255
Hi Henry, What about having say 12 AVRs running with 12 different SD cards all hooked up to the same output using diodes to control the current flow. Probably overkill for what you need but the chips and hardware etc shouldn't be that expensive if your making a custom board anyway and this will sim...
- Tue Oct 02, 2012 8:27 pm
- Forum: Flowcode V5
- Topic: FAT Keeps Returning 255
- Replies: 79
- Views: 42389
Re: FAT Keeps Returning 255
Ben,
Do you have any thoughts on my project?
Henry
Do you have any thoughts on my project?
Henry
- Sat Sep 29, 2012 1:51 am
- Forum: Flowcode V5
- Topic: FAT Keeps Returning 255
- Replies: 79
- Views: 42389
Re: FAT Keeps Returning 255
It's nearly impossible to do it this way, isn't it? Maybe the only way is to use an XMega AVR with 16kb of RAM.
- Thu Sep 20, 2012 1:47 am
- Forum: Flowcode V5
- Topic: FAT Keeps Returning 255
- Replies: 79
- Views: 42389
Re: FAT Keeps Returning 255
Hello, Alright. Is there a way to jump to specific sectors of a file other than looping the Move_To_Next_File_Sector macro? It might be possible for me to make a skip to function that allows you to skip directly to an offset sector in the file and maybe also directly to the end of the file if appen...
- Wed Sep 19, 2012 9:55 pm
- Forum: Flowcode V5
- Topic: FAT Keeps Returning 255
- Replies: 79
- Views: 42389
Re: FAT Keeps Returning 255
Hello, is there a way to read just ONE byte from the 512 byte buffer on the SD card? Transferring the entire buffer from the SD card to the local buffer takes way too much time. I would just read off each sector buffer of my 12 files, then store them in the AVR's ram, but 6.1 kbytes is too large fo...
- Tue Sep 18, 2012 8:49 pm
- Forum: Flowcode V5
- Topic: FAT Keeps Returning 255
- Replies: 79
- Views: 42389
Re: FAT Keeps Returning 255
Hello Henry, I think I can see your problem. When you are reading back the files you are not collecting the latest buffer from the file, instead you are using the local copy of the sector buffer. Here is your code at the moment. set file index (0) value = read byte from buffer (0) portd = value set...
- Sat Sep 15, 2012 1:35 am
- Forum: Flowcode V5
- Topic: FAT Keeps Returning 255
- Replies: 79
- Views: 42389
Re: FAT Keeps Returning 255
Hello Ben!Benj wrote:Hi jordy,
Are you opening the file after you create it? Can you attach your program.
Hi henry can you please attach your prog too and I'll have a look. I tested the mechanism by reading files so it should be working.
Attached are the files.
Henry
- Fri Sep 14, 2012 10:44 pm
- Forum: Flowcode V5
- Topic: FAT Keeps Returning 255
- Replies: 79
- Views: 42389
Re: FAT Keeps Returning 255
Ben, So I have a slight problem too. I have been playing around with the file index and so far it works perfectly for switching currently opened files to write to. But for some reason the file index won't switch the open file to the right one when reading from the card. It just stays on whatever the...
- Fri Sep 14, 2012 4:44 pm
- Forum: Flowcode V5
- Topic: FAT Keeps Returning 255
- Replies: 79
- Views: 42389
Re: FAT Keeps Returning 255
Right here we go here is the semi official release for the new and improved FAT component. FC5_GENERIC_FAT16.c The Generic File needs renaming to match the FAT component C file from your Components directory. Onc eyou have renamed the file copy it into the components folder replacing the file that ...
- Thu Sep 13, 2012 6:50 pm
- Forum: Flowcode V5
- Topic: FAT Keeps Returning 255
- Replies: 79
- Views: 42389
Re: FAT Keeps Returning 255
Hi Rocket, Sorry I'm not ignoring you. I have lots of thoughts but not sure how relevant they are. I will have another go to try and replicate your setup and see if I hit the same issue. A card that was working in v4 should certainly be working with the newer code, the same goes (hopefully) for car...
- Thu Sep 13, 2012 3:26 pm
- Forum: Flowcode V5
- Topic: FAT Keeps Returning 255
- Replies: 79
- Views: 42389
Re: FAT Keeps Returning 255
Do you have any thoughts?
- Tue Sep 11, 2012 4:04 pm
- Forum: Flowcode V5
- Topic: FAT Keeps Returning 255
- Replies: 79
- Views: 42389
Re: FAT Keeps Returning 255
Hi Rocket, Hmm is the sect bytes error returning on all the cards your trying or are you only testing a single card? What about if you format the card using different cluster sizes. Finally was the card working previously? Very odd as my PIC version is working for all cards and we have ported the c...
- Mon Sep 10, 2012 5:09 pm
- Forum: Flowcode V5
- Topic: FAT Keeps Returning 255
- Replies: 79
- Views: 42389
Re: FAT Keeps Returning 255
Ben,
Do you need me to post anything that would help you debug the error?
Do you need me to post anything that would help you debug the error?
- Wed Sep 05, 2012 7:05 pm
- Forum: Flowcode V5
- Topic: FAT Keeps Returning 255
- Replies: 79
- Views: 42389
Re: FAT Keeps Returning 255
Hello, I haven't tested on AVR hardware yet but it seems to compile. Let me know how you get on. Also you might want to make a backup of your old files just incase you need to go back for any reason. FC5_AVR_FAT16.c AVR_CAL_SPI.c The maximum number of files is set by this definition in the defines ...
- Wed Sep 05, 2012 12:55 am
- Forum: Flowcode V5
- Topic: FAT Keeps Returning 255
- Replies: 79
- Views: 42389
Re: FAT Keeps Returning 255
I have managed to get multiple files to work quite easily so I will add it to the master code base and generate you the AVR version. This will significantly improve the data speeds when handling multiple files and the new code shouldn't break any existing programs. (fingers crossed) Awesome!!! I ca...
- Tue Sep 04, 2012 1:48 am
- Forum: Flowcode V5
- Topic: FAT Keeps Returning 255
- Replies: 79
- Views: 42389
Re: FAT Keeps Returning 255
Hi Rocket, I can see that opening several files and streaming from them would be a big strain for the current FAT component as it was designed to only really ever deal with 1 file. Multiple files are possible but as the files get bigger the runtime gets exponentially slower. I suppose I could creat...
- Mon Sep 03, 2012 9:45 pm
- Forum: Flowcode V5
- Topic: FAT Keeps Returning 255
- Replies: 79
- Views: 42389
Re: FAT Keeps Returning 255
I've currently acheived quite a substantial speed increase on standard 8-bit PIC so i'm hoping dsPIC should really fly. The only issue now is that the read / write functions now seem a bit unreliable. I have put some things in place, some of which have worked and hope to post up something a bit mor...
- Mon Sep 03, 2012 8:08 pm
- Forum: Flowcode V5
- Topic: FAT Keeps Returning 255
- Replies: 79
- Views: 42389
Re: FAT Keeps Returning 255
Hello. In the move from v4 to v5 we added the CAL (code abstraction layer). Nothing else should have changed with the component but we have recently added some SDHC changes and these seem to be causing issues. I am still looking into this issue so hopefully I will be back shortly with some better n...
- Mon Sep 03, 2012 12:20 am
- Forum: Flowcode V5
- Topic: Flowcode v5.4 for PIC Released
- Replies: 11
- Views: 47716
Re: Flowcode v5.4 for PIC Released
And what about AVR? When will the update be arriving for this platform?
- Fri Aug 31, 2012 9:33 pm
- Forum: Flowcode V5
- Topic: FAT Keeps Returning 255
- Replies: 79
- Views: 42389
Re: FAT Keeps Returning 255
I'm going to have a dig in this weekend with the FAT component on PIC, AVR, ARM and dsPIC and see if I can get to the bottom of the issues. I'll let you know how I get on. Hopefully with some good news. Fantastic!! I have a quick question, has the speed of the SPI transactions for the Flowcode 5 FA...
- Fri Aug 31, 2012 2:33 pm
- Forum: Flowcode V5
- Topic: FAT Keeps Returning 255
- Replies: 79
- Views: 42389
Re: FAT Keeps Returning 255
Is there more information that you need me to provide so we can get this fixed?Benj wrote:Hello,
Have you tried in software mode at all to see if that helps? I don't have that chip available here for testing but I can try with a mega324P.
- Wed Aug 29, 2012 2:45 pm
- Forum: Flowcode V5
- Topic: FAT Keeps Returning 255
- Replies: 79
- Views: 42389
Re: FAT Keeps Returning 255
Hello, Have you tried in software mode at all to see if that helps? I don't have that chip available here for testing but I can try with a mega324P. Hi, I have tried software mode. First it returns 255, then it returns 254 a second later. If you could test with the 324P, that would be awesome! I'm ...
- Tue Aug 28, 2012 7:23 pm
- Forum: Flowcode V5
- Topic: FAT Keeps Returning 255
- Replies: 79
- Views: 42389
Re: FAT Keeps Returning 255
Could somebody over at Matrix Multimedia possibly help me? I need to interface the SD card for a project that has a deadline coming up soon!
Thanks!
Thanks!
- Sun Aug 26, 2012 6:42 pm
- Forum: Flowcode V5
- Topic: SPI/Max7219
- Replies: 8
- Views: 6899
Re: SPI/Max7219
Hi All! :D I have a couble of max 7219 SPI 7 segm. driver. I can see that it use SPI for data input. Can I use the SPI component in FC to drive this chip? The max7219 have 3 input for serial command Din Load Clock, but the SPI component in FC have only 2 output. Data for max7219: http://datasheets....
- Sun Aug 26, 2012 4:33 pm
- Forum: Flowcode V5
- Topic: FAT Keeps Returning 255
- Replies: 79
- Views: 42389
Re: FAT Keeps Returning 255
what type of microcontroller are you using? Have you tryed a different SD Card? maybe that card wont work with Flowcode. Regards Jordy I am using an ATmega328p. And yes, I have tried multiple cards. Same result. I don't think it is the card because all SD cards I have tried worked with the Flowcode...