Skip to content
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

limesdr_mini_v2 loading firmware: [LITEX-TERM] Got unexpected response from device 'b'\n'' #554

Open
vbuitvydas opened this issue Dec 22, 2023 · 7 comments
Labels
bug? Something isn't working question

Comments

@vbuitvydas
Copy link

Hi,

I am trying to load firmware to LimeSDR-Mini v2 board. I have generated and loaded gw for limesdr_mini_v2 target. Also I have taken firmware from lab004, removed led_test and display_test and compiled firmware, but I cannot load it. Can anyone help me to understand what is wrong here?

Issue:
I am getting [LITEX-TERM] Got unexpected response from device 'b'\n'' while loading firmware.

image

Steps to reproduce issue:
./limesdr_mini_v2.py --csr-csv=csr.csv --build --load

litex_server --jtag --jtag-config=openocd_limesdr_mini_v2.cfg
litex_term crossover --kernel ./build/limesdr_mini_v2/firmware/firmware.bin

@enjoy-digital
Copy link
Member

@vbuitvydas: Uploading firmware over JTAG was not well tested/reliable in the past and we made some work on this recently. If you are not using upstream version of LiteX, it could be worth testing with it. If still not yet working, I'll have a look.

@enjoy-digital enjoy-digital added bug? Something isn't working question labels Jan 7, 2024
@vbuitvydas
Copy link
Author

thanks @enjoy-digital for your reply,

I was using Litex 7062e3379fdd80ac0523390ca46c87906b8c68ff, and updated it to the latest 91fbc79ac2e0af4e9edf3a3fe423f98fb7bdeffb.

I am getting similar results:
image

@trabucayre
Copy link
Contributor

Could you retry with:

./limesdr_mini_v2.py --integrated-main-ram-size 0x8000 --load --build --uart-name=jtag_uart
litex_bare_metal_demo --build-path build/limesdr_mini_v2
litex_term jtag --jtag-config=openocd_limesdr_mini_v2.cfg --kernel demo.bin

Seems to have a problem to load a firmware with jtagbone + crossover, but it's working when using jtag_uart

@vbuitvydas
Copy link
Author

Could you retry with:

./limesdr_mini_v2.py --integrated-main-ram-size 0x8000 --load --build --uart-name=jtag_uart
litex_bare_metal_demo --build-path build/limesdr_mini_v2
litex_term jtag --jtag-config=openocd_limesdr_mini_v2.cfg --kernel demo.bin

Seems to have a problem to load a firmware with jtagbone + crossover, but it's working when using jtag_uart

Tried with following commands and it is working now. Thanks!

@trabucayre
Copy link
Contributor

Thanks for your feedback!

@vbuitvydas
Copy link
Author

Hi @trabucayre,

with latest litex updates firmware loading using jtag_uart is no longer working. I followed same steps as mentioned above litex_term gets stuck:
image

@trabucayre
Copy link
Contributor

Indeed.
It's a regression with commit 6885770e4736b234e65f57840ff8f74a1165a7e0.
After reverting this commit jtag_uart is working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug? Something isn't working question
Projects
None yet
Development

No branches or pull requests

3 participants