LabVIEW Embedded

cancel
Showing results for 
Search instead for 
Did you mean: 

FLASHFS, FS_CM3.lib, LV for ARM

Hi there,

 

On LabVIEW for ARM 2009 I experianced that newer microSD cards aren't working 100%

In the past I had an unbranded microSD card and never noticed any errors.

For a new application which also use microSD cards, I have cards op SanDisk and Transcend.

 

the problems on the SanDisk and Transcend are:

- If I write many data it can be lost (the file contains previous data of the file or these bytes are NULL)

- If I read data, I get the first sectors, data from the directory table. This is always the same for the same file.

- It happens on all files, I can reproduce it!

 

I searched a long time for this problem to get an solution.

On LabVIEW for ARM 2009 you get an NI version of FlashFS (a library of KEIL with drivers for FAT, SD interface over SPI) 

Does somebody know which version of FlashFS this is?

 

I've google'd FlashFS and I found two different versions (3.70 and 4.11)

As I reviewed the source of FlashFS I noticed some differences in timings.

So I build the new FlashFS library and used it in my application instead of the original that comes with LV for ARM 2009.

 

Everything was perfect from that point. no problems with writes of reads with the SanDisk or Transcend cards.

 

The next step was to get LabVIEW for ARM 2010 (since FlashFS lib comes with LabVIEW for ARM, I needed this)

in LabVIEW for ARM 2010 I'm getting the same errors, but when I use my library there are no errors.

So I searched for the FlashFS library that comes with LV for ARM 2010 and compared it with the one from 2009.

conclusion -> they are the same!

 

So my question is: Can anyone say which version of FlashFS comes with 2009 and 2010?

I think that they are the same, but I don't know which version it is.

RTL.h has a define of the RL-ARM version BUT this comes with KEIL uvision (it's the version of KEIL)

fs_finit.c has an function to export the version number, At this time I did not try this.

 

 

Thanks,

 

Wouter

 

Wouter.
"LabVIEW for ARM guru and bug destroyer"
0 Kudos
Message 1 of 6
(6,815 Views)

Dear Wouter,

 

Pleae notice the follwoing KB, just to be sure the types SDHC and SDXC are not supported. I'm still trying to figure out which version has been used.

 

Best regards, 

Martijn S
Applications Engineer
NI Netherlands
0 Kudos
Message 2 of 6
(6,759 Views)

Dear Wouter,

 

I'm sorry for the delay in my response. We are using v3.21 of the library.  Support for SDHC was introduced in 4.10.  Can we get a model number for the cards you are using (if those are standart SD's)?

 

Best regards,

Martijn S
Applications Engineer
NI Netherlands
0 Kudos
Message 3 of 6
(6,738 Views)

Dear Martijn,

 

Thank you for the response!

 

I´ve used normal microSD cards of 2 GB.

SanDisk: SDSDQM-002G-B35

Transcend: TS2GUSDC

 

 

Wouter.
"LabVIEW for ARM guru and bug destroyer"
0 Kudos
Message 4 of 6
(6,733 Views)

Thanks Wouter,

 

I did find a spec sheet of the second one and forwarded this information to a colleague. I will post back to you as soon as possible.

 

Best regards,

Martijn S
Applications Engineer
NI Netherlands
0 Kudos
Message 5 of 6
(6,731 Views)

Dear Wouter,

 

I'm sorry for the late response. Colleagues in the US are still busy with the problem. I also contacted ARM support and they think it is a timing / DMA issue. The newer versions are a complete redesign but I cannot say if the newer versions will be implemented.

 

Best regards,

Martijn S
Applications Engineer
NI Netherlands
0 Kudos
Message 6 of 6
(6,707 Views)