https://github.com/nilsherzig/msp430_linux
https://github.com/nilsherzig/msp430_linux
Last synced: 20 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/nilsherzig/msp430_linux
- Owner: nilsherzig
- Created: 2023-05-19T20:52:46.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-19T22:56:32.000Z (about 3 years ago)
- Last Synced: 2025-12-04T08:57:14.821Z (6 months ago)
- Language: C
- Size: 2.58 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
I've used Fedora, but other distros have the same packages (at least ubuntu, nix and arch have them).
You can find a preconfigured fedora (38) docker container in this repo. See step #7.
## important
To establish a connection with your msp430 serial connection, it is necessary to cross the rx and tx jumpers.

## setup
### manual install
1) clone this repo
```bash
git clone https://github.com/nilsherzig/msp430_linux
```
2) Install needed packages (or find the right ones for your distro)
```bash
# install base dev tools and libs
sudo dnf groupinstall -y "Development Tools" "Development Libraries"
# msp430 tools
sudo dnf copr enable nielsenb/msp430-development-tools -y
sudo dnf install -y msp430-elf-gcc msp430-elf-binutils msp430-elf-gdb mspds msp430flasher msp430-gcc-support-files dos2unix libusb readline mspdebug
```
3) compile
```bash
make
```
4) flash to msp430
```bash
make run
```
5) optional - generate clangd `compile-commands.json` for lsp autocompletion in your editor
```bash
bear -- make
```
### using docker
1) use docker to compile and flash the your code
```bash
docker build . -t mspflash
docker run --privileged -v $(pwd):/msp430_linux mspflash # or configure udev rules instead of privleged
```
## connect to your msp serial console
1) connect to `/dev/ttyACM1` via screen with baudrate 9600
```bash
TERM=xterm sudo screen /dev/ttyACM1 9600
```