-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compatibility with compiled Micropython #246
Comments
This sounds like your image is trying to access the potato UART but core_tb has the 16550-style UART. |
Hi @paulusmack Paul @antonblanchard , i had the same issue. I saw that you can set the 16550-style UART. |
[Solved] @paulusmack @antonblanchard @shenki @mikey
by
after you can rebuild and recreate the link enjoy again ;->> below the full modifications:
|
Thanks @titof49! We should update micropython to use the 16550 all the time, and eventually get rid of the potato UART in microwatt. |
Instead of changing the makefile, you can compile like this:
|
In the latest code this seems to be broken again: (1) potato (default build of micropython):
(2) UART (lpc_serial in micropython):
AFAIK lpc_uart_init() is using a different base address now (LPC_UART_BASE). Edit # 1
Both input and output works now for lpc_serial (
|
You must change uart mode see #246 issue on git mocrowattLe 10 janv. 2023 03:36, rgc ***@***.***> a écrit :
In the latest code this seems to be broken again:
(1) potato (default build of micropython):
==========
rgc:~/i/microwatt$ ./core_tb > debug_log
MicroPython v1.19.1-782-g699477d12 on 2023-01-10; bare-metal with POWERPC
Type "help()" for more information.
==========
micropython seems to output the debug string properlybut user is unable to perform any input
(2) UART (lpc_serial in micropython):
==========
rgc:~/i/microwatt$ ./core_tb > debug_log
==========
micropython can't even output any debug string
AFAIK lpc_uart_init() is
https://github.com/micropython/micropython/blob/1f371947309c5ea6023b6d9065415697cbc75578/ports/powerpc/uart_lpc_serial.c#L100
using a different base address now (LPC_UART_BASE).
https://github.com/micropython/micropython/blob/1f371947309c5ea6023b6d9065415697cbc75578/ports/powerpc/uart_lpc_serial.c#L39
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
I see that the prebuilt image in this repository is based on MicroPython v1.12-571 (some intermediate version I guess?)
I tried compiling micropython using GCC cross-compiler on Ubuntu 20.04 (with both buildroot download and gcc9.3 based from debian repositories)
I attempted using the current master branch, v1.13 and v1.12 from the micropython repo.
In all the cases, although I can compile without errors, when I run
core_tb
, I am not able to issue any inputs in the terminal from the keyboard. This does not happen with the prebuilt image.I am not sure how exactly shall I debug this. But I would be happy to help and provide more details if neeeded.
Thank you.
The text was updated successfully, but these errors were encountered: