-
Notifications
You must be signed in to change notification settings - Fork 574
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
litex_term, fomu.py target: serialboot not working, but works with older revisions of litex_term #773
Comments
@tcal-x: It could be related to the low speed of the CPU on the Fomu. Can you do a first test with |
Yeah, that's what I was thinking (that Fomu is just slow)! Here's what I found:
|
tcal-x: OK thanks for the feedback. I initially wanted to add a self test to find the best |
I have the same issue on the colorlight board with ecp5, running at 50MHz, loading over a crossover uart with the uart wishbone bridge. The issue is probably that the crossover uart is really slow. Since the crossover support was added afterwards, I'm not sure if it works with the earlier versions. |
Same issue on OrangeCrab r0.2, any firmware fails to load using a usb-acm serial. The workaround of setting Welcome to do some testing. |
Update: with current litex (5661480) & litex-boards (litex-hub/litex-boards@5addd7f), I see this behavior when attempting to load the bare metal demo:
The progress bar gets to about 50% before the final line error is displayed. |
Here is earlier output from the initialization process:
|
Thanks @tcal-x, I indeed pushed litex-hub/litex-boards@5addd7f to test this but this was not correct and the LiteX bare metal demo with upload over
|
Hi @enjoy-digital , I can reproduce this now. I was missing the |
Hi @tcal-x, thanks for the feedback. |
I am building and flashing the fomu target from litex-boards:
I then build the litex bare metal demo, although I need to make some modifications. I need to split the
sram
section to add a new sectionprog_ram
inbuild/fomu_pvt/software/include/generated/regions.ld
:In the demo linker.ld file, I move all of the sections except for fstack to
prog_ram
.I then load the binary to the
prog_ram
section using lxterm:This works if I check out
litex/tools/litex_term.py
from 05f83ca (Nov 13, 2020).However, the serialboot fails if I use any version 513a799 (Dec 3, 2020) or newer. lxterm sees the serial boot request string and sends and ack, but the BIOS on Fomu does not recognize the ack, and times out.
The text was updated successfully, but these errors were encountered: