/var/www/restricted/ssh/stm32/www/stm32circle/ STM CircleOS forum / MicroSD Card

Username:     
Password:     
             

Forum

# 1   2009-01-15 17:46:11 MicroSD Card

computek
New member
Registered: 2008-08-19
Posts: 3

MicroSD Card

Has anyone had problems with the MicroSD card reading in Primer 2?
I have just bought a Kingston 2GB card and the Test program prints FAILED!
The card reports formatted as FAT in a PC.
Any ideas would be appreciated.

Offline

 

# 2   2009-01-16 08:15:23 MicroSD Card

Francis
Administrator
From: France-Grenoble
Registered: 2007-07-09
Posts: 890

Re: MicroSD Card

It could be a software issue. We perform the tests with a low capacity card. We will test with a similar card and we'll let you know. We also have to publish the test project...

Offline

 

# 3   2009-01-17 16:32:53 MicroSD Card

zwieblum
Member
Registered: 2008-12-19
Posts: 68

Re: MicroSD Card

sandisk 2gb works.

Offline

 

# 4   2009-02-04 11:53:37 MicroSD Card

werateras
New member
Registered: 2008-11-08
Posts: 3

Re: MicroSD Card

computek :

Has anyone had problems with the MicroSD card reading in Primer 2?
I have just bought a Kingston 2GB card and the Test program prints FAILED!
The card reports formatted as FAT in a PC.
Any ideas would be appreciated.

I have the same MicroSD card (Kingston 2GB) and the same fail (Test program prints FAILED!).

Offline

 

# 5   2009-02-04 12:02:35 MicroSD Card

sjoerd
Member
From: Stad aan het Haringvliet
Registered: 2008-09-04
Posts: 65

Re: MicroSD Card

Kingston 2GB works fine here with the Explorer project:
http://217.71.112.106/stm32circle/proje … .php?id=56

Also formatted as FAT

Last edited by sjoerd (2009-02-04 12:03:37)

Offline

 

# 6   2009-02-04 12:58:51 MicroSD Card

Francis
Administrator
From: France-Grenoble
Registered: 2007-07-09
Posts: 890

Re: MicroSD Card

I believe that it is a software issue. In the embedded 'factory test', we use the STM32LIB V2.01. In Sjoerd's project,  V2.03 has been used. The main difference between V2.01 and V2.03  seems to be the support of the high density SD-Card. It could be the source of the reported issue.
At Raisonance, we had  2GB card that didn't pass the embedded test, but it works fine with Sjoerd's priject.
We will release soon  CircleOS V3.5 with the new FileSystem  implementation (from Sjoerd).

Offline

 

# 7   2009-02-04 21:09:41 MicroSD Card

werateras
New member
Registered: 2008-11-08
Posts: 3

Re: MicroSD Card

sjoerd :

Kingston 2GB works fine here with the Explorer project:
http://217.71.112.106/stm32circle/proje … .php?id=56

Also formatted as FAT

I test your software and now the memory card works.  Thanks..

Offline

 

# 8   2009-02-07 17:42:22 MicroSD Card

krzysiu-m
New member
Registered: 2009-02-02
Posts: 8

Re: MicroSD Card

werateras :

sjoerd :

Kingston 2GB works fine here with the Explorer project:
http://217.71.112.106/stm32circle/proje … .php?id=56

Also formatted as FAT

I test your software and now the memory card works.  Thanks..

Hi, Could you do sth with this link because it doesn't work !!! I also would like to test this with my  micro SD card.

Best,

Last edited by krzysiu-m (2009-02-07 17:42:36)

Offline

 

# 9   2009-02-07 18:26:31 MicroSD Card

sjoerd
Member
From: Stad aan het Haringvliet
Registered: 2008-09-04
Posts: 65

Offline

 

# 10   2009-03-09 08:22:56 MicroSD Card

DVDR9
New member
Registered: 2009-03-05
Posts: 3

Re: MicroSD Card

Are only SD cards with FAT12/FAT16 supported or also SDHC with FAT32 on Primer2? I suppose it's a CircleOS's concern to handle I/O access to SD cards, but I don't want to do my own implementation right now if it doesn't support SDHC.
So, which card and which size should I buy?

Offline

 

# 11   2009-03-09 09:24:17 MicroSD Card

sjoerd
Member
From: Stad aan het Haringvliet
Registered: 2008-09-04
Posts: 65

