Go to file
Keith Packard e012af1778 MSP430Core: Support "semihosting"
Provide exit, putchar, a message writing function and a register dump
call. These all work by detecting writes to the status register which
are invalid.

Signed-off-by: Keith Packard <keithp@keithp.com>
2023-09-07 20:20:00 -07:00
.github/workflows CI: Corrected the Github action 2022-05-13 16:20:48 +02:00
firmware Add pre-built firmwares for tests 2022-05-17 10:43:14 +02:00
images Emulation support for the TI CC430 sub-GHz SoC 2015-03-12 18:57:11 +01:00
lib added JSON read for EmuLink 2012-10-11 18:36:28 +02:00
scripts Reenabled autostart of emulation 2013-10-20 17:51:57 +02:00
se/sics MSP430Core: Support "semihosting" 2023-09-07 20:20:00 -07:00
tests Merge pull request #64 from pjonsson/gcc9-support 2022-05-25 13:25:09 +02:00
.gitignore Fix .gitignore jar files rule 2017-07-06 21:16:53 +02:00
CHANGE_LOG.txt added more ot changelog 2009-04-30 15:30:28 +00:00
README.md Updated README to use 'ant' instead of 'make' 2022-05-18 16:32:29 +02:00
build.xml Added targets for missing node types + target to run tests 2022-05-17 10:43:14 +02:00
license.txt added license text 2007-11-26 15:25:22 +00:00

README.md

MSPSim version 0.9x

MSPSim is a Java-based instruction level emulator of the MSP430 series microprocessor and emulation of some sensor networking platforms. Supports loading of IHEX and ELF firmware files, and has some tools for monitoring stack, setting breakpoints, and profiling.

System requirements

You need a recent Java to run MSPSim. Java 11 or newer is recommended. The current version of MSPSim also requires ant for compiling.

Building MSPSim

You will build MSPSim by typing

ant

Running examples

Run the default example on the ESB node emulator by typing:

ant runesb

(here you can pass the PIR with the mouse and click on the user button to get reaction from the example application).

Run the default example on the Sky node emulator by typing:

ant runsky

(this is a leds-blinker only and does not react to any mouse movements or button clicks).

Main Features

  • Instruction level emulation of MSP430 microprocessor
  • Supports loading of ELF and IHEX files
  • Easy to add external components that emulates external HW
  • Supports monitoring of registers, adding breakpoints, etc.
  • Built-in profiling of executed code
  • Statistics for various components modes (on/off, LPM modes, etc).
  • Emulates some external hardware such as TR1001 and CC2420.
  • Command Line Interface, CLI, for setting up breakpoints and output to files or windows.
  • GDB remote debugging support (initial)
  • What is emulated of the MSP430
  • CPU (instruction level simulation)
  • Timer A/B subsystem
  • USARTs
  • Digital I/O
  • Multiplication unit
  • Basic A/D subsystem (not complete)
  • Watchdog

Limitations of the emulation (some of them) on version 0.9x

  • Currently, the emulator runs as if it can use all memory as RAM (e.g. flash writes, etc not supported)
  • No DMA implementation
  • Timer system not 100% emulated