Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years ago.
Is this program supposed to be working?
Hello, I imported the FRDMK64_SDCard and compiled without issues, but the generated .bin file once loaded to the FRDMK64F seems to do nothing. Even the initializing message does not show up on the pcterminal... Is this program a work in progress or should it be ready for experimenting with a uSD card? Best regards,
Question relating to:
1 Answer
9 years ago.
Hi,
I found that the circuit has been modified between ver.D and ver.E.
If your board is ver.E or later, D8 is not PTA0 but PTC12.
Although the silk on the back of the board is still saying PTA0.
There may be more differences, but I have not checked them all.
Please refer to the newer schematic and make sure signals in your interest are still same with the elder boards.
In case not, modify the source code to reflect the change(s).
http://cache.freescale.com/files/microcontrollers/hardware_tools/schematics/FRDM-K64F-SCH-E3.pdf?fsrch=1&sr=3&pageNum=1
12-Nov-2015
moto
Hello,
My board is ver E, but I don't see the relevance of PTA0 or PTC12 to the SDHC interface... Could you please explain?
Thanks!
posted by 12 Nov 2015Hi,
It was my bad, I thought the HW difference caused the problem.
I have just imported the program and ran it with my FRDM-K64F (Rev.E).
It stopped after printing "Initializing"
I disabled the do_remove area, then rest worked fine.
#if 0 do_remove("/sd/test1"); /* clean up from the previous Lab 5 if was executed */ if (do_list("/sd") == 0) { printf("No files/directories on the sd card."); } #endif
After I ran the first session, I reactivated the area and now it seems working fine.
So, I suppose that for the first time, the program failed if there is no "test1" directory.
IMHO, the library seems working fine, but application must care about fail cases.
Best Regards, 13-Nov-2015 moto
posted by 13 Nov 2015
I havent run it for a while, but it should work as it is. Do u have a chance to debug? Back then I used one of the early revisions of boards, they might have changed something. If I get a chance, I'll try to run it on my newer board
posted by Martin Kojtal 12 Nov 2015