Forum Discussion
FawazJ_Altera
Frequent Contributor
1 month agoHello,
I have few comments here, and would appreciate your feedback:
- The timing issue has been resolved, so I would expect the DDR3 to operate normally. The Nios II ELF was successfully downloaded from the command line, which effectively eliminates any DDR3 calibration failures. If calibration had failed, the download would not have succeeded due to an unresponsive DDR3 controller.
- I am not sure which script did you use to download the ELF. I recommend including the -r option (if not used) while downloading the elf to issue a reset. I also suggest running the following command after the ELF download completes and before opening the UART terminal (or even while its open, and use another command line to run the command): nios2-download --reset-target
- I still need to review the linker script settings, so kindly share the screenshot with me. if possible, share the settings.bsp file.
- I also need to know which JTAG UART driver is being used—whether it is the standard driver or the fast driver. This can be checked in the BSP Editor under the General settings.
- Additionally, there is a warning in the BSP Editor indicating that .stdin, .stdout, and .stderr are not assigned to an output device. Although a JTAG UART instance appears to be present in the design, the standard I/O streams are currently set to “none.” I would recommend to update the BSP settings to redirect these streams to the JTAG UART.
- Finally, I would like to know if you tried running the hello world example before moving to the real SW or FW. Also, did you try running it from on-chip RAM instead of DDR3?
Thank you
- steve_ht1 month ago
New Contributor
Hi FawazJ_Altera,
Thank you for the detailed response.
- Yes, the download itself seems to be OK.
- I tried it with the -r option as you suggested but did not help.
- Unfortunately I could not attach the bsp file. But here are the linker script settings:
- Can you help me where I can find this section (General settings)?
- I updated but situation still did not change.
- No, I have not tried Hello World or to download to OC RAM. I got a 10 years old product with FW/SW which was fine originally. Board was redesigned and I updated the FW with some new functions and pins, removed some original ones and got the current unreliable FW/SW. When it works, it is always stable, when it doesn't, NIOS never starts while the SW works well if I build it to the original (old) FW version. (As NIOS-related pins did not change, I can test both FWs on both old and new boards with the same SW code.) This is a very strange behaviour to me and now I have no idea how to move on.
- steve_ht1 month ago
New Contributor
I was able to upload and share the bsp file so you can reach it here: settings.bsp