Hi,
The demo keeps identifying my sdcard as read-only even when it's not. I haven't changed anything. Is there something wrong with my version of MQX 4.2? Or are there additional configurations I need to make?
Here are my specs:
- TWR-K64F-120M
- MK64FN1M0VMD12 chip
- KDS 3.2 IDE
- MQX 4.2
- OPENSDA USB
Thanks.
Downloaded MQX 4.2 and repaired it, still same result...
Does anybody know how to troubleshoot it?
Thanks.
Hi Dao Yan Lim
Please see my settings and console output. the SD card is inserted in TWR-SER slot.
I use the default code, not change anything
Regards
Daniel
Wait a minute, does TWR-SER have sdcard slots? Mine doesn't... Maybe you meant TWR-MEM, which is what the example says you need. But, I don't have that module so I'm using the sdcard slot on the TWR-K64 board itself. Can this still work? If so what changes do I need to make?
Thanks.
Sorry, I made a mistake, it is TWR-MEM. I will try the slot on the TWR-K64 board and update you later
Regards
Daniel
Sounds good, thanks!
Hi Dao Yan Lim:
Please see the schematics of TWR-K64, R521 is DNP (Do Not Place), You can check this on your tower board.
Please solder this resistor and try again.
Or you can comment out below line of code in demo.c and try it again.
// lwgpio_set_attribute(&sd_protect, LWGPIO_ATTR_PULL_UP, LWGPIO_AVAL_ENABLE);
Best regards
Daniel
Hi Daniel,
Changing the code did not work, but soldering a 4.7Kohm resistor fixed the problem! I can now create and write a file to the sdcard.
Thanks.
Hi Dao Yan Lim:
I can not reproduce your issue on my side. Have you tried other sd card?
Regards
Daniel
Maybe you could share your 'demo.c' code, I think it should be the same, but worth trying.
Thanks.