Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to launch GDB while debug on the MSP430F5529 #23

Open
alan-student opened this issue Oct 31, 2021 · 0 comments
Open

Failed to launch GDB while debug on the MSP430F5529 #23

alan-student opened this issue Oct 31, 2021 · 0 comments

Comments

@alan-student
Copy link

Hey guys,I am trying to debug on the MSP430F5529.I can built and upload the project correctly on the PIO.However,it trouble me a lot while I try to debug.When I click the "DEBUG"buttom,it seems to begin to build in the debug mode and later,it tells me "SUCCESS".just like this.
Processing lpmsp430f5529 (platform: timsp430; board: lpmsp430f5529; framework: arduino) ----------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via -v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/timsp430/lpmsp430f5529.html
PLATFORM: TI MSP430 (2.3.0) > TI LaunchPad MSP-EXP430F5529LP
HARDWARE: MSP430F5529 25MHz, 8KB RAM, 47KB Flash
DEBUG: Current (mspdebug) On-board (mspdebug)
PACKAGES:

  • framework-energiamsp430 1.10810.210219 (1.8.10)
  • toolchain-timsp430 1.40603.210219 (4.6.3)
    Converting sketch_oct27a.ino
    LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
    LDF Modes: Finder ~ chain, Compatibility ~ soft
    Found 18 compatible libraries
    Scanning dependencies...
    No dependencies
    Building in debug mode
    Compiling .pio\build\lpmsp430f5529\src\sketch_oct27a.ino.cpp.o
    C:/Users/sakihata/Documents/PlatformIO/Projects/211030-001141-lpmsp430f5529/src/sketch_oct27a.ino: In function 'void setup()':
    C:/Users/sakihata/Documents/PlatformIO/Projects/211030-001141-lpmsp430f5529/src/sketch_oct27a.ino:28:35: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    C:/Users/sakihata/Documents/PlatformIO/Projects/211030-001141-lpmsp430f5529/src/sketch_oct27a.ino:30:33: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    C:/Users/sakihata/Documents/PlatformIO/Projects/211030-001141-lpmsp430f5529/src/sketch_oct27a.ino:35:35: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    C:/Users/sakihata/Documents/PlatformIO/Projects/211030-001141-lpmsp430f5529/src/sketch_oct27a.ino:37:33: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    C:/Users/sakihata/Documents/PlatformIO/Projects/211030-001141-lpmsp430f5529/src/sketch_oct27a.ino:47:38: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    C:/Users/sakihata/Documents/PlatformIO/Projects/211030-001141-lpmsp430f5529/src/sketch_oct27a.ino:50:24: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    Linking .pio\build\lpmsp430f5529\firmware.elf
    Building .pio\build\lpmsp430f5529\firmware.hex
    Checking size .pio\build\lpmsp430f5529\firmware.elf
    Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
    RAM: [ ] 2.1% (used 170 bytes from 8192 bytes)
    Flash: [== ] 16.7% (used 8042 bytes from 48128 bytes)
    ================================================== [SUCCESS] Took 21.88 seconds ================================================== However,nothing happened and I can't read the debug data from the MCU.Later,an error happened.It tells me "Failed to launch GDB",more detailed imformation is below.Processing lpmsp430f5529 (platform: timsp430; board: lpmsp430f5529; framework: arduino)

Verbose mode can be enabled via -v, --verbose option
CONFIGURATION: https://docs.platformio.org/page/boards/timsp430/lpmsp430f5529.html
PLATFORM: TI MSP430 (2.3.0) > TI LaunchPad MSP-EXP430F5529LP
HARDWARE: MSP430F5529 25MHz, 8KB RAM, 47KB Flash
DEBUG: Current (mspdebug) On-board (mspdebug)
PACKAGES:

  • framework-energiamsp430 1.10810.210219 (1.8.10)
  • toolchain-timsp430 1.40603.210219 (4.6.3)
    Converting sketch_oct27a.ino
    LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
    LDF Modes: Finder ~ chain, Compatibility ~ soft
    Found 18 compatible libraries
    Scanning dependencies...
    No dependencies
    Building in debug mode
    Compiling .pio\build\lpmsp430f5529\src\sketch_oct27a.ino.cpp.o
    C:/Users/sakihata/Documents/PlatformIO/Projects/211030-001141-lpmsp430f5529/src/sketch_oct27a.ino: In function 'void setup()':
    C:/Users/sakihata/Documents/PlatformIO/Projects/211030-001141-lpmsp430f5529/src/sketch_oct27a.ino:28:35: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    C:/Users/sakihata/Documents/PlatformIO/Projects/211030-001141-lpmsp430f5529/src/sketch_oct27a.ino:30:33: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    C:/Users/sakihata/Documents/PlatformIO/Projects/211030-001141-lpmsp430f5529/src/sketch_oct27a.ino:35:35: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    C:/Users/sakihata/Documents/PlatformIO/Projects/211030-001141-lpmsp430f5529/src/sketch_oct27a.ino:37:33: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    C:/Users/sakihata/Documents/PlatformIO/Projects/211030-001141-lpmsp430f5529/src/sketch_oct27a.ino:47:38: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    C:/Users/sakihata/Documents/PlatformIO/Projects/211030-001141-lpmsp430f5529/src/sketch_oct27a.ino:50:24: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    Linking .pio\build\lpmsp430f5529\firmware.elf
    Building .pio\build\lpmsp430f5529\firmware.hex
    Checking size .pio\build\lpmsp430f5529\firmware.elf
    Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
    RAM: [ ] 2.1% (used 170 bytes from 8192 bytes)
    Flash: [== ] 16.7% (used 8042 bytes from 48128 bytes)
    ========================= [SUCCESS] Took 12.72 seconds =========================
    MSPDebug version 0.24 - debugging tool for MSP430 MCUs
    Copyright (C) 2009-2016 Daniel Beer [email protected]
    This is free software; see the source for copying conditions. There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    ----------------- NOTE ------------------
    Modified version of mspdebug for Energia
    Do not use standalone

Chip info database from MSP430.dll v3.3.1.4 Copyright (C) 2013 TI, Inc.
Using new (SLAC460L+) API
MSP430_GetNumberOfUsbIfs
MSP430_GetNameOfUsbIf
Found FET: COM7
MSP430_Initialize: COM7
FET firmware update is required.
Re-run with --allow-fw-update to perform a firmware update.
undefinedtilib: device initialization failed
Reading symbols from C:\Users\sakihata\Documents\PlatformIO\Projects\211030-001141-lpmsp430f5529.pio\build\lpmsp430f5529\firmware.elf...
done.
PlatformIO Unified Debugger -> http://bit.ly/pio-debug
PlatformIO: debug_tool = mspdebug
PlatformIO: Initializing remote target...
.pioinit:11: Error in sourced command file:
:2000: �������ӷ���һ��ʱ���û����ȷ�𸴻����ӵ�����û�з�Ӧ�����ӳ���ʧ�ܡ�
.
`
I have no idea what to do.Can anyone tell me?
By the way,my system s Windows10
the version of my PIO Core is 5.1.1
the version of my PIO Home is 3.3.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant