A Command Line Interface (CLI) for MSP430G2 LaunchPad
- PC: Kubuntu-18.04
- Compiler: msp430-elf-gcc
- Flasher: mspdebug
- IDE: None
- Build: Makefile
- Serial Console: screen
To compile and load program into the board, you need to install some requisite tools such as: msp430-elf-gcc, mspdebug and make. After above tools have already installed completely, you perform the guide as follows:
-
Compile and upload the program on MCU
make all
-
Debug (if needed)
-
Start gdb server with port 2000
sudo mspdebug rf2500
-
Another windows, start gdb client
make debug
-
Finally, connect to gdb server and debug.
(gdb) target remote localhost:2000 (gdb) load build/cli_main.elf (gdb) continue
-
-
Clean the project
make clean
-
Using the screen for serial interface
sudo screen /dev/ttyACM0 -b 9600
See CHANGELOG.md
Feel free to create pull requests and I will gladly accept them! 👏 👏
Good luck, and happy hacking?! 😋