Problem with mpremote #15994
-
Problem with mpremote.
|
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 4 replies
-
Putting a few "print" traces in the MicroPython v1.24.0-preview.409.g82e69df33 on 2024-10-10; Generic ESP32 module with ESP32
MicroPython v1.24.0-preview.315.g8feb714b4.dirty on 2024-10-10; Generic ESP32 module with ESP32
MicroPython v1.24.0-preview.315.g8feb714b4.dirty works while the latest does not. I replaced mphalport.c and mphalport.h from "409.g82e69df33" with those from "315.g8feb714b4" and recompiled. And things work after that. So it seems to me that there is something wrong with the new mphalport code. |
Beta Was this translation helpful? Give feedback.
-
Just found out what the problem was. Just a misplaced "#endif" in mphalport.c in the $ diff mphalport.c-ORIG mphalport.c
111a112
> #endif
118d118
< #endif |
Beta Was this translation helpful? Give feedback.
-
Oh that doesn't sound right!
The commits you're referring to look like:
Which line/s in particular is the #endif on? |
Beta Was this translation helpful? Give feedback.
-
Oh wow, yeah pretty sure that one is my fault sorry! I read that master version of the function a few times thinking "no, that looks correct to me just like it is". My thinking was that dupterm and cdc poll functions just below handle the poll flags internally so shouldn't need the "stdin ringbuffer / poll handling" in this function; only the serial_jtag poll needs it. I completely forgot that UART repl uses the stdin ringbuffer handling also needs that same stdin ringbuffer / poll handling! I was testing my recent changes on a bunch of newer esp boards but don't have an original esp32 currently and forgot to get that tested. Would you be able to submit that endif change to a PR? I'm certainly happy to review it if you can. Thanks! |
Beta Was this translation helpful? Give feedback.
-
The fix has been merged in #16006 so should now be working in master. Thanks for the report and description of the fix @shariltumin ! |
Beta Was this translation helpful? Give feedback.
The fix has been merged in #16006 so should now be working in master.
Thanks for the report and description of the fix @shariltumin !