Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 07:05 30 Apr 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : SD card access problem

Author Message
Bizzie
Senior Member

Joined: 06/07/2014
Location: Australia
Posts: 185
Posted: 06:48pm 02 Jan 2016
Copy link to clipboard 
Print this post

Hi I have just taken delivery of two CGmicroboard2b's.

I can not get access to the micro SD cards.

I have typed (as per page 12 of MM+ manual):-

> Micromite Plus MMBasic Ver 4.7 Beta 36
Copyright 2011-2015 Geof
> option sdcard 49
Restart the Micromite+
> Micromite Plus MMBasic Ver 4.7 Beta 36
Copyright 2011-2015 Geof
> files
Error: Cannot access the SD card
> option list
OPTION SDCARD 49
>

I have tried three different SD cards (2,2 and 8 GB of differing brands) both have files written to the card by a CGColorMax2 board and they are recognized by Win10.

Pin 49 does indeed seem to be connected to pin 1 of the SD card.

What am I doing wrong?

Rob



Rob White
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 5905
Posted: 07:07pm 02 Jan 2016
Copy link to clipboard 
Print this post

According to CG's website, pin 30 is used for card detect so the command should be
OPTION SDCARD 49, 30

I would the command you used to work but it is worth a try.

Jim
VK7JH
MMedit   MMBasic Help
 
Bizzie
Senior Member

Joined: 06/07/2014
Location: Australia
Posts: 185
Posted: 07:51pm 02 Jan 2016
Copy link to clipboard 
Print this post

Thanks Jim for your reply.

I am afraid it did not help!

> option sdcard disable
Restart the Micromite+
> Micromite Plus MMBasic Ver 4.7 Beta 36
Copyright 2011-2015 Geof
> option sdcard 49, 30
Restart the Micromite+
> Micromite Plus MMBasic Ver 4.7 Beta 36
Copyright 2011-2015 Geof
> files
Error: Cannot access the SD card
>

Rob

Rob White
 
CircuitGizmos

Guru

Joined: 08/09/2011
Location: United States
Posts: 1421
Posted: 06:52am 03 Jan 2016
Copy link to clipboard 
Print this post

I'm a bit out of touch right now as I have a dying family member and life chaos.

Rob, please visually inspect the microcontroller and SD card pins for bad connections.
Micromites and Maximites! - Beginning Maximite
 
CircuitGizmos

Guru

Joined: 08/09/2011
Location: United States
Posts: 1421
Posted: 05:59pm 04 Jan 2016
Copy link to clipboard 
Print this post

If there are bad connections, please let me know.


Micromites and Maximites! - Beginning Maximite
 
MikeO
Senior Member

Joined: 11/09/2011
Location: Australia
Posts: 275
Posted: 09:08pm 15 Jan 2016
Copy link to clipboard 
Print this post

@ Bixzzie

Did this get resolved ? I have been experiencing this same problem today. I did check all the connections and they seemed OK and it then worked however it then stopped again. I have tried 2 GC boards and both seem to exhibit the same problem. I have noticed that if I do files *.* without a SD card it reports cannot access the sd card , if I then try with a sd card in the slot it report 0 files, but there are files .
I will double check connections but seems unlikely on two boards, BTW one board has B36 the other B37 , same symptoms.

Mike

Codenquilts
 
WhiteWizzard
Guru

Joined: 05/04/2013
Location: United Kingdom
Posts: 2794
Posted: 09:44pm 15 Jan 2016
Copy link to clipboard 
Print this post

@MikeO

I have seen this along the way while testing MM's. The only trouble is that I can't remember which version of MMBasic it was (sorry )

Can I ask out of interest what capacity SD card you are using?

If it is 2Gb (or less) can I suggest trying a higher capacity card as it has been identified some SD cards cause an issue.

Last year I spent a long time trying to resolve an issue with LOAD IMAGE, and with GUI TEST LCDPANEL (the circle drawing test); both commands then causing the '0 files' message.

Both these commands were resolved by changing the SD card.

WW

Edited by WhiteWizzard 2016-01-17
For everything Micromite visit micromite.org

Direct Email: whitewizzard@micromite.o
 
MikeO
Senior Member

Joined: 11/09/2011
Location: Australia
Posts: 275
Posted: 10:29pm 15 Jan 2016
Copy link to clipboard 
Print this post

OK, I was using an 8gb card, I will have to do more investigation because I definitely had this working ok and actually loaded and displayed an image file.
I have noted that
> files *.*
\
0 directories, 0 files Gives me this, obviously wrong

however files on it own without any filter gives me the following .
> files EDIT: I have just noted that the filespec is optional , but the wild cards should have worked ??

\
7654 01D.BMP
7654 01N.BMP
7654 02D.BMP
7654 02N.BMP
7654 03D.BMP
7654 03N.BMP
7654 04D.BMP
7654 04N.BMP
7654 09D.BMP
7654 09N.BMP
7654 10D.BMP
7654 10N.BMP
7654 11D.BMP
7654 11N.BMP
7654 13D.BMP
7654 13N.BMP
7654 50D.BMP
7654 50N.BMP
0 directories, 18 files
>Edited by MikeO 2016-01-17
Codenquilts
 
MikeO
Senior Member

Joined: 11/09/2011
Location: Australia
Posts: 275
Posted: 10:51pm 15 Jan 2016
Copy link to clipboard 
Print this post

OK, for my immediate use the problem is solved. It does in fact load and display the bitmap file but I was thrown by the fact that you cannot display the files when you include any form of filespec, "files" on its own is OK.

Mike
Codenquilts
 
WhiteWizzard
Guru

Joined: 05/04/2013
Location: United Kingdom
Posts: 2794
Posted: 11:03pm 15 Jan 2016
Copy link to clipboard 
Print this post

@MikeO

The issue you report about FILES *.* was a bug and has indeed been fixed by Geoff in B38.

He hopes to be releasing another version of firmware soon; so for now please just use FILES (as you mention).

WW
For everything Micromite visit micromite.org

Direct Email: whitewizzard@micromite.o
 
MikeO
Senior Member

Joined: 11/09/2011
Location: Australia
Posts: 275
Posted: 11:20pm 15 Jan 2016
Copy link to clipboard 
Print this post

Oh Gosh , OK, is there a concise bug list anywhere that i could have consulted before rushing off on a tangent!! It hard to keep up reading all the posts.

Thanks again.

Codenquilts
 
WhiteWizzard
Guru

Joined: 05/04/2013
Location: United Kingdom
Posts: 2794
Posted: 11:38pm 15 Jan 2016
Copy link to clipboard 
Print this post

@MikeO,

I know what you mean about keeping up-to-date with all the posts; however, please do remember that the MM+is still not 'officially' released on Geoff's website yet.

TBS members have the privilege of using his 'developments' first but remember it is still in Beta until he officially releases it. Therefore expect a few niggles (but only a few mind!). And the more people play with the MM+, the more chance of 99.99% everything working (there will always be something 'uncovered' when used in certain combinations).

There is an 'issue' list with each Beta software he releases but obviously this only lists the things known about at the time. I spend many man-hours stress testing MMBasic and uncover some real strange ones which never get documented as they are so extreme.
The thing to be re-assured with though is that Geoff fixes things almost as soon as he is informed about them - very impressive when you look at what he has created.

If you PM him I am sure he will be happy to send you his latest Beta which has almost everything fixed. He is wanting to release v5.0 as soon as he is happy with it; and no doubt he can give you his latest update regarding timescales.

In the meantime - please post any issues you find as it is good to know about them even if they have already been fixed . . .

WW


For everything Micromite visit micromite.org

Direct Email: whitewizzard@micromite.o
 
MikeO
Senior Member

Joined: 11/09/2011
Location: Australia
Posts: 275
Posted: 11:58pm 15 Jan 2016
Copy link to clipboard 
Print this post

Thanks , believe me I understand this is a beta, thanks for your time.
Codenquilts
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024