This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/MSP430FR5969: Continually breaking at SW breakpoint when no Breakpoints specified

Part Number: MSP430FR5969

Tool/software: Code Composer Studio

Device: MSP430FR5969

Compiler: TI v18.1.2.LTS

CCS Version:  Version: 8.1.0.00011 

Symptoms: Debugging stops after initialization and halts execution, halting point appears to be random; on a coworkers computer the halt is on an if-statement, on mine it halts at __bis_SR_register(LPM0_bits + GIE);. Appears to exhibit same behavior associated with hitting a breakpoint.

No breakpoint has been set, I've flashed, reflashed, restarted CCS, rebooted my computer, power cycled the programmer and the target, disabled all breakpoints, skipped all breakpoints. Flashing the target without debugging seems to work fine.


I cannot post the source code I am working with, but I can give the state of the registers after initialization and on the "phantom breakpoint"

on entry to main():

msp430_all_registers_main.txt
Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
521177 89
R PC 0x00000011 0x00AED6
R SP 0x00000011 0x0023FC
R SR 0x0000000B 0x0003
R R3 0x00000011 0x000000
R R4 0x00000011 0x00FFFF
R R5 0x00000011 0x001800
R R6 0x00000011 0x000200
R R7 0x00000011 0x00A55A
R R8 0x00000011 0x000000
R R9 0x00000011 0x000112
R R10 0x00000011 0x001AF8
R R11 0x00000011 0x000000
R R12 0x00000011 0x000000
R R13 0x00000011 0x000000
R R14 0x00000011 0x001FA0
R R15 0x00000011 0x000000
R ADC12_ADC12CTL0 0x0000000B 0x0092
R ADC12_ADC12CTL1 0x0000000B 0x0203
R ADC12_ADC12CTL2 0x0000000B 0x0020
R ADC12_ADC12CTL3 0x0000000B 0x0080
R ADC12_ADC12LO 0x0000000B 0x0000
R ADC12_ADC12HI 0x0000000B 0x0FFF
R ADC12_ADC12IFGR0 0x0000000B 0xFFFF
R ADC12_ADC12IFGR1 0x0000000B 0xFFFF
R ADC12_ADC12IFGR2 0x0000000B 0x0010
R ADC12_ADC12IER0 0x0000000B 0x0000
R ADC12_ADC12IER1 0x0000000B 0x0000
R ADC12_ADC12IER2 0x0000000B 0x0000
R ADC12_ADC12IV 0x0000000B 0x0000
R ADC12_ADC12MCTL0 0x0000000B 0x0000
R ADC12_ADC12MCTL1 0x0000000B 0x0001
R ADC12_ADC12MCTL2 0x0000000B 0x0000
R ADC12_ADC12MCTL3 0x0000000B 0x0000
R ADC12_ADC12MCTL4 0x0000000B 0x0000
R ADC12_ADC12MCTL5 0x0000000B 0x0000
R ADC12_ADC12MCTL6 0x0000000B 0x0000
R ADC12_ADC12MCTL7 0x0000000B 0x0000
R ADC12_ADC12MCTL8 0x0000000B 0x0000
R ADC12_ADC12MCTL9 0x0000000B 0x0000
R ADC12_ADC12MCTL10 0x0000000B 0x0000
R ADC12_ADC12MCTL11 0x0000000B 0x0000
R ADC12_ADC12MCTL12 0x0000000B 0x0000
R ADC12_ADC12MCTL13 0x0000000B 0x0000
R ADC12_ADC12MCTL14 0x0000000B 0x0000
R ADC12_ADC12MCTL15 0x0000000B 0x0000
R ADC12_ADC12MCTL16 0x0000000B 0x0000
R ADC12_ADC12MCTL17 0x0000000B 0x0000
R ADC12_ADC12MCTL18 0x0000000B 0x0000
R ADC12_ADC12MCTL19 0x0000000B 0x0000
R ADC12_ADC12MCTL20 0x0000000B 0x0000
R ADC12_ADC12MCTL21 0x0000000B 0x0000
R ADC12_ADC12MCTL22 0x0000000B 0x0000
R ADC12_ADC12MCTL23 0x0000000B 0x0000
R ADC12_ADC12MCTL24 0x0000000B 0x0000
R ADC12_ADC12MCTL25 0x0000000B 0x0000
R ADC12_ADC12MCTL26 0x0000000B 0x0000
R ADC12_ADC12MCTL27 0x0000000B 0x0000
R ADC12_ADC12MCTL28 0x0000000B 0x0000
R ADC12_ADC12MCTL29 0x0000000B 0x0000
R ADC12_ADC12MCTL30 0x0000000B 0x0000
R ADC12_ADC12MCTL31 0x0000000B 0x0000
R ADC12_ADC12MEM0 0x0000000B 0x0FE0
R ADC12_ADC12MEM1 0x0000000B 0x0FEF
R ADC12_ADC12MEM2 0x0000000B 0x0FE3
R ADC12_ADC12MEM3 0x0000000B 0x0FF8
R ADC12_ADC12MEM4 0x0000000B 0x0FE0
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

 

