-
Notifications
You must be signed in to change notification settings - Fork 565
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
Trying to interact with UART via Rust binary (stuck at liftoff) #1935
Comments
You could use litescope to capture the soc bus address to see where your code is going. But if you use the sim as per your other issue you are probably already getting a vcd file that shows the full internal state of the design. |
Program works in simulation with
Hmm...
|
Hi @roby2014, do you still have the issue? If working in simulation from ROM, you could also try to run it from MAIN_RAM ( |
hi @enjoy-digital . I've not looked at this since I created this issue. so, running the above program in simulation work with Please see the following logs if they help: --rom-init
output:
--ram-init
output:
In rust, the HAL & PAC auto generate
How can I provie more inorder to find out whats wrongs here? |
`MEMORY { REGION_ALIAS("REGION_TEXT", rom); The problem is that you code is linked into rom. Edit memory.x to place code in main_ram as follows: Then build your binary to load to main ram. I don't think the reset address is used when you load this way. It would be great if you can document the steps you followed to get to here as you are very close to a working solution: from a quick search I suspect you used svd2rust and possibly followed an online write-up I found, but it would be great to get confirmation. I'm interested in reproducing this and adding some info to the wiki. |
hi @enjoy-digital and @AndrewD .
is this expected? shouldnt it work at the first time i flash the firmware? keeping it here for future reference |
Hello. Not sure if the right place to ask, but here I go:
been trying to flash a rust program to my ecp5 fpga (colorlight 5a-75e). however when booting, im not getting the expected output.
however, it gets stuck at liftoff:
any idea how I can debug this? ive tried uploading a c binary (this one and works fine.
this is how im building my soc:
The text was updated successfully, but these errors were encountered: