Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12612 Discussions

Cannot set breakpoint in FLASH

Altera_Forum
Honored Contributor II
1,023 Views

I'm trying to set a breakpoint in FLASH memory. When I do, execution pauses at PC, and the following error appears on the log: 

 

<div class='quotetop'>QUOTE </div> 

--- Quote Start ---  

Cannot insert breakpoint 8. 

Error accessing memory address 0x1033e4: (undocumented errno -1).[/b] 

--- Quote End ---  

 

 

Are memory writes needed for setting breakpoints? Breakpoints for internal ROM work OK, so it doesn&#39;t make apparent sense.
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
290 Views

Looks like I have a workaround - insert a break instruction into the code: 

 

asm ("break"); 

 

This also gets around the "set breakpoint at arbitrary address" problem as well http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif
0 Kudos
Altera_Forum
Honored Contributor II
290 Views

The internal ROM isn&#39;t really readonly, so it allows you to set a breakpoint. The best way to do what you want is to turn on the hardware breakpoints. You will get a limited number of hardware breakpoints, but it will allow you to change them without reflashing the code. 

 

Regards,
0 Kudos
Reply