for LP-MSPM0L2228 LaunchPad
- ARM GCC (
arm-none-eabi-gcc) - GNU Make and Git
- OpenOCD latest development build with MSPM0 support (stable 0.12.0 lacks it)
- Linux, macOS, or Ubuntu under WSL with usbipd-win
Optional: if you use Nix and run nix-shell to get
the build tools above. make setup downloads the TI MSPM0 SDK.
Connect the LaunchPad's XDS110 USB port, then:
make setup # once
make usb # after each reboot; requires sudo and udev
make flash # src/blink.c
make flash APP=rng # src/rng.c
make serial # 115200 baud; Ctrl-C to exitFor another serial port: make serial PORT=/dev/ttyACM1.
Note: this is untested cause i don't have a mac so good luck!
Install Homebrew, then:
brew install git
brew install --cask gcc-arm-embedded
brew install --HEAD open-ocdUse --HEAD for MSPM0 support, since that will install the dev version that has the required MSPM0 config file
Connect the LaunchPad's XDS110 USB port, then:
make setup # once
make flash # src/blink.c
make flash APP=rng # src/rng.c
ls /dev/cu.usbmodem*
screen /dev/cu.usbmodemXXXX 115200Replace XXXX with your port's suffix. Exit screen with Ctrl-A, then \, then
y. Skip make usb; make serial uses Linux's stty syntax.
In Administrator PowerShell:
wsl --install -d Ubuntu
winget install --interactive --exact dorssel.usbipd-winOpen Ubuntu and finish setup. In Administrator PowerShell, find XDS110 with
usbipd list, then replace BUSID below:
usbipd bind --busid BUSID
usbipd attach --wsl --busid BUSIDFollow the requirements and run commands in Ubuntu. Repeat attach after reconnecting.