Welcome to MSP430DLL!
MSP430DLL is a convenient Python wrapper for TI MSP430 (tool) developers.
This is still work in progress and reasonable documentation has still to be written...
Note: If you are using out-of-the-box DLLs (32-bit), you also need a 32-bit Python version (PyPy also works fine)!
$git clone https://github.com/christoph2/msp430dll.git msp430dll
$cd msp430dll
$python setup.py develop
Since this project is currently under development, be sure to use develop
not install
-- for a discussion see here.
This package contains a script called msp-info
, which automatically gets installed by setup.
$ msp430-info --help
Usage: msp430-info [options] path-to-msp430.dll
Display informations about connected MSP430 controllers.
Options:
--version show program's version number and exit
-h, --help show this help message and exit
-n DLLNAME, --dll-name=DLLNAME
Name of DLL
Argument path-to-msp430.dll denotes the location where to find msp430.dll (Defaults to current working directory). If your DLL has a divergent name, say msp430v3.dll or msp430mspgcc.dll, use -n option (.dll extension can be omitted).
This little program may or may not be useful, but but it exists mainly to demonstrate basic API usage. Anyways, you may use it as a starting point for "real" command line utilities.
If I run msp430-info
against my eZ430-2013
the outcome is as follows:
Controller : MSP430F20x3
Architekture : CPU_ARCH_ORIGINALMemory
------------------------------------------------------------
RAM : from 0x0200 to 0x027f ( 128 bytes)
RAM2 : [Not implemented]
FLASH : from 0xf800 to 0xffff ( 2048 bytes)
INFO : from 0x1000 to 0x10ff ( 256 bytes)
BSL : [Not implemented]
LCD : [Not implemented]
FRAM : noVoltages
------------------------------------------------------------
VCC : 3.50 V
ext. VCC : NO_EX_POWER
Min. VCC : 1.80 V
Max. VCC : 3.60 V
Test VCC : yesDebugging
------------------------------------------------------------
Brk.-Points. : 2
Combinations : 2
Cycle-ctr. : no
Sequencer : no
State storage: noRegisters
------------------------------------------------------------
PC = 0xf80c
SP = 0x027e
CG1 = 0x0000
CG2 = 0x0000
R4 = 0x1ebf
R5 = 0x1267
R6 = 0xfffb
R7 = 0xffff
R8 = 0xfcf7
R9 = 0x3fb7
R10 = 0xf800
R11 = 0x77ff
R12 = 0xf800
R13 = 0xf800
R14 = 0x0002
R15 = 0x0020