Re: MicroSD Card

FAT32 is supported in CircleOs 3.5 and up.

As far as I can see SDHC is supported in the SDIO driver which is currently included in CircleOs 3.5 and up (SDIO_HIGH_CAPACITY_SD_CARD)
So you should be able to use microSD cards with a capacity of > 4GB.


It could be that you're the first one to test it...

Offline

 

# 12   2009-03-09 13:17:29 MicroSD Card

Francis
Administrator
From: France-Grenoble
Registered: 2007-07-09
Posts: 890

Re: MicroSD Card

Did anybody test a microSD card with a capacity larger than 4GB?

Offline

 

# 13   2009-03-09 17:29:39 MicroSD Card

DVDR9
New member
Registered: 2009-03-05
Posts: 3

Re: MicroSD Card

Ups, I've just bought 4GB micro SDHC card, made by Kingston. SD card test with blank card was OK. I'll perform further tests later.
Btw what can I do with the SD card? Run a code from it or is it just for file's storage?

Offline

 

# 14   2009-03-09 17:35:10 MicroSD Card

Francis
Administrator
From: France-Grenoble
Registered: 2007-07-09
Posts: 890

Re: MicroSD Card

The best is to update your Primer with version 3.6. Then, you have in the main menu 'SD-Card' and you can choose 'USB-MS'. Your primer will be seen as a standard usb-flash drive and you can just drag and drop files to/from your SD card using Windows Explorer (it works somehow like a camera..).

Offline

 

# 15   2009-03-09 18:12:50 MicroSD Card

DVDR9
New member
Registered: 2009-03-05
Posts: 3

Re: MicroSD Card

OK, I've already updated to CircleOS 3.6 and tried the "PC" function of the SD Card menu, it works correctly with FAT32 filesystem. However it's too slow for using as a card reader (and expensive smile ), that's why I asked what to do with the SD card now.
The conception of Primer2 suggests using it as a datalogger with further possibility to read the measured data and so on. I guess I should read the CircleOS documentation first?

Offline

 

# 16   2009-03-09 22:08:38 MicroSD Card

Francis
Administrator
From: France-Grenoble
Registered: 2007-07-09
Posts: 890

Re: MicroSD Card

The integration of the SD card in CircleOS is new (version 3.5 for the FS and 3.6 for the USB-MS). You will not find so much information in the documentation, but, Yes, tis feature is quite important for a datalogger.

Offline

 

# 17   2009-05-31 12:40:52 MicroSD Card

Buttermaker
New member
Registered: 2009-05-17
Posts: 6

Re: MicroSD Card

DVDR9 :

OK, I've already updated to CircleOS 3.6 and tried the "PC" function of the SD Card menu, it works correctly with FAT32 filesystem. However it's too slow for using as a card reader (and expensive smile ), that's why I asked what to do with the SD card now.
The conception of Primer2 suggests using it as a datalogger with further possibility to read the measured data and so on. I guess I should read the CircleOS documentation first?

try to find a doc is a long way
;-(

Offline

 

# 18   2010-11-26 09:57:59 MicroSD Card

yrt
Administrator
From: Grenoble-France
Registered: 2008-06-11
Posts: 520
Website

Re: MicroSD Card

Did anybody test a micro SDHC card with a capacity larger than 4GB with CircleOS ?

Offline

 

# 19   2010-11-27 18:39:52 MicroSD Card

ntrf.zns
Member
From: Belgorod, Russia
Registered: 2009-11-01
Posts: 134

Re: MicroSD Card

I didn't tested it but...
CircleOS code clearly has a bug with handling HC cards. It originates in both USB-MS and FAT sector loading/storing routines. The sector number for SD-card is passed as shifted value, actualy representing byte offset of the sector (multiplied by 512). It's then shifted back in SD-card driver (or not shifted for non-HC cards). If card with 8G or larger capacity used it might not be read correctly, because most significant bits are lost during shifting. On the other end it's completly safe to remove shifting (or multiplying) in both FAT and MS code modules.

Last edited by ntrf.zns (2010-11-27 18:40:42)

Offline

 

# 20   2010-11-29 07:25:42 MicroSD Card

yrt
Administrator
From: Grenoble-France
Registered: 2008-06-11
Posts: 520
Website

Re: MicroSD Card

Offline

 

Board footer