Skip to content

A Command Line Interface (CLI) for MSP430G2 LaunchPad

License

Notifications You must be signed in to change notification settings

nhivp/msp430-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

msp430-cli

A Command Line Interface (CLI) for MSP430G2 LaunchPad

Environment

  • PC: Kubuntu-18.04
  • Compiler: msp430-elf-gcc
  • Flasher: mspdebug
  • IDE: None
  • Build: Makefile
  • Serial Console: screen

How to compile and upload the program

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

Screenshot

MSP430-CLI

Changelog

See CHANGELOG.md

Useful links

Contributing

Feel free to create pull requests and I will gladly accept them! 👏 👏

Good luck, and happy hacking?! 😋