Fox Red Labs / Builds / Tools and languages
A Lisp prompt on a LaunchPad
Type a Lisp line on the MSPM0 G5187's USB serial port and see the answer. uLisp 4.9a runs unmodified through a 160-line Arduino shim.
MediumNo wiringabout 10 minutes (estimate, not timed)
The MSPM0 G5187 this build runs on, drawn from its user guide. Drag to turn it.
What you need
On Linux or WindowsThe steps were recorded on a Mac; paths and port names in them are the Mac ones.
macOS (recorded)
- TI's tools
/Applications/ti, or~/ti- Serial port
/dev/cu.usbmodem<serial>1- Probe access
- nothing to do
Linux
- TI's tools
~/ti(also searched:/opt/ti)- Serial port
/dev/ttyACM0(by name:/dev/serial/by-id/*<serial>*-if00*)- Probe access
- one udev rule, how
Windows
- TI's tools
C:\ti(also searched:%USERPROFILE%\ti)- Serial port
COM<n>, named "XDS110 Class Application/User UART" in Device Manager- Probe access
- the XDS110 USB driver from UniFlash or CCStudio
Your probe's serial on any system: python3 tools/frl/frl.py detect. Not run on a board under Linux or Windows. Everything else that differs: the full table.
Steps
Build.TERMINAL
Put an Arm GCC on your path and build. It takes about 20 seconds.
ports/ulisp/build.shYou should see:
ports/ulisp/build-g5187/ulisp.elfexists.Flash and check the prompt.TERMINAL
Flash the image and read three seconds of the console. The check passes when
uLispappears.python3 tools/bench/run.py --board mspm0g5187 --image ports/ulisp/build-g5187/ulisp.elf --secs 3 --expect "uLisp"You should see: The tool prints a pass.
Type Lisp.TERMINAL
Open the board's serial port at 115200 baud in any serial terminal. The command shows
screen, the Mac form. The port name carries your probe serial. Press~to stop a running program.Replace <your probe serial> before you run this.
screen /dev/cu.usbmodem<your probe serial>1 115200You should see:
uLisp 4.9a, then a prompt showing the free workspace, such as2800>.(+ 1 2)answers3.
Read the serial output
Open the board's USB serial port in any terminal program at 115200 baud. The lines the program prints appear there.
What to build next
If something goes wrong
| The compiler is not found | Put its bin folder first on your PATH; any arm-none-eabi-g++ 12 or newer works. |
| The tool cannot find the board | Replug the USB cable and run it again. |
| Nothing appears | Press Enter once. |
Every fix for this board: the FAQ.
Get the code
Ran here, with steps. A Lisp prompt on the USB serial port passes 19 of 19 REPL checks; (tak 18 12 6) takes 7.5 s at 80 MHz; the image is 98.8 kB of flash.
Start it
Paste this in a terminal. It hands off to an AI assistant with this board's notes.
git clone --depth 1 --filter=blob:none https://github.com/Fox-Red-Labs/fox-red-labs.git && cd fox-red-labs
./start.sh mspm0g5187 ulisp --assistant claudegit clone --depth 1 --filter=blob:none https://github.com/Fox-Red-Labs/fox-red-labs.git && cd fox-red-labs
py start.py mspm0g5187 ulisp --assistant claudeNot Claude Code? Copy this prompt instead.
Only the code for this board
git clone --depth 1 --filter=blob:none --sparse https://github.com/Fox-Red-Labs/fox-red-labs.git
cd fox-red-labs
git sparse-checkout set ports/ulisp third-party mspm0g5187 tools mac-setupBuilds, never flashed. The same source builds: 99.0 kB of 512 kB flash and 71.6 kB of 128 kB RAM. How it ran on this board.
Start it
Paste this in a terminal. It hands off to an AI assistant with this board's notes. There are no written steps for this board yet.
git clone --depth 1 --filter=blob:none https://github.com/Fox-Red-Labs/fox-red-labs.git && cd fox-red-labs
./start.sh mspm0g3519 ulisp --assistant claudegit clone --depth 1 --filter=blob:none https://github.com/Fox-Red-Labs/fox-red-labs.git && cd fox-red-labs
py start.py mspm0g3519 ulisp --assistant claudeNot Claude Code? Copy this prompt instead.
Only the code for this board
git clone --depth 1 --filter=blob:none --sparse https://github.com/Fox-Red-Labs/fox-red-labs.git
cd fox-red-labs
git sparse-checkout set ports/ulispEverything for this build
Adds the board's own folder (its notebook, fixes and assistant notes) and the shared code this build draws on. Notes for an AI assistant: mspm0g3519/AGENTS.md.
git clone --depth 1 --filter=blob:none --sparse https://github.com/Fox-Red-Labs/fox-red-labs.git
cd fox-red-labs
git sparse-checkout set ports/ulisp mspm0g3519 third-party tools mac-setupRan here. 20 of 20 REPL checks in three RAM loads; (tak 18 12 6) takes 0.91 s and (fib 23) 0.70 s at 800 MHz with the 2,800-object workspace. How it ran on this board.
Start it
Paste this in a terminal. It hands off to an AI assistant with this board's notes. There are no written steps for this board yet.
git clone --depth 1 --filter=blob:none https://github.com/Fox-Red-Labs/fox-red-labs.git && cd fox-red-labs
./start.sh am243x ulisp --assistant claudegit clone --depth 1 --filter=blob:none https://github.com/Fox-Red-Labs/fox-red-labs.git && cd fox-red-labs
py start.py am243x ulisp --assistant claudeNot Claude Code? Copy this prompt instead.
Only the code for this board
git clone --depth 1 --filter=blob:none --sparse https://github.com/Fox-Red-Labs/fox-red-labs.git
cd fox-red-labs
git sparse-checkout set am243x/bench/ulisp ports/ulispEverything for this build
Adds the board's own folder (its notebook, fixes and assistant notes) and the shared code this build draws on. Notes for an AI assistant: am243x/AGENTS.md.
git clone --depth 1 --filter=blob:none --sparse https://github.com/Fox-Red-Labs/fox-red-labs.git
cd fox-red-labs
git sparse-checkout set ports/ulisp am243x third-party tools mac-setupRan here. 19 of 19 REPL checks in three runs and the stack-overflow guard fires; (tak 18 12 6) takes 2.5 to 2.6 s and (fib 23) 1.7 s at 160 MHz with the 2,800-object workspace (two flash wait states at that clock); 87.7 kB of flash, 23.2 kB of static RAM. How it ran on this board.
Start it
Paste this in a terminal. It hands off to an AI assistant with this board's notes. There are no written steps for this board yet.
git clone --depth 1 --filter=blob:none https://github.com/Fox-Red-Labs/fox-red-labs.git && cd fox-red-labs
./start.sh mspm33c321a ulisp --assistant claudegit clone --depth 1 --filter=blob:none https://github.com/Fox-Red-Labs/fox-red-labs.git && cd fox-red-labs
py start.py mspm33c321a ulisp --assistant claudeNot Claude Code? Copy this prompt instead.
Only the code for this board
git clone --depth 1 --filter=blob:none --sparse https://github.com/Fox-Red-Labs/fox-red-labs.git
cd fox-red-labs
git sparse-checkout set mspm33c321a/bench/ulisp ports/lua/logs ports/ulispEverything for this build
Adds the board's own folder (its notebook, fixes and assistant notes) and the shared code this build draws on. Notes for an AI assistant: mspm33c321a/AGENTS.md.
git clone --depth 1 --filter=blob:none --sparse https://github.com/Fox-Red-Labs/fox-red-labs.git
cd fox-red-labs
git sparse-checkout set ports/lua/logs ports/ulisp mspm33c321a third-party tools mac-setupRan here. 18 of 19 REPL checks pass in each of three runs from the board's serial port; the failing check is digitalread of the LED pin after digitalwrite. (tak 18 12 6) takes 1.9 s and (fib 23) 1.3 s at 160 MHz with the 2,800-object workspace; 108.2 kB of flash and code, 114.3 kB of RAM including the FreeRTOS heap.
Start it
Paste this in a terminal. It hands off to an AI assistant with this board's notes. There are no written steps for this board yet.
git clone --depth 1 --filter=blob:none https://github.com/Fox-Red-Labs/fox-red-labs.git && cd fox-red-labs
./start.sh cc35x1 ulisp --assistant claudegit clone --depth 1 --filter=blob:none https://github.com/Fox-Red-Labs/fox-red-labs.git && cd fox-red-labs
py start.py cc35x1 ulisp --assistant claudeNot Claude Code? Copy this prompt instead.
Only the code for this board
git clone --depth 1 --filter=blob:none --sparse https://github.com/Fox-Red-Labs/fox-red-labs.git
cd fox-red-labs
git sparse-checkout set cc35x1/bench/ulisp ports/ulispEverything for this build
Adds the board's own folder (its notebook, fixes and assistant notes) and the shared code this build draws on. Notes for an AI assistant: cc35x1/AGENTS.md.
git clone --depth 1 --filter=blob:none --sparse https://github.com/Fox-Red-Labs/fox-red-labs.git
cd fox-red-labs
git sparse-checkout set ports/ulisp cc35x1 third-party tools mac-setupBuilds, never flashed. The same source builds: 98.8 kB of 128 kB flash and 23.1 kB of 32 kB RAM. How it ran on this board.
Start it
Paste this in a terminal. It hands off to an AI assistant with this board's notes. There are no written steps for this board yet.
git clone --depth 1 --filter=blob:none https://github.com/Fox-Red-Labs/fox-red-labs.git && cd fox-red-labs
./start.sh mspm0g3507 ulisp --assistant claudegit clone --depth 1 --filter=blob:none https://github.com/Fox-Red-Labs/fox-red-labs.git && cd fox-red-labs
py start.py mspm0g3507 ulisp --assistant claudeNot Claude Code? Copy this prompt instead.
Only the code for this board
git clone --depth 1 --filter=blob:none --sparse https://github.com/Fox-Red-Labs/fox-red-labs.git
cd fox-red-labs
git sparse-checkout set ports/ulispEverything for this build
Adds the board's own folder (its notebook, fixes and assistant notes) and the shared code this build draws on. Notes for an AI assistant: mspm0g3507/AGENTS.md.
git clone --depth 1 --filter=blob:none --sparse https://github.com/Fox-Red-Labs/fox-red-labs.git
cd fox-red-labs
git sparse-checkout set ports/ulisp mspm0g3507 third-party tools mac-setupRan here. The interpreter runs from the board's serial port: 19 of 19 REPL checks pass, the stack-overflow guard fires, (tak 18 12 6) takes 10.8 s and (fib 23) 7.5 s at 48 MHz with the same 2,800-object workspace as the MSPM0 builds; 98.6 kB of flash, 24.6 kB of static RAM. How it ran on this board.
Start it
Paste this in a terminal. It hands off to an AI assistant with this board's notes. There are no written steps for this board yet.
git clone --depth 1 --filter=blob:none https://github.com/Fox-Red-Labs/fox-red-labs.git && cd fox-red-labs
./start.sh cc2340r5 ulisp --assistant claudegit clone --depth 1 --filter=blob:none https://github.com/Fox-Red-Labs/fox-red-labs.git && cd fox-red-labs
py start.py cc2340r5 ulisp --assistant claudeNot Claude Code? Copy this prompt instead.
Only the code for this board
git clone --depth 1 --filter=blob:none --sparse https://github.com/Fox-Red-Labs/fox-red-labs.git
cd fox-red-labs
git sparse-checkout set cc2340r5/bench/ulisp ports/ulispEverything for this build
Adds the board's own folder (its notebook, fixes and assistant notes) and the shared code this build draws on. Notes for an AI assistant: cc2340r5/AGENTS.md.
git clone --depth 1 --filter=blob:none --sparse https://github.com/Fox-Red-Labs/fox-red-labs.git
cd fox-red-labs
git sparse-checkout set ports/ulisp cc2340r5 third-party tools mac-setupRan here. 19 of 19 REPL checks in three runs from the board's serial port after the sketch's ints were widened to 32 bits for the 16-bit C28x; (tak 18 12 6) takes 8.1 s and (fib 23) 5.3 s at 120 MHz with a 2,000-object workspace; 141.9 kB of flash, 28.7 kB of RAM, written as a raw binary. How it ran on this board.
Start it
Paste this in a terminal. It hands off to an AI assistant with this board's notes. There are no written steps for this board yet.
git clone --depth 1 --filter=blob:none https://github.com/Fox-Red-Labs/fox-red-labs.git && cd fox-red-labs
./start.sh f2800137 ulisp --assistant claudegit clone --depth 1 --filter=blob:none https://github.com/Fox-Red-Labs/fox-red-labs.git && cd fox-red-labs
py start.py f2800137 ulisp --assistant claudeNot Claude Code? Copy this prompt instead.
Only the code for this board
git clone --depth 1 --filter=blob:none --sparse https://github.com/Fox-Red-Labs/fox-red-labs.git
cd fox-red-labs
git sparse-checkout set c2000-launchpad/bench/ulisp ports/ulispEverything for this build
Adds the board's own folder (its notebook, fixes and assistant notes) and the shared code this build draws on. Notes for an AI assistant: c2000-launchpad/AGENTS.md.
git clone --depth 1 --filter=blob:none --sparse https://github.com/Fox-Red-Labs/fox-red-labs.git
cd fox-red-labs
git sparse-checkout set ports/ulisp c2000-launchpad third-party tools mac-setupRan here. 19 of 19 REPL checks three times from the board's serial port; (tak 18 12 6) takes 3.1 s and (fib 23) 2.2 s at 96 MHz with the same 2,800-object workspace, 3.4 times the CC2340R5's speed for twice the clock; 96.7 kB of flash, 24.8 kB of static RAM. How it ran on this board.
Start it
Paste this in a terminal. It hands off to an AI assistant with this board's notes. There are no written steps for this board yet.
git clone --depth 1 --filter=blob:none https://github.com/Fox-Red-Labs/fox-red-labs.git && cd fox-red-labs
./start.sh cc2755p10 ulisp --assistant claudegit clone --depth 1 --filter=blob:none https://github.com/Fox-Red-Labs/fox-red-labs.git && cd fox-red-labs
py start.py cc2755p10 ulisp --assistant claudeNot Claude Code? Copy this prompt instead.
Only the code for this board
git clone --depth 1 --filter=blob:none --sparse https://github.com/Fox-Red-Labs/fox-red-labs.git
cd fox-red-labs
git sparse-checkout set cc2755p10/bench/ulisp ports/ulispEverything for this build
Adds the board's own folder (its notebook, fixes and assistant notes) and the shared code this build draws on. Notes for an AI assistant: cc2755p10/AGENTS.md.
git clone --depth 1 --filter=blob:none --sparse https://github.com/Fox-Red-Labs/fox-red-labs.git
cd fox-red-labs
git sparse-checkout set ports/ulisp cc2755p10 third-party tools mac-setupOr take the whole repository
git clone https://github.com/Fox-Red-Labs/fox-red-labs.gitReports from others, and the report forms
Clone the repository and open the board's folder below. AGENTS.md is a plain text file of notes for AI coding assistants, and llms.txt at the root indexes the site for one.
git clone https://github.com/Fox-Red-Labs/fox-red-labs.git
- LP-MSPM0G3507: folder
mspm0g3507/.- README: the board's lab notebook (what was run, in order)
- Notes for an AI coding assistant working in this repository: notes for an AI assistant; copy it into your own project if you use one
- FAQ: errors and fixes
The other 3 board folders
- LP-EM-CC2340R5: folder
cc2340r5/.- README: the board's lab notebook (what was run, in order)
- Notes for an AI coding assistant working in this repository: notes for an AI assistant; copy it into your own project if you use one
- FAQ: errors and fixes
- LAUNCHXL-F2800137: folder
c2000-launchpad/.- README: the board's lab notebook (what was run, in order)
- Notes for an AI coding assistant working in this repository: notes for an AI assistant; copy it into your own project if you use one
- FAQ: errors and fixes
- LP-MSPM0G5187: folder
mspm0g5187/.- README: the board's lab notebook (what was run, in order)
- Notes for an AI coding assistant working in this repository: notes for an AI assistant; copy it into your own project if you use one
- FAQ: errors and fixes
- LP-EM-CC2340R5: folder
Code is BSD-3-Clause, writing is CC BY 4.0; third-party folders keep their own licenses.
Built it? Tell us
Built this, or got stuck? Report it on GitHub with a few short answers. Your report shows here in your words, marked as yours. A failure that repeats on the bench gets its fix here.
Evidence and limitsuLisp runs on the MSPM0 G5187 and passes 19 of 19 prompt checks; the G3507 and G3519 images build. Results, sources, timing and limits.
Expected result: A Lisp prompt on the serial port that evaluates what you type.
What this shows
- An unmodified Lisp interpreter runs on a Cortex-M0+ with 32 kB of RAM, with 2,800 objects of workspace.
(tak 18 12 6)takes 7.5 s at 80 MHz; the Arduino Zero (48 MHz) takes 11.4 s and the Raspberry Pi Pico (200 MHz) 2.6 s, from uLisp's published tables.
What this does not establish, and limits
What this does not establish
- Analog read, sound, SPI and I2C are stubs. The LED path was driven by hand, and the repository's LED check read the pin toggling but printed FAIL for the run because it reads at the instant of reset.
Limits to keep in mind
- These steps ran on one board. The MSPM0 G3507 and MSPM0 G3519 images build and were not flashed.
- The workspace is 2,800 objects on the 32 kB parts, 9,000 on the G3519.
Sources
Versions, sizes and timing
| tak 18 12 6 | 7.5 s at 80 MHz | the data (CSV) |
|---|---|---|
| fib 23 | 5.2 s | the data (CSV) |
| Full garbage collection | 1.07 ms | README notes |
Evidence
- 19 REPL checks and 5 benchmark runs pass on the board, over serial.
- A runaway recursion prints
Error: stack overflowand the next line works. - The image is 98.8 kB of flash (77 percent of 128 kB) and 23.1 kB of RAM, with 8.9 kB left for the stack. README notes
Other boards
- MSPM33C321A, AM13E230Should work Works on the LP-MSPM0G5187
- CC35X1, CC2755P10, CC1354P10Should work Works on the LP-EM-CC2340R5
- MSPM0G3507, MSPM0G3519Builds; not flashed
- CC2340R5, AM2434ran another way
- MSPM0L1306Not for this chip can't run it
- F2800137, TDA4VM, AM62L32Not for this chip no software for it
- MSPM0C1104Not for this chip not enough flash
What the status words mean
Works ran here and did what it shouldCould work some of it ran; real porting effort is left; hover for whatNot for this chip the chip or its vendor software cannot; hover for why
Result grid
Details
RAM would fit with a 24-object workspaceDetails
19 of 19 REPL checks pass, the stack-overflow guard fires, (tak 18 12 6) takes 10.8 s and (fib 23) 7.5 s at 48 MHz with the same 2,800-object workspace as the MSPM0 builds; 98.6 kB of flash, 24.6 kB of static RAM. A plain register-variable read of the stack pointer never fired the guard under TI Arm Clang; an explicit move fixed itDetails
(tak 18 12 6) takes 8.1 s and (fib 23) 5.3 s at 120 MHz with a 2,000-object workspace; 141.9 kB of flash, 28.7 kB of RAM, written as a raw binary. Faster than the CC2340R5 on the clock, about 2.5 times the clocks per stepWorks ran here and did what it shouldShould work it builds; only naming, packaging or build glue is in the way; hover for whichCould work some of it ran; real porting effort is left; hover for whatNot for this chip the chip or its vendor software cannot; hover for why
Source files
- ulisp notes (MSPM0 G3507, CC2340R5 and LAUNCHXL-F2800137)
Code brought from elsewhere
This project uses code that was written for other chips or tools. Each links to how to get it running.
- uLisp Lisp interpreter on the LP-MSPM0G5187, LP-MSPM0G3507, LP-MSPM0G3519, LP-EM-CC2340R5, LP-EM-CC2755P10, LP-EM-CC35X1, LP-MSPM33C321A, LP-AM243 and LAUNCHXL-F2800137 Works uLisp, an Arduino sketch, gives a Lisp prompt on the serial port of the MSPM0 G5187, CC2340R5 and CC2755P10: 19 of 19 REPL (type-and-run loop) checks pass on each.
