Skip to content

Instantly share code, notes, and snippets.

@jscrane
Last active October 11, 2015 12:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jscrane/a613f88bf988eab4bd18 to your computer and use it in GitHub Desktop.
Save jscrane/a613f88bf988eab4bd18 to your computer and use it in GitHub Desktop.
mspdebug trace
msp430fr5739$ /usr/local/energia/hardware/tools/msp430/bin/msp430-nm Blink.elf > Blink.out
msp430fr5739$ mspdebug -q rf2500
Trying to open interface 1 on 056
rf2500: warning: can't detach kernel driver: No data available
Device: MSP430FR5739
fet: FET returned NAK
warning: device does not support power profiling
(mspdebug) sym import Blink.out
(mspdebug) setbreak setup
Set breakpoint 0
(mspdebug) run
Running. Press Ctrl+C to interrupt...
( PC: 0c2c0) ( R4: 08fbf) ( R8: 00091) (R12: 08ffc)
( SP: 01ffe) ( R5: 05a0c) ( R9: 00000) (R13: 00001)
( SR: 0000a) ( R6: 07dd3) (R10: 0c276) (R14: 00000)
( R3: 00000) ( R7: 03f4b) (R11: 0c276) (R15: 00000)
setup:
0c2c0: b0 12 fc c3 CALL #_ZN5Tasks4initEv (Tasks::init)
0c2c4: 3f 40 00 1c MOV #blink, R15
0c2c8: 1e 42 00 1c MOV &blink, R14
0c2cc: ae 12 CALL @R14
0c2ce: 3e 40
(mspdebug) step
( PC: 0c3fc) ( R4: 08fbf) ( R8: 00091) (R12: 08ffc)
( SP: 01ffc) ( R5: 05a0c) ( R9: 00000) (R13: 00001)
( SR: 0000a) ( R6: 07dd3) (R10: 0c276) (R14: 00000)
( R3: 00000) ( R7: 03f4b) (R11: 0c276) (R15: 00000)
_ZN5Tasks4initEv (Tasks::init):
0c3fc: c2 93 ae 1c TST.B &_ZGVZN5Tasks4initEvE4main
0c400: 05 20 JNZ 0xc40c
0c402: b2 40 20 c7 b6 1c MOV #0xc720, &_ZZN5Tasks4initEvE4main
0c408: d2 43 ae 1c MOV.B #0x0001, &_ZGVZN5Tasks4initEvE4main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment