corrupted board files? [solved]

The official pyboard running MicroPython.
This is the reference design and main target board for MicroPython.
You can buy one at the store.
Target audience: Users with a pyboard.
Post Reply
ssalenik
Posts: 2
Joined: Fri Oct 24, 2014 1:38 am

corrupted board files? [solved]

Post by ssalenik » Fri Oct 24, 2014 1:49 am

I received my micro python board a few days ago and I just go around to trying it. I'm running OSX and when I plug in the board (without an SD card) I can browse the files, however they seem to be corrupted in some way. I can see the following files:
* booty.py (279 B)
* main.py (33 B)
* bybcdc.inf (2KB)
* README.txt (529 B)

But if I open any of the files, they are all made up of the same character: ÿ

Also, when I plug in the board, it flashes green and red LEDs, which I believe means it can't run the scripts on the board. I can access the REPL and can run basic python commands such as print() and help(), but if I try to run any of the pyb commands, I get "NameError: name 'pyb' is not defined".

Should I try flashing the board with a newer dfu? Or can I just download and replace the 4 files in the filesystem somewhere?
Last edited by ssalenik on Fri Oct 24, 2014 12:33 pm, edited 1 time in total.

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: corrupted board files?

Post by dhylands » Fri Oct 24, 2014 6:52 am

You can reset the file system by following the procedure under "Boot Modes on this page:
http://micropython.org/doc/general

You want the Green and Orange LED together.

You may want to try it by plugging the pyboard into a USB charger. Then once you've reset the filesystem, unplug it from the charger and plug it into the Mac.

ssalenik
Posts: 2
Joined: Fri Oct 24, 2014 1:38 am

Re: corrupted board files?

Post by ssalenik » Fri Oct 24, 2014 12:32 pm

Thanks, that fixed it. I tried the reset sequence before, but with the board plugged into my mac, which I guess screwed it up.

RookiePython
Posts: 4
Joined: Tue Aug 02, 2016 8:34 pm

Re: corrupted board files? [solved]

Post by RookiePython » Wed Jun 21, 2017 3:26 am

Capture.PNG
Error after opening main.py
Capture.PNG (7.91 KiB) Viewed 6455 times
Hello,

I am in also same problem. I did factory reset, I tried to flash firmware using DFU tool too but nothing is working. :cry: :cry: :cry: :cry:

User avatar
kfricke
Posts: 342
Joined: Mon May 05, 2014 9:13 am
Location: Germany

Re: corrupted board files? [solved]

Post by kfricke » Wed Jun 21, 2017 8:08 am

Please open an own thread. The original post has nothing to do with your problem except you assumed topic (MacOS vs. Windows and a totally different error message).

What does py.exe in your pop-up message have to do with MicrpoPython? I am not that familiar with windowish things, but this sounds a little strange!

Antek
Posts: 3
Joined: Wed Sep 13, 2017 1:26 pm

Re: corrupted board files?

Post by Antek » Thu Sep 14, 2017 12:16 pm

[quote="dhylands"]You can reset the file system by following the procedure under "Boot Modes on this page:
http://micropython.org/doc/general

You want the Green and Orange LED together.

You may want to try it by plugging the pyboard into a USB charger. Then once you've reset the filesystem, unplug it from the charger and plug it into the Mac.[/quote]

I have got similar problem, but when I am trying to use Your link, page does not exist.

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: corrupted board files? [solved]

Post by dhylands » Thu Sep 14, 2017 5:45 pm

The page has been moved into the MicroPython documentation here:
http://docs.micropython.org/en/latest/p ... boot-modes

Post Reply