Cart New Account Login

HomeAbout usProductsSupportForumsBlogCustomer Service

Please accept the use of cookies on our site

At PEmicro we use web browser cookies in order to provide you with an enhanced experience and in order to be able to do things like shopping cart processing and identify you when you login to our website.

Click here to accept

   Home P&E Customer Support FAQs - Frequently Asked Questions FAQ ID # 195
FAQ ID # 195
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.”.
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
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

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