First Connect

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
AlexBir
Posts: 7
Joined: Tue Apr 23, 2019 1:00 pm

First Connect

Post by AlexBir » Tue Apr 23, 2019 1:12 pm

Hi all,

Just got the pyboard.

My laptop recognized it immediately.

1. After I modify main.py, how can I execute it? should not it be executed automatically?
2. In device manager, I see that pyboard com is recognized as USD Serial Device and not Pyboard usb comm port (as mentioned in the link: http://micropython.org/resources/Micro- ... -setup.pdf), Is it a problem?
3. in pyCharm, how do I download the program to the device? and how can I execute it? (already installed microPython for pycharm)
4. in pyCharm, tools->MicroPython->MicroPython REPL. when I select it I get the following msg:

Device path E:\
Found the device, but could not connect via port 'E:\\': could not open port 'E:\\': FileNotFoundError(2, 'The system cannot find the path specified.', None, 3)
I'm not sure what to suggest. :-(
Press ENTER to continue


can anyone help me with the issues above?

Thanks
Alex

AlexBir
Posts: 7
Joined: Tue Apr 23, 2019 1:00 pm

Re: First Connect

Post by AlexBir » Tue Apr 23, 2019 2:00 pm

1. Success to run something by editing main.py.
but after it I get a message:
"The file or directory \main.py is corrupt and unreadable.
Please run the Chkdsk utility.

Chkdsk utility deletes the file.


the same happens if I modify boot.py

why?

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: First Connect

Post by Roberthh » Tue Apr 23, 2019 2:27 pm

The problem lies in the caching of the file system by the PC. After modifying the files on Pyboard, make sure that all chnages are written back. You can do that by closing the disk on the PyBoard. On Linux systems, you can also run the command 'sync' .
Mounting the PyBoard file system on a PC is so much prone to trouble, that may people don't do that any more. They use tools like rshell of ampy to copy filen in and out of PyBoard.

AlexBir
Posts: 7
Joined: Tue Apr 23, 2019 1:00 pm

Re: First Connect

Post by AlexBir » Fri Apr 26, 2019 8:39 pm

Already succeed, Thanks

Post Reply