Forum Discussion
Altera_Forum
Honored Contributor
21 years agoHelp: assemble langurage development
Hi,
I want to develop nios ii firmware using assemble langurage. The firmware will run in the onchip_memory. My questions are, 1), how to deside the sp address? 2), how to set the exception address in SOCP? Thanks, eRen3 Replies
- Altera_Forum
Honored Contributor
Hi,
- the stack grows towards lower memory, so put it at the highest accessible memory location. - setting the exception address can be done in the second tab sheet of the SOPC builder Stefaan - Altera_Forum
Honored Contributor
eRen,
setup of the stack pointer is made in file crt0.s. Copy this file from '<NIOS-Dir>\components\altera_nios2\HAL\src\' to your software directory and make your changes. If the compiler finds this file in your directory it is not searched further. Mike - Altera_Forum
Honored Contributor
Thanks Mike and Stefaan.
eRen