Forum Discussion
Altera_Forum
Honored Contributor
15 years agoWhen debugging a Nios application, the debugger does not need to update the code at the actual reset vector. After the debugger downloads your code it just sets the program counter to the start of your code. You just need to make sure your BSP is configured to not place any initialization code at the reset vector (make sure Advanced -> hal.linker -> allow_code_at_reset is off).
To debug a boot loader you either need to place it in RAM or enable hardware breakpoints in your Nios configuration.