Other Parts Discussed in Thread: MSP-FET
Tool/software:
I have the following code:
- Global disable interrupts
- Disable watchdog
- Init DCO (as per TI documentation)
- Clear port pin
- NOP
- NOP
- NOP
- NOP
- Set port pin
- Clear port pin
- NOP
- NOP
- NOP
If I place a breakpoint at 13, and scope the pin, I get a pulse of ~1.2us as expected for my clock. However if I place the breakpoint at 11 (and sometimes 12), and scope the pin, the pulse is around ~41ms.
(Above line edited to fix line number reference error. I added items to my numbered list after I had typed this statement - DOH)
Note:
- I have confirmed the code is as expected, by viewing the disassembler
- The pin is not connected to any other hardware. I have tried other pins, the result is the same.
- I am using EW430 IAR Debugger together with MSP-FET Flash emulation tool (with latest firmware)
- IAR support have referred me here, as they believe it is a device / FET specific issue.
- I have tried various combinations of JTAG speed, Memory cache and ULP debug, but the result is always the same.
Example of the pin code and breakpoint location:
![]()