MQX4.2 "mfs_sdcard_twrk64f120m demo" read-only problem

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MQX4.2 "mfs_sdcard_twrk64f120m demo" read-only problem

1,433 Views
broccolee
Contributor III

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.

Tags (2)
0 Kudos
10 Replies

1,174 Views
broccolee
Contributor III

Downloaded MQX 4.2 and repaired it, still same result...

Does anybody know how to troubleshoot it?

Thanks.

0 Kudos

1,174 Views
danielchen
NXP TechSupport
NXP TechSupport

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

pastedImage_1.png

pastedImage_2.png

Regards

Daniel

0 Kudos

1,174 Views
broccolee
Contributor III

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.

0 Kudos

1,174 Views
danielchen
NXP TechSupport
NXP TechSupport

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

0 Kudos

1,174 Views
broccolee
Contributor III

Sounds good, thanks!

0 Kudos

1,174 Views
danielchen
NXP TechSupport
NXP TechSupport

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.

pastedImage_1.png

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

0 Kudos

1,174 Views
broccolee
Contributor III

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.

0 Kudos

1,174 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi Dao Yan Lim:

I can not reproduce your issue on my side. Have you tried other sd card?

Regards

Daniel

0 Kudos

1,174 Views
broccolee
Contributor III

Hi Daniel,

Yes, I have tried another card, same result...

I am reinstalling MQX 4.2, but I keep getting stuck at the NXP registration webpage, see attached image.

Is something wrong with the website?

Thanks.

0 Kudos

1,174 Views
broccolee
Contributor III

Maybe you could share your 'demo.c' code, I think it should be the same, but worth trying.

Thanks.

0 Kudos