Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

Repository files navigation

Embedded lab

for LP-MSPM0L2228 LaunchPad

Requirements

  • 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.

Run (Linux / WSL)

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 exit

For another serial port: make serial PORT=/dev/ttyACM1.

macOS

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-ocd

Use --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 115200

Replace XXXX with your port's suffix. Exit screen with Ctrl-A, then \, then y. Skip make usb; make serial uses Linux's stty syntax.

Windows / WSL

In Administrator PowerShell:

wsl --install -d Ubuntu
winget install --interactive --exact dorssel.usbipd-win

Open Ubuntu and finish setup. In Administrator PowerShell, find XDS110 with usbipd list, then replace BUSID below:

usbipd bind --busid BUSID
usbipd attach --wsl --busid BUSID

Follow the requirements and run commands in Ubuntu. Repeat attach after reconnecting.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages