MOD54415 External SD card F_ERR_NOT_FORMATTED

Discussion to talk about software related topics only.
sulliwk06
Posts: 118
Joined: Tue Sep 17, 2013 7:14 am

MOD54415 External SD card F_ERR_NOT_FORMATTED

Post 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?
User avatar
pbreed
Posts: 1080
Joined: Thu Apr 24, 2008 3:58 pm

Re: MOD54415 External SD card F_ERR_NOT_FORMATTED

Post by pbreed »

What is the version number of your Mod-dev70
Have you installed JP4?
sulliwk06
Posts: 118
Joined: Tue Sep 17, 2013 7:14 am

Re: MOD54415 External SD card F_ERR_NOT_FORMATTED

Post by sulliwk06 »

MOD-DEV-70 Rev 1.93
JP4 is installed (what does that do?)
User avatar
pbreed
Posts: 1080
Joined: Thu Apr 24, 2008 3:58 pm

Re: MOD54415 External SD card F_ERR_NOT_FORMATTED

Post by pbreed »

It connects the Write protect sense to the device...
So still no change in behavior???
sulliwk06
Posts: 118
Joined: Tue Sep 17, 2013 7:14 am

Re: MOD54415 External SD card F_ERR_NOT_FORMATTED

Post 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)
User avatar
TomNB
Posts: 538
Joined: Tue May 10, 2016 8:22 am

Re: MOD54415 External SD card F_ERR_NOT_FORMATTED

Post by TomNB »

Thanks for that additional information. Can you please let me know the revision number on your MOD54415?
sulliwk06
Posts: 118
Joined: Tue Sep 17, 2013 7:14 am

Re: MOD54415 External SD card F_ERR_NOT_FORMATTED

Post by sulliwk06 »

MOD54415 Rev 1.9
User avatar
TomNB
Posts: 538
Joined: Tue May 10, 2016 8:22 am

Re: MOD54415 External SD card F_ERR_NOT_FORMATTED

Post 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.
Attachments
EFFS-MultipleMMC_APP.zip
(158.25 KiB) Downloaded 153 times
User avatar
TomNB
Posts: 538
Joined: Tue May 10, 2016 8:22 am

Re: MOD54415 External SD card F_ERR_NOT_FORMATTED

Post 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
sulliwk06
Posts: 118
Joined: Tue Sep 17, 2013 7:14 am

Re: MOD54415 External SD card F_ERR_NOT_FORMATTED

Post 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
Post Reply