Dear Experts,
I encountered a challenge (at the moment it is not clear if this is a bug) in IAR workbench Debugger and the lauchpad MSP-EXP430FR5969: As printed in an appnote from TI, I have removed all jumpers between the application processor and the USB Emulator Interface. Instead of the FR5969 I have wired a MSP430F2011 via SBW and Vcc to the Interface. Wires are approx. 7 cm (means 3 inches) Long and a few Millimeters seperated.
Version of IAR workbench is 6.50.1 (coming from Installation file "EW430-6501-Autorun.exe".
After removing all SW breakpoint in Debugger, (see also https://e2e.ti.com/support/microcontrollers/msp430/f/166/p/523539/1910220#1910220 ) I have started the debugger with a simple "mainloop" in main program and interrupted by a Interrupt Service Routine "TAIFG_ISR".
Following steps are done:
- start Debugger from editor
- reset to start of prog
- start program and wait several seconds
- place breakpoint BP at mainloop
code in mainloop Looks like:
Mainloop nop
; bis.w #LPM3+GIE,SR ; Enter LPM3 w/ int until Byte RXed
jmp Mainloop ;
ISR Looks like
;-------------------------------------------------------------------------------
TAIFG_ISR ; Interrupt handler for TACCR0 CCIFG Cycles
;-------------------------------------------------------------------------------
xor.b #0x10, &P1OUT ; toggle for scope
reti
- set 2nd breakpoint inside ISR
- continue runnig
- watch program stops
- remove BP inside ISR
- continue code running
- remove BP in main loop
- continue code running
- set BP again in mainloop
oooh, program does not stop !!!
- press hold button and watch where it stops
- do it several times
- remove BP in main loop
- continue code running
- set BP in main loop
- now, Debugger stops inside ISR, where no BP is placed
This bug replication is a little bit tricky, since one has to play around with the degugger. But after a while, the debuger does not stop at the breakpoint, but at code lines below.
This morning I have send a description of the bug to IAR Munich for verification and awaiting an answer. I have sent out a Video file.
Is there someone else out in the world, who made similar observations?
It would be be nice, if someone replies...
BR
Bernd