Page 1 of 1

Webrepl not working while executing code

Posted: Mon May 03, 2021 4:04 pm
by kevinkk525
I tried using the webrepl on my pyboard-D but it doesn't go further than entering my password. After that, nothing happens. Not even the repl output gets sent to the webrepl. Sending/Receiving files also doesn't work.
When I interrupt my uasyncio program or any other executed code on the pyboard, everything works fine again. (But I need to Interrupt from the console, it doesn't work through the webrepl)
Oddly enough, starting the same code again from the webrepl makes the repl output appear in the webrepl, however the KeyboardInterrupt still won't work.
I don't have these problems on my esp8266 or esp32.

I'm using micropython 1.15 from the download page.

additionally: Sending files to the pyboard through webrepl doesn't make them appear in the PYBFLASH drive on windows until a hard reset. Not even a soft reset makes them show up.

Edit: Openen an issue on github: https://github.com/micropython/micropython/issues/7208

Re: Webrepl not working while executing code

Posted: Sat May 22, 2021 8:06 pm
by kevinkk525
So nobody got problems with webrepl? Or is nobody using that anymore?

Wanted to deploy my pyboard in my garden project but if the webrepl is unusable, remote debugging won't be possible.. Then I'll have to use my esp32, which would be a shame (and some stuff won't work as well but at least the esp32 works properly..)

Re: Webrepl not working while executing code

Posted: Thu May 27, 2021 5:26 am
by kevinkk525
Well, for anyone interested, I ended up building my own firmware with _thread enabled and just ran my application in a thread, which leaves the repl responsive and therefore the webrepl works fine too. Not really my preferred mode but at least it seems to work stable. An added benefit might be that you can debug the application while it is running :D