Cart New Account Login

HomeAbout usProductsSupportForumsBlogCustomer Service
   Home P&E Customer Support FAQs - Frequently Asked Questions FAQ ID # 195
FAQ ID # 195
 
Question
My device is part of the CPU32/683xx family and I'm debugging my code in ICD32Z. If I try to set a breakpoint in my code (located in FLASH EEPROM), I get the following error message on my screen: “Could not write breakpoint to hardware.”.
 
Answer
The CPU32 architecture does not have support for hardware breakpoints. You also can not set a software breakpoint in the debugger if your code resides in Flash/EEPROM. To get around this limitation of the CPU32 architecture, you can add a background stop instruction (BGND) to your code where you want a breakpoint and recompile it. Inline assembly can be utilized if you are programming in C. After you reprogram the new code to Flash/EEPROM, you will be able to run at full speed in ICD and stop at the desired address where you have placed the BGND instruction. If running at full speed is not a requirement, you can use the Gotilrom [address] command which does a series of single-steps until the address is in your program counter.
 
Related Downloads
none
 
Architectures Categories Products
CPU3xx Debugger ICD32Z, PKG32Z-USB
 
Please rate this FAQ to help us improve our support
0 means "not helpful"
10 means "very helpful"
0 1 2 3 4 5 6 7 8 9 10

© 2017 P&E Microcomputer Systems Inc.
Website Terms of Use and Sales Agreement