Phantom Breakpoint

msp430_all_registers_phantom_breakpoint.txt
Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
521177 89
R PC 0x00000011 0x00AEE8
R SP 0x00000011 0x005D06
R SR 0x0000000B 0x000C
R R3 0x00000011 0x000000
R R4 0x00000011 0x05A5A5
R R5 0x00000011 0x05A5A5
R R6 0x00000011 0x05A5A5
R R7 0x00000011 0x05A5A5
R R8 0x00000011 0x05A5A5
R R9 0x00000011 0x05A5A5
R R10 0x00000011 0x05A5A5
R R11 0x00000011 0x05A5A5
R R12 0x00000011 0x000000
R R13 0x00000011 0x05A5A5
R R14 0x00000011 0x05A5A5
R R15 0x00000011 0x05A5A5
R ADC12_ADC12CTL0 0x0000000B 0x0092
R ADC12_ADC12CTL1 0x0000000B 0x0203
R ADC12_ADC12CTL2 0x0000000B 0x0020
R ADC12_ADC12CTL3 0x0000000B 0x0080
R ADC12_ADC12LO 0x0000000B 0x0000
R ADC12_ADC12HI 0x0000000B 0x0FFF
R ADC12_ADC12IFGR0 0x0000000B 0xFFFF
R ADC12_ADC12IFGR1 0x0000000B 0xFFFF
R ADC12_ADC12IFGR2 0x0000000B 0x0010
R ADC12_ADC12IER0 0x0000000B 0x0000
R ADC12_ADC12IER1 0x0000000B 0x0000
R ADC12_ADC12IER2 0x0000000B 0x0000
R ADC12_ADC12IV 0x0000000B 0x0000
R ADC12_ADC12MCTL0 0x0000000B 0x0000
R ADC12_ADC12MCTL1 0x0000000B 0x0001
R ADC12_ADC12MCTL2 0x0000000B 0x0000
R ADC12_ADC12MCTL3 0x0000000B 0x0000
R ADC12_ADC12MCTL4 0x0000000B 0x0000
R ADC12_ADC12MCTL5 0x0000000B 0x0000
R ADC12_ADC12MCTL6 0x0000000B 0x0000
R ADC12_ADC12MCTL7 0x0000000B 0x0000
R ADC12_ADC12MCTL8 0x0000000B 0x0000
R ADC12_ADC12MCTL9 0x0000000B 0x0000
R ADC12_ADC12MCTL10 0x0000000B 0x0000
R ADC12_ADC12MCTL11 0x0000000B 0x0000
R ADC12_ADC12MCTL12 0x0000000B 0x0000
R ADC12_ADC12MCTL13 0x0000000B 0x0000
R ADC12_ADC12MCTL14 0x0000000B 0x0000
R ADC12_ADC12MCTL15 0x0000000B 0x0000
R ADC12_ADC12MCTL16 0x0000000B 0x0000
R ADC12_ADC12MCTL17 0x0000000B 0x0000
R ADC12_ADC12MCTL18 0x0000000B 0x0000
R ADC12_ADC12MCTL19 0x0000000B 0x0000
R ADC12_ADC12MCTL20 0x0000000B 0x0000
R ADC12_ADC12MCTL21 0x0000000B 0x0000
R ADC12_ADC12MCTL22 0x0000000B 0x0000
R ADC12_ADC12MCTL23 0x0000000B 0x0000
R ADC12_ADC12MCTL24 0x0000000B 0x0000
R ADC12_ADC12MCTL25 0x0000000B 0x0000
R ADC12_ADC12MCTL26 0x0000000B 0x0000
R ADC12_ADC12MCTL27 0x0000000B 0x0000
R ADC12_ADC12MCTL28 0x0000000B 0x0000
R ADC12_ADC12MCTL29 0x0000000B 0x0000
R ADC12_ADC12MCTL30 0x0000000B 0x0000
R ADC12_ADC12MCTL31 0x0000000B 0x0000
R ADC12_ADC12MEM0 0x0000000B 0x0FB1
R ADC12_ADC12MEM1 0x0000000B 0x0FFF
R ADC12_ADC12MEM2 0x0000000B 0x0FBE
R ADC12_ADC12MEM3 0x0000000B 0x0FEE
R ADC12_ADC12MEM4 0x0000000B 0x0FD2
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

 

 


I don't expect this to be enough information, I will provide what I can upon request.

-Quinn

  • The behavior appears to only be present on one of our targets, but not the other. The launchpad for this unit also appears to be operating correctly. Voltage levels all appear to be nominal with no abnormal transients.
  • Hi Quinn,

    Assuming that the debug environment is the same between the working and non-working target (same code running, same CCS version, same target config, watchdog disabled for both), there may be some hardware configuration problem. I will move this thread to the MSP forum. The experts there will be more knowledgeable regarding the HW and can provide some more assistance.

    Thanks

    ki

  • This thread is being worked under this thread e2e.ti.com/.../710636

    So I will close this thread out.

    Thanks,
    Yiding

**Attention** This is a public forum