wokwi / rp2040js

A Raspberry Pi Pico Emulator in JavaScript
MIT License
400 stars 44 forks source link

Latest stable MicroPython (20210902) does not provide REPL at startup #79

Closed jmdevy closed 3 years ago

jmdevy commented 3 years ago

Trying to use the 20210902 MicroPython .uf2 with the newest 0.14.2 rp2040js build does not start/display the friendly REPL

I used the instructions to run the local demo

urish commented 3 years ago

Did older versions work for you?

jmdevy commented 3 years ago

Yes

Using the 20210618 MicroPython .uf2 works fine with 0.14.2

urish commented 3 years ago

Can you please try to find the earliest version where it stops working?

jmdevy commented 3 years ago

Stable MicroPython builds for the rp2040 jump from 20210618 to 20210902 (https://micropython.org/download/rp2-pico/) and so the earliest version it stops working is technically 20210902

urish commented 3 years ago

Got it, there seem to be a lot of changes between these two versions, so it might take me some time to pinpoint the issue. Thanks for reporting!

What's your use case for the MicroPython simulation?

jmdevy commented 3 years ago

Turning mcu.logger to 'Debug' level in 'demo/micropython-run-ts' displays a lot of USB transfer messages with working 20210618 but none in 20210902.

My use case is simply messing around with it. I may try to use it to simulate graphics on a webpage using a MicroPython ssd1306 screen library in the future. Although, I have not seen an example of importing a 'custom' python file/module

urish commented 3 years ago

Should be fixed now!