-
Notifications
You must be signed in to change notification settings - Fork 58
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
Hang After "Liftoff" line while loading firmware.bin #12
Comments
Could you type anything in the terminal then? Like help? And is your main.c untouched? |
No, I couldn't able to type anything on the terminal |
I used make tool to build the target 'all' in the makefile and source code main.c will be processed and main.d, main.o was generated. |
I had similar issue when I first tried. I know it would be frustrating. |
Hi, can you try to apply similar changes than in https://github.com/enjoy-digital/litex/pull/1259/files? If working we'll probably just disable LTO until someone has more time to have a closer look. |
When I press reset button on the board it will display as nexys4ddr board. __ _ __ _ __ / / () /___ | |// / /__/ / __/ -)> < ///_/_//|_| Build your hardware, easily! (c) Copyright 2012-2021 Enjoy-Digital BIOS built on May 19 2022 15:53:24 Migen git sha1: ac70301 --=============== SoC ==================-- --============== Boot ==================-- --============= Liftoff! ===============-- I was unable to type anything here |
Thank you very much for your reply! In main.c, there is main function which contains console_service function in while loop(1). int main(void) and I didn't make any changes in the main.c how should I resolve this problem? Thanks!!! |
Hi, do you see something like this when make the main.c? If that's the case, you may have to change to the makefile to an older version on the git. I guess it's something to do with the crt0.S/o file. I also messed this up sometime ago. |
Hi, when I do make all in the firmware directory, CC main.o do I need to make changes in crt.o file? what are the changes? |
Hi, I got the similar output before. Try to change the makefile to this |
Thank you so much for your reply. Lab004 is working when I made the changes in makefile. |
Fixes two separate issues that were keeping lab004 from working. The first is a minor but important oversight from litex-hub/fpga_101@b36c77a: It added a definition for crt0.o but then didn't refer to it anywhere, effectively removing crt0.o from the build. That was likely the cause of litex-hub/fpga_101#12. The second issue I don't understand as well, but seems to be exactly the same as enjoy-digital/litex#1007, from which I copied the fix.
The bit stream was loaded on to the board and it was hang at Liftoff while loading firmware to the board with the command ("litex_term /dev/ttyUSB1 --kernel=firmware.bin"). Here I'm using nexys4ddr board.
Build your hardware, easily!
(c) Copyright 2012-2021 Enjoy-Digital
(c) Copyright 2007-2015 M-Labs
BIOS built on May 19 2022 15:53:24
BIOS CRC passed (dbfbcbc7)
Migen git sha1: ac70301
LiteX git sha1: d36e1b60
--=============== SoC ==================--
CPU: VexRiscv @ 100MHz
BUS: WISHBONE 32-bit @ 4GiB
CSR: 32-bit data
ROM: 32KiB
SRAM: 8KiB
MAIN-RAM: 16KiB
--============== Boot ==================--
Booting from serial...
Press Q or ESC to abort boot completely.
sL5DdSMmkekro
[LXTERM] Received firmware download request from the device.
[LXTERM] Uploading firmware.bin to 0x40000000 (3580 bytes)...
[LXTERM] Upload calibration... (inter-frame: 10.00us, length: 64)
[LXTERM] Upload complete (9.8KB/s).
[LXTERM] Booting the device.
[LXTERM] Done.
Executing booted program at 0x40000000
--============= Liftoff! ===============--
what am I doing wrong?
Is nexys4ddr board supported for https://github.com/litex-hub/fpga_101/tree/master/lab004 ??
Thanks!!!
The text was updated successfully, but these errors were encountered: