Shop OBEX P1 Docs P2 Docs Learn Events
Troubles after mounting/failing to mount an SD card with FSRW — Parallax Forums

Troubles after mounting/failing to mount an SD card with FSRW

MarcusGMarcusG Posts: 6
edited 2009-01-29 21:03 in Propeller 1
I am trying to come up with an easy way to allow an SD card to be inserted after power up and/or be removed and reinserted once it's running. My thought was to have a simple IF statement to check if the mount command returned 0 if so it executes my code otherwise it waits a spell then reboots the prop. Neither REBOOT or clkset($80, 0) will restart it, the whole thing seems to just lock up. I tried a really simple program that just mounts then turns on an LED to make sure it wasn't a problem elsewhere in my code. I found something even more baffling. Even after a successful mount it wont turn the LED on. If I put the LED command before the mount command it turns the LED back off once the mount command executes regardless if it's successful or not. Has anyone else ran into this before? It seems like some types of commands are no longer able to execute after you try mounting...


Thanks much,
-Marcus
Sign In or Register to comment.