NGord
Occasional Contributor
1 year agoNiosV
Hi I am in the process of converting a MAX10 Nios2 design to a MAX10 NiosV. It boots from Flash loaded into DDR All is good with the compiling apart from I need to convert the elf file to a hex fi...
Hi
Taking a look at your BSP Settings. The address looks ok.
The linker is set to boot from 0x20000000 .
Instead of creating a project you could just add your project into the IDE and create a debug configuration.
https://www.intel.com/content/www/us/en/docs/programmable/730783/22-1std/importing-project.html
Once you imported you could create the debug connection.
Take note to select "Ashling RISC-V (auto-detect) Hardware Debugging"
Then in the debugger tab you could select the NiosV processor in the core selection.
Please note to close the juart-terminal if you have open before opening a debugging connection.
If you are able to see the logs in the terminal from the project you created. That means the elf is working.
From the the debugger could you try taking a look at the address map of 0x20000000. To see if the bootloader have copied the code over to the memory space?
Regards
Jingyang, Teh
I havent found any way for Ashling IDE to give me a reliable error free build, even using 24.1.1 "import niosv cmake project"
The only method that work consistently error free is by using niosv-shell with:-
> cmake -S ./sw/app_hal -G "Unix Makefiles" -B sw/app_hal/build
> make -C sw/app_hal/build
Nios2 was never this troublesome.The same software and the same hardware worked just fine, but there I was using Quartus 18, not Quartus 23.1.1.
Maybe I will try Nios2 with Quartus 23.1.1 tomorrow to see what happens
If you can get a NiosV Hello working on a MAX10 development board on Windows 10 with WSL V1 , I would love to know.
Nios2 with the same design works ok on Quartus 23.1.1.
Finally I have something that almost works.
Use Ashling IDE 24.1.1 "import niosv cmake project" and build project.
Downloading the elf file works either with Asling IDE 'Run as' or NiosV command shell niosv-download!
It doesnt run from External Flash though I do know
elf2flash and
riscv32-unknown-elf-objcopy
both commands work because I verified them with a nios2 elf
I also get it working using internal flash for code storage and alt_load for writable sections.
So that just leaves the "niosv_g_bootloader.srec" which replaced Nios2 "boot_loader_cfi.srec".
Can we be certain "niosv_g_bootloader.srec" works with Generic QSPI??