lopy not running main.py
-
I can connect through pymakr, but after power plug I have to click in console to reconnect.
On my windows it also didn't work at first. I had to install a driver for USB serial converter by hand, mine called FTDI. After that i could use it in pymakr.Are you able to update the firmare?
-
@mmarkvoort
i had the same issue, so i flashed the lopy , and it went well. Do you know the procedure ?Did you try this on linux ? I had to install FTDI driver too but seems that it isn't enough.. That's why I can't even update de firmware, because of an error : Something failed trying to connect to the device.
I guess it's because of what I explained bellow on the authorization issues. -
@gouao
I didn't try this on linux.Here they say there are two types of FTDI drivers. VCP and D2XX. I can't remember which one I used. But the first one I tried said it installed the missing driver, but when I wanted to connect to the LoPy it didn't work. After research I deleted the driver and tried the other. After that I was able to connect to the LoPy.
It was very confusing because the driver said it was installed correctly.
-
@mmarkvoort
For now it's ok for me concerning the FTDI drivers, but I agree it's a bit confusing in the first place.Now I can connect on it e.g. REPL, I am curious about what other options @livius is talking about, because I actually encounter some connection issues with pymakr.
-
@gouao
I use this setup:- filezilla to modify files and write it back + Notepad++(to nicely edit files)
- Arduino IDE-and from it COM port monitor to see repl and send command back by repl
I use Windows OS but it is avaiable on linux also
After install you must only set COM number and baud rate - and if you need not only read data by repl but also send commands - change line break termination - and it work like a charm :)
-
- For filezilla, are you perma connected on the lopy-wlan or you have some software settings in order to modify and transfer files while the lopy connected in serial, without establish a connection on the wlan ?
- True it works well :)
-
@gouao
I have connected filezilla permanently to Wipy and do modifications and send it back.
But i do modifications on files on computer and do not use option to edit file on board "directly"
I modify on left panel not on the right panel ;-) -
@livius
This is not what I meant, but while you are doing it, are you connected to the "wipy-wlan" network ? -
@gouao
yes i connet to Wipy AP (wipy-wlan)and one hint
to simplify developing process and speed it up
i put always in the while true loop check if some button is pressed and break this loop
this elimiminate need to restart board and reconnect to it :)Of course if you do not need to change from AP to STA mode
-
I'm having a similar issue now.
main.py will run after CTRL-D or machine.reset(). But, power cycling the Lopy (on expansion board) will connect REPL to pymakr, but main does not seem to run.
I've done an os flash, and rewritten all the files. Problem continues though.I'm wondering if it is going to safe boot, factory mode as here:
https://docs.pycom.io/pycom_esp32/pycom_esp32/toolsandfeatures.html#boot-modes-and-safe-boot
How can I can tell which mode is used?I've reset the expansion board jumpers and tightened them up as best I can. Could these be the problem?
-
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login