The problem is the msp430.dylib
driver shipped with pio.
I installed the Texas Instruments GCC Toolchain 9.2.0 (MSP430-GCC-OPENSOURCE IDE, configuration, compiler or debugger | TI.com) and replaced the original version on ~/.platformio/packages/tool-dslite/DebugServer/drivers
with the Texas one.
It succeeded loading the binary onto the board. I don’t know yet how to debug with pio
to check if it is all.
Processing lpmsp430f5529 (platform: timsp430; board: lpmsp430f5529)
--------------------------------------------------------------------------------
CONFIGURATION: https://docs.platformio.org/page/boards/timsp430/lpmsp430f5529.html
PLATFORM: TI MSP430 (2.2.0) > TI LaunchPad MSP-EXP430F5529LP
HARDWARE: MSP430F5529 25MHz, 8KB RAM, 47KB Flash
DEBUG: Current (mspdebug) On-board (mspdebug)
PACKAGES:
- tool-dslite 1.80200.1400 (8.2.0)
- tool-mspdebug 1.2400.190926 (24.0)
- toolchain-timsp430 1.40603.190926 (4.6.3)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 0 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
msp430-gcc -o .pio/build/lpmsp430f5529/src/blink.o -c -Os -ffunction-sections -fdata-sections -mmcu=msp430f5529 -DF_CPU=25000000L -DPLATFORMIO=50003 -DENERGIA_ARCH_MSP430 -DENERGIA_MSP_EXP430F5529LP -Iinclude -Isrc src/blink.c
msp430-gcc -o .pio/build/lpmsp430f5529/firmware.elf -Os -mmcu=msp430f5529 -Wl,-gc-sections,-u,main .pio/build/lpmsp430f5529/src/blink.o -L.pio/build/lpmsp430f5529 -Wl,--start-group -lm -Wl,--end-group
MethodWrapper(["checkprogsize"], [".pio/build/lpmsp430f5529/firmware.elf"])
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [ ] 0.0% (used 2 bytes from 8192 bytes)
Flash: [ ] 0.6% (used 272 bytes from 48128 bytes)
.pio/build/lpmsp430f5529/firmware.elf :
section size addr
.text 144 17408
.noinit 2 9216
.vectors 128 65408
.debug_aranges 120 0
.debug_info 666 0
.debug_abbrev 120 0
.debug_line 519 0
Total 1699
<lambda>(["upload"], [".pio/build/lpmsp430f5529/firmware.elf"])
AVAILABLE: dslite
CURRENT: upload_protocol = dslite
/Users/edil/.platformio/packages/tool-dslite/DebugServer/bin/DSLite load -c /Users/edil/.platformio/packages/tool-dslite/MSP-EXP430F5529LP.ccxml -f .pio/build/lpmsp430f5529/firmware.elf
DSLite version 8.2.0.1400
Configuring Debugger (may take a few minutes on first launch)...
Initializing Register Database...
Initializing: MSP430
Executing Startup Scripts: MSP430
Connecting...
Loading Program: .pio/build/lpmsp430f5529/firmware.elf
Preparing ...
.text: 0 of 144 at 0x4400
.text: 0 of 128 at 0xff80: 52%
Finished: 52%
Setting PC to entry point.: 52%
info: MSP430: Flash/FRAM usage is 274 bytes. RAM usage is 0 bytes.
Running...
Success