What is the error shown?
But, as far as I know you need to run the MCU at 40MHz plus.
and
I will suggest you get this working with the code from MeLabs first.
What is the error shown?
But, as far as I know you need to run the MCU at 40MHz plus.
and
I will suggest you get this working with the code from MeLabs first.
Dave
Always wear safety glasses while programming.
Hello mackrackit,
i found that there is a problem with FSinit subroutine, pic's programm stuck in waitforcmdtimeout loop of SDFSHC32d file without returning to main programm. I tried a fix that a user(Alexey) did and worked out!!
But i got responce :....
....
loopcount var byte
loopcount= 0
waitforcmdtimeout:
if loopcount = 255 then
SD_CS = 1
return
endif
loopcount = loopcount +1 'ExtraCode
....
....
FAT_error= 6 SDC_status= 1 SDC_response= 255
FAT_error= 7 SDC_status= 1 SDC_response= 255
Also i forgot to say that i run the program at 32Mhz but still same results. Q: Is there need of 40Mhz ++ speeds ?? Isn't 32Mhz enough ?
I think MeLabs has code only for FAT16 and not for FAT32 example. Anyhow i'll use your advise and try to use one FAT16 example when i get my hands on 1 2Gb or less microSD
As it seems it's a pitty... But picbasic can't handle SD/microSD FAT32 formated cards yet... I hope someone in the future will add Statements, include files etc etc for this work.
One man's magic is ANOTHER man's engineering.Supernatural is a null word
Bookmarks