Question: Debugging of XC22 or XC24 devices is not working?
Answer: To connect debugger to the XC822 or XC824 devices the User ID should be in OCDS mode. If the MCUs are in UART BSL or User Mode (Diagnostic) the debugger offer the option to reprogram the User ID. The debugger cannot connect if the User ID is in User Mode (Productive). In this case FLOAD may help to reprogram the User ID if the user program allows a connection via UART.
Question: Is it possible to set Breakpoints in the Disassembly View?
Answer: It is basically possible but these breakpoints are not visible and are not considered by the debugger. It is not recommended to set Breakpoints in the Disassembly View.
Question: How to watch SFR registers with the debugger?
Answer: In the debugger there is a view called Register to watch and modify registers. But this view shows only core registers. Any other SFR register may be viewed with the Variable view. The Variable view provides the functionality: “Add Global Variables”. After activation of this functionality a selection window appears that shows all global variables and in additions all SFR registers (alphabetically). The required SFR registers can be selected and will then be shown in the variable view.