Forum Discussion
Problem writing the NIOS II program to the EPCS controller.
- 1 year ago
Hi @Megavolt91,
Thank you for posting in Intel community forum, hope all is well and apologies for the delayed in response.
Thanks for the details explanation, appreciate the effort on explaining the situation, it definitely helps us to understand the situation and others too.
Just to clarify, you are able to program to Nios II configuration to EPCS controller now and Nios II is also starting up. However there is confusion in the addresses?
Note: Nios II has been deprecated and no longer supported, hence perhaps it is advised to moved to Nios V, however we would try our best to clarify on your situation.
Best Wishes
BB
I think I have an idea what the reason is. The .Exctptions address. For the bootloader, it points to SDRAM. For the loaded software, it points to OnChip. It seems that the hardware of the bootloader and software must be 100% compatible, and the bootloader cannot use any interrupts. However, they are not needed there.
..............
And so it turned out. The hardware must match both the bootloader (must be an EPCS controller) and the loaded program (the Exception vector must be where the loaded program needs it. The bootloader does not use it). At this point, the bootloader topic can be closed. Of course, it will still need to be minimized, the stack, bss, write sections should be written somewhere (I think in a separately allocated 200 bytes of the chip's RAM.)
The standard bootloader never worked.