msp430f5510-nim
A toy project to write programs for the msp430f5510-stk board from Olimex in Nim. https://nim-lang.org/
Summary
| Latest Version | Unknown |
|---|---|
| License | Unknown |
| CI Status | Failing |
| Stars | 3 |
| Forks | 1 |
| Open Issues | 0 |
| Last Commit | 2018-05-09 |
| Downloads | 0 |
| Last Indexed | 2026-07-31 04:41 |
Installation
nimble install msp430f5510-nim
choosenim install msp430f5510-nim
git clone https://gitlab.com/jalexander8717/msp430f5510-nim
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| msp430f5510-nim | ✓ | ✓ | ✓ | - | - | - | - | - | - | - |
Source
| Repository | https://gitlab.com/jalexander8717/msp430f5510-nim |
|---|---|
| Homepage | https://gitlab.com/jalexander8717/msp430f5510-nim |
| Registry Source | gitlab |
README
Introduction
This code is written for the MSP430F5510-STK board from Olimex.
It was originally cloned from https://github.com/lonetech/nim-msp430 and then heavily modified to make it functional.
The board is programmed using an MSP430F5529 Launchpad with the SBW interface.
Setup
- Download the latest stable MSPGCC for MSP430 from TI and copy the folder gcc to the top level of the repository.
- Clone mspdebug from https://github.com/dlbeer/mspdebug and build.
- Copy the executable mspdebug to the toplevel of the repository
Building
make
Builds the elf file.
make listing
Generates asm.lst for your assembly browsing and debugging pleasure.
make ezFetToTILib
Uses mspdebug to update the firmware on the Launchpad ezFet emulator to be more like the MSPFET430UIF JTAG probe. mspdebug worked using the tilib only.
Solution discovered at: https://www.pabigot.com/msp430/exp430fr5969-launchpad-first-experiences/
As noted in blog post above, sudo is needed to update firmware as udev rule won't apply throughout the firmware update process.
make mspdebug
OR (for gdb as provided by TI)
make debugserver
make debug
Starts debug session and ensures that libmsp430.so (or dll if on windows) can be found by mspdebug. mspdebug uses sudo currently because I haven't written a udev rule yet. Feel free to do so yourself.
Now gdb is working. I had forgotten to add the libmsp430.so path to the dynamic loader.
Project State
The project compiles, but I'm not sure of the optimal way to write to registers. Type annotating them is very irritating and manual labor intensive in the header file. Nim is not coercing them to an appropriate type yet. Perhaps that will be fixed in the language or I will discover (aka be told how on https://forum.nim-lang.org/) a better method.