- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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, eRenLink Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Mike and Stefaan.
eRen
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page