Template and instructions to debug msp430 using the gcc compiler and Clion
- CCSTUDIO to project generation. CSStudio generates a makefile that Clion can use to generate a project.
- Install Mitto Systems GCC macOS/linux/windows installer incl. support files.
- A launchpad with debugger. In this example was used the MSP-EXP430FR2433 launchpad.
- MSP430Flasher.
Tested with macOS (M1).
- Create a debug CSStudio project.
- Configure compiler output files on project properties.
- Run one (at least) the debug on CCStudio to generate makefile.
- Open the project folder with Clion.
- Import the makefile with Clion (file inside debug folder). I recommend to improve the make file to include options to flach the mcu (take a look to the code of this repo).
- Configure the toolchain on Clion.
- Configure Embedded GDB Server from Clion setting.
- Done. Ready to debug.
- MSP430 GCC Toolchain User’s Guide
- MSP Flasher User's Guide.
- GitHub repository from drvlas. It's contains useful script to works and configure the debugger.
- This guide is based on, and created, thanks to the drvlas's Blog: