Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
20 years ago

Cannot set breakpoint in FLASH

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.

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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,