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

Unable to debug MSP432P401R using onboard debugging tool #4

Open
CHTUZKI opened this issue Jul 14, 2023 · 3 comments
Open

Unable to debug MSP432P401R using onboard debugging tool #4

CHTUZKI opened this issue Jul 14, 2023 · 3 comments

Comments

@CHTUZKI
Copy link

CHTUZKI commented Jul 14, 2023

HI.

This is my platformio.ini file:

[env:LaunchPad_MSP-EXP432P401R]
platform = timsp432
board = lpmsp432p401r
framework = cmsis
build_flags = 
    -I .
    -I src\eeprom
    -I src\grbl
    -I src\keypad
    -I src\motors
    -I src\odometer
    -I src\plasma
    -I src\spindle
    -I src\spindle\vfd
    -I src\rotaryPlugin
    -I src
  
build_type = debug
; debug_port = COM9

When I click the debug button, nothing happens and I feel like the debugging tool is not running.

@CHTUZKI
Copy link
Author

CHTUZKI commented Jul 14, 2023

The following is the message printed in the terminal. After clicking the debug button, PlatformIO only compiled the program once, without uploading the program or starting the debug.

Linking .pio\build\LaunchPad_MSP-EXP432P401R\firmware.elf
Building .pio\build\LaunchPad_MSP-EXP432P401R\firmware.hex
Checking size .pio\build\LaunchPad_MSP-EXP432P401R\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [===       ]  27.2% (used 17852 bytes from 65536 bytes)
Flash: [======    ]  59.9% (used 157069 bytes from 262144 bytes)
================================================================= [SUCCESS] Took 4.19 seconds =================================================================

@zceemja
Copy link
Owner

zceemja commented Jul 14, 2023

Try development version by changing platform in platformio.ini like so:

platform = https://github.com/zceemja/platform-timsp432.git

@CHTUZKI
Copy link
Author

CHTUZKI commented Jul 14, 2023

I have modified my configuration file as follows:
[env:LaunchPad_MSP-EXP432P401R]

platform = https://github.com/zceemja/platform-timsp432.git
board = lpmsp432p401r
framework = cmsis
build_flags = -I .

After the modification, I compiled the code and got an error. I don't know what caused it, as the compilation was successful before the modification.

Linking .pio\build\LaunchPad_MSP-EXP432P401R\firmware.elf
c:/users/admin/.platformio/packages/[email protected]/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/bin/ld.exe: .pio\build\LaunchPad_MSP-EXP432P401R\firmware.elf section `.rodata' will not fit in region `MAIN_FLASH'
c:/users/admin/.platformio/packages/[email protected]/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/bin/ld.exe: region `MAIN_FLASH' overflowed by 27584 bytes
collect2.exe: error: ld returned 1 exit status
*** [.pio\build\LaunchPad_MSP-EXP432P401R\firmware.elf] Error 1

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

2 participants