Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 19:43 24 Nov 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 : Duinomite Not seeing the SDcard

     Page 1 of 2    
Author Message
Bryan1

Guru

Joined: 22/02/2006
Location: Australia
Posts: 1344
Posted: 03:58am 21 Nov 2011
Copy link to clipboard 
Print this post

G'day Guy's,
Well my DuinoMite turned up today and got a bit of a shock at the start, I used my old IBM 14" monitor and no screen output at all. Anyway I loaded up MMIDE and finally got the output so I knew the duinomite was alive. I connected up another monitor I have here and all was good. Now I have a 2 gig micro SDcard here so I put it in my small usb dongle and reformatted it to FAT. Then I placed some of the example bas files on it and no matter what I do it keeps saying error file not found. Now I noticed 2 leds are lit one is the green led by the user button which is on full time and also beside the battery charger input is a red led that is always on. Now i'm not sure if that red led is showing some sort of error.

Another little problem I found was when I first connected it via USB it said new hardware found and the DunioMite name did come up. Noway would it finish correctly so I came back down to the house and loaded up those files on Don's Site and that fixed the problem. Anyway having a heap of fun here learning my way around it all but not being able to see all those files I put on the SDcard is a bit worrying.

Regards Bryan
 
DuinoMiteMegaAn
Senior Member

Joined: 17/11/2011
Location: Australia
Posts: 231
Posted: 04:47am 21 Nov 2011
Copy link to clipboard 
Print this post

You said "file not found" ...
Just curious, what is the "variable" MM.ERRNO? (#6 Cannot find file)
or other?Edited by DuinoMiteMegaAn 2011-11-22
 
Bryan1

Guru

Joined: 22/02/2006
Location: Australia
Posts: 1344
Posted: 05:05am 21 Nov 2011
Copy link to clipboard 
Print this post

TIS ok I worked it out, I took the SDcard out and wiped all the files off then copied them back over sill no go. So did a reboot and just typed in 'files' next thing they showed up. I do the problem was I didnt have autorun.bas on the card so that could of been the problem all along. All a new learning curve so soon I'll start writing my first program and get on designing and making a box to suit the Duinomite and the addon board.

Cheers Bryan
 
donmck

Guru

Joined: 09/06/2011
Location: Australia
Posts: 1313
Posted: 05:35am 21 Nov 2011
Copy link to clipboard 
Print this post

  Bryan1 said   TIS ok I worked it out, I took the SDcard out and wiped all the files off then copied them back over sill no go. So did a reboot and just typed in 'files' next thing they showed up. I do the problem was I didnt have autorun.bas on the card so that could of been the problem all along. All a new learning curve so soon I'll start writing my first program and get on designing and making a box to suit the Duinomite and the addon board.

Cheers Bryan


Hi Bryan.

Like all new things, it takes a bit of getting used to.

Two things.

The red LED is the power LED, so it is always on.
You don't need the autorun.bas program on the SD card.

If you press the reset button, the yellow LED will go out. This is switched on by MM-Basic, and left on. We will make it PIN(0) at some stage in the new DM firmware.

This means you will be able to control it from Basic.

Cheers Don...
https://www.dontronics.com
 
sparkey

Senior Member

Joined: 15/06/2011
Location: Australia
Posts: 819
Posted: 05:38am 21 Nov 2011
Copy link to clipboard 
Print this post

the sd card does not like being hot swapped
technicians do it with least resistance
 
DuinoMiteMegaAn
Senior Member

Joined: 17/11/2011
Location: Australia
Posts: 231
Posted: 12:26pm 21 Nov 2011
Copy link to clipboard 
Print this post

Don, Per the rev. C Mega schematic there are 3 LEDS.

Red LED = Power Indicator
Yellow LED = D9/PIN#20/VGA VSYNC
Green LED = ?

Don, the yellow LED is already tied to PIN#20, so in new firmware, "in the future",
PIN#0 will also be tied to PIN#20?
Edited by DuinoMiteMegaAn 2011-11-22
 
sparkey

Senior Member

Joined: 15/06/2011
Location: Australia
Posts: 819
Posted: 12:54pm 21 Nov 2011
Copy link to clipboard 
Print this post

the yellow led lets you know that the chip is functioning the red led lets you
know that the power is correct and functioning..when the green an yellow leds are flashing intermittemt this is when the board is in boot loader mode ...otherwise the green led flashes when there is sd/flash drive actiivity on occurence....
technicians do it with least resistance
 
DuinoMiteMegaAn
Senior Member

Joined: 17/11/2011
Location: Australia
Posts: 231
Posted: 01:28pm 21 Nov 2011
Copy link to clipboard 
Print this post

Sparkey - I think you missed my point to Don.

It would be very unwise to control this yellow LED with PIN#0.
It is also tied to PIN#20 VGA VSYNC which is indirectly used for "chip is functioning"
 
sparkey

Senior Member

Joined: 15/06/2011
Location: Australia
Posts: 819
Posted: 01:33pm 21 Nov 2011
Copy link to clipboard 
Print this post

what ever the point is that ..the red led is power on the yellow led is ..how ever you want too interpret it "chip power" the green led is the sd card....
technicians do it with least resistance
 
donmck

Guru

Joined: 09/06/2011
Location: Australia
Posts: 1313
Posted: 01:57pm 21 Nov 2011
Copy link to clipboard 
Print this post

  DuinoMiteMegaAn said   Don, Per the rev. C Mega schematic there are 3 LEDS.

Red LED = Power Indicator
Yellow LED = D9/PIN#20/VGA VSYNC
Green LED = ?

Don, the yellow LED is already tied to PIN#20, so in new firmware, "in the future",
PIN#0 will also be tied to PIN#20?


Sorry, my typo, too many ideas.

Make that the Green LED, which is SD Card activity.

Idea is to be able to flash the LED via PIN(0), if there is going to be SD card activity, the status of the green LED is saved, SD card is accessed, green LED flashes as it should, then green LED status is restored.

I don't see a problem with that, can anyone see a flaw?

BTW
Ken has the current firmware alternatively flashing the yellow and green LEDs when it enters boot mode.

Cheers Don...Edited by donmck 2011-11-23
https://www.dontronics.com
 
elchucko

Regular Member

Joined: 09/11/2011
Location: United States
Posts: 86
Posted: 07:17pm 21 Nov 2011
Copy link to clipboard 
Print this post

A couple questions came to mind as I read these posts. I have a Maximite SM1. Do not "hot swap" the SD card? My PIC32 card's green (D4) LED stays on solid with power on. In boot mode it flashes. At power up the Red (D5) flashes once. Comments?
 
Vikingboy
Regular Member

Joined: 23/09/2011
Location: Australia
Posts: 82
Posted: 07:28pm 21 Nov 2011
Copy link to clipboard 
Print this post

Hi elchucko,

That is standard behaviour for an SM1, also I always "hot swap" the SDcard with no ill effects, I would be surprised if anyone turned the power off to change the SDcard, of-course I wouldn't do while in the middle of a read/write operation :)

Andrew

 
elchucko

Regular Member

Joined: 09/11/2011
Location: United States
Posts: 86
Posted: 07:35pm 21 Nov 2011
Copy link to clipboard 
Print this post

OK, great. I just noticed a previous comment advising not to hot swap (which I've been doing now for some time). Thank you
 
larny
Guru

Joined: 31/10/2011
Location: Australia
Posts: 346
Posted: 09:36pm 21 Nov 2011
Copy link to clipboard 
Print this post

  Bryan1 said   G'day Guy's,
Well my DuinoMite turned up today and got a bit of a shock at the start,

Now I have a 2 gig micro SDcard here so I put it in my small usb dongle and reformatted it to FAT.

Then I placed some of the example bas files on it and no matter what I do it keeps saying error file not found. Now I noticed 2 leds are lit one is the green led by the user button which is on full time and also beside the battery charger input is a red led that is always on. Now i'm not sure if that red led is showing some sort of error.

Regards Bryan

G'day Bryan,
I'm confused by this thread.

I bought my Maximite from Altronics via Semtronics. I'm having the same problem. It gives an error when the SD card is inserted.

I have not yet tried putting autorun.bas on the card as you did. Besides, someone said it is not necessary.

Also, in the thread a Yellow LED & Reset button are mentioned. My MM does not have these. So is the DuinoMite a little different to the MM?

BTW, I always insert the SD card before I turn the power on & turn it off before removing it. There appeared to be conflicting opinions on this point.

Any advice on these issues will be appreciated.

Len

 
sparkey

Senior Member

Joined: 15/06/2011
Location: Australia
Posts: 819
Posted: 09:48pm 21 Nov 2011
Copy link to clipboard 
Print this post

generally any hot swapping of the sd-card is not recomended...sparkey...///...///...///
technicians do it with least resistance
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 3800
Posted: 10:11pm 21 Nov 2011
Copy link to clipboard 
Print this post

Yes, the DM and MM are somewhat different, though they have many things in common.

There are detailed posts about the differences, here and elsewhere (from Don and others) - and of course the circuit diagrams are fully open if you want to study them (a good idea but not the easiest of tasks).

My DM has red (power), yellow & green LEDs. I don't have a MM (mainly because by the time I stumbled on it the DM was already out and I liked its design better - not a criticism of the MM because it's easier to improve than originate!).

I believe you don't need an autorun.bas

Maybe the SD system is just a little buggy?
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3194
Posted: 10:36pm 21 Nov 2011
Copy link to clipboard 
Print this post

The way the Maximite works is that it will detect the removal/insertion of a card (even while running a program) and reset the file management routines in MMBasic to prevent corruption. So hot swapping a card is OK on the Maximite.

The DuinoMites do not do this and MMBasic can get confused as it does not know about the removal of the card. The solution is to always cycle the power after removing a card on a DuinoMite. This also applies to the Maximite-EV.

Note that in all cases you should always close all files before removing a card.
Geoff Graham - http://geoffg.net
 
James_From_Canb

Senior Member

Joined: 19/06/2011
Location: Australia
Posts: 265
Posted: 11:05pm 21 Nov 2011
Copy link to clipboard 
Print this post

I had a similar problem the very first time I used the SD card on my Altronics Maximite. It didn't seem to recognise the card.

I think my solution was to save a file to the card. Since then I've never had a problem.

I know that's not the same as Bryan's problem, but people with SD card problems are likely to read this thread.

Also, it might be worthwhile checking the soldering on the SD card cage contacts. Some strange SD card behaviour in other threads was found to be caused by faulty soldering.
My mind is aglow with whirling, transient nodes of thought careening through a cosmic vapor of invention.

Hedley Lamarr, Blazing Saddles (1974)
 
Bryan1

Guru

Joined: 22/02/2006
Location: Australia
Posts: 1344
Posted: 11:17pm 21 Nov 2011
Copy link to clipboard 
Print this post

Hi Guy's,
I brought the Duinomite down to the house last night and hooked it up to this ol' 32 bit puter, once I got the duinomite installed as a USB drive I had hours of fun playing with it. First I was using the latest MMIDE I downloaded off Don's site and there are still a few bugs on there. Like when I ran the datalog.bas file the mouse disappeared form the MMIDE screen and even resetting the board didn't stop the error. I downloaded tera term and it worked great so later today I will ahve a go at writing some code.

Regards Bryan
 
larny
Guru

Joined: 31/10/2011
Location: Australia
Posts: 346
Posted: 08:14am 22 Nov 2011
Copy link to clipboard 
Print this post

  JohnS said   Yes, the DM and MM are somewhat different, though they have many things in common.

There are detailed posts about the differences, here and elsewhere (from Don and others) - and of course the circuit diagrams are fully open if you want to study them (a good idea but not the easiest of tasks).

My DM has red (power), yellow & green LEDs. I don't have a MM (mainly because by the time I stumbled on it the DM was already out and I liked its design better - not a criticism of the MM because it's easier to improve than originate!).

I believe you don't need an autorun.bas

Maybe the SD system is just a little buggy?

Thanks Johns,
I did a brief search for the DM circuit but coiuld not find it. Your explanation that it is a little different & has 3 LEDs is sufficient for me sincer I have a MM.

I am intending to check the connection to the SD card socket, but have been distracted by what appears to be pin numbering erros in the Silicon Chip circuit.

It is different to the one posted by Geoff G.

BTW, Geoff if you read this, please note that I have found an error in the MM circuit posted on your site.

PIC pins 62 & 63 are both labled RE3. I assume one is in fact RD3. I'll check it against the Microchip spec later & post the result.

Len
 
     Page 1 of 2    
Print this page
© JAQ Software 2024