Page 1 of 2

MOD54415 External SD card F_ERR_NOT_FORMATTED

Posted: Thu Oct 29, 2020 7:02 am
by sulliwk06
I've been trying to to get the external (offboard) SD card working with my MOD54415 and I was having some trouble, so I've eliminated as many variables as possible and this is what I've got.

I have installed a fresh copy of the development tools 2.9.3 and I'm only using the example programs MOD5441X/EFFS-MULTIPLE-MMC and StandardStack/EFFS/EFFS-Performance. These were tested on a MOD54415 in a MOD-DEV-70 board.

The Multiple MMC example is able to read the onboard SD card just fine, but the offboard one shows up as not formatted.

Code: Select all

***************Off board flash
FAT mount to  failed: F_ERR_NOTFORMATTED
drive change failed: F_ERR_INVALIDDRIVE
Unmounting card

*** Error in f_delvolume(): F_ERR_INVALIDDRIVE
I know the SD card is formatted because I can read it fine on my computer and also in an old MOD5282 application I had laying around.

So I loaded up the Performance example to try to format the card anyways and the format call returns "invalid sector".

Code: Select all

NNDK Revision: Rel_2.9.3
Mounting drive 0 in MULTI_MMC mode
FAT mount to SD/MMC failed: F_ERR_NOTFORMATTED
Retrieving external flash usage...

*** Error in f_getfreepace(): F_ERR_INVALIDDRIVE


---------------------------------

B - Create a single file
C - Create files test (1000 files)
D - Delete all files
L - List files
F - Format drive (takes a long time)
R - Read speed (1000000 bytes)
S - Drive statistics
W - Write speed (1000000 bytes)


f
Formatting SD/MMC card

*** Error in f_format(): F_ERR_INVALIDSECTOR
Am I missing something obvious here?

Re: MOD54415 External SD card F_ERR_NOT_FORMATTED

Posted: Thu Oct 29, 2020 8:01 am
by pbreed
What is the version number of your Mod-dev70
Have you installed JP4?

Re: MOD54415 External SD card F_ERR_NOT_FORMATTED

Posted: Thu Oct 29, 2020 8:08 am
by sulliwk06
MOD-DEV-70 Rev 1.93
JP4 is installed (what does that do?)

Re: MOD54415 External SD card F_ERR_NOT_FORMATTED

Posted: Thu Oct 29, 2020 10:36 am
by pbreed
It connects the Write protect sense to the device...
So still no change in behavior???

Re: MOD54415 External SD card F_ERR_NOT_FORMATTED

Posted: Thu Oct 29, 2020 11:04 am
by sulliwk06
No, JP4 was already installed the whole time. I just ran a test without JP4 and it then said it was write protected. Then I put JP4 back on and got the not formatted error again.

Code: Select all

Waiting 2sec to start 'A' to abort
Configured IP = 0.0.0.0
Configured Mask = 0.0.0.0
MAC Address= 00:03:f4:07:d8:dd
Application: EFFS FAT Tests
NNDK Revision: Rel_2.9.3
SD/MMC Card is write-protected. Disable write protection then press <Enter>
SD/MMC Card is write-protected. Disable write protection then press <Enter>
<Installed JP4>

Code: Select all

Waiting 2sec to start 'A' to abort
Configured IP = 0.0.0.0
Configured Mask = 0.0.0.0
MAC Address= 00:03:f4:07:d8:dd
Application: EFFS FAT Tests
NNDK Revision: Rel_2.9.3
Mounting drive 0 in MULTI_MMC mode
FAT mount to SD/MMC failed: F_ERR_NOTFORMATTED
Retrieving external flash usage...

*** Error in f_getfreepace(): F_ERR_INVALIDDRIVE


---------------------------------

B - Create a single file
C - Create files test (1000 files)
D - Delete all files
L - List files
F - Format drive (takes a long time)
R - Read speed (1000000 bytes)
S - Drive statistics
W - Write speed (1000000 bytes)


f
Formatting SD/MMC card

*** Error in f_format(): F_ERR_INVALIDSECTOR


---------------------------------

B - Create a single file
C - Create files test (1000 files)
D - Delete all files
L - List files
F - Format drive (takes a long time)
R - Read speed (1000000 bytes)
S - Drive statistics
W - Write speed (1000000 bytes)

Re: MOD54415 External SD card F_ERR_NOT_FORMATTED

Posted: Thu Oct 29, 2020 12:27 pm
by TomNB
Thanks for that additional information. Can you please let me know the revision number on your MOD54415?

Re: MOD54415 External SD card F_ERR_NOT_FORMATTED

Posted: Thu Oct 29, 2020 1:34 pm
by sulliwk06
MOD54415 Rev 1.9

Re: MOD54415 External SD card F_ERR_NOT_FORMATTED

Posted: Thu Oct 29, 2020 6:10 pm
by TomNB
Hello,

I'm unable to reproduce the issue. Can you try the attached image file and let me know if you see any errors.

Re: MOD54415 External SD card F_ERR_NOT_FORMATTED

Posted: Thu Oct 29, 2020 6:13 pm
by TomNB
That app should be run with just the sd card plugged into the mod-dev-70, no card in the 54415 microSD slot

Re: MOD54415 External SD card F_ERR_NOT_FORMATTED

Posted: Fri Oct 30, 2020 6:07 am
by sulliwk06
Running the program you provided seems to have the same results, so if that program worked for you then there must be something off with my hardware. I'll see if I can scrounge up a totally different dev board, processor, and SD card and try again.

Code: Select all

Waiting 2sec to start 'A' to abort
Configured IP = 0.0.0.0
Configured Mask = 0.0.0.0
MAC Address= 00:03:f4:07:d8:dd

===== Starting EFFS Onboard test Program =====
Trying DHCP
DHCP assigned the IP address of :192.168.1.227
***************Off board flash
FAT mount to  failed: F_ERR_NOTFORMATTED
Formatting drive 0...Formatting  card

*** Error in f_format(): F_ERR_INVALIDSECTOR
drive change failed: F_ERR_INVALIDDRIVE
Unmounting card

*** Error in f_delvolume(): F_ERR_INVALIDDRIVE
Program complete. Reset to repeat