Msp430 Debbuging With Pyclewn and Vim
Writing code for microcontrollers is sometimes very annoying, since you don’t if your device is exactly doing what you want. Since (mostly) there isn’t any monitor or terminal connected to you can’t just put some debugging-output via
printf to your code.
For my msp430 I found one solution by using pyclewn, mspdebug and vim.
The installation-process described below is for a local user-installation.
- Download pyclewn
- extract the archive,
cdinto the extracted archive
vimdir=$HOME/.vim python setup.py install --force --home=$HOME
How to use
cdinto your project-directory and run:
pyclewn -e gvim -p msp430-gdb
mspdebug rf2500 gdbin a Terminal, to connect to your msp
- Now connect gdb to the mspdebugger. In your gvim window, type
:Ctarget remote :2000
- Load the symbols. In your gvim window, type
- Load the elf-file to gdb, type
- Load the keybindings for pyclew. In gvim
- Set some breakpoints: Ctrl-B
- Execute continue: C