On 6/21/07, [email protected] <[email protected]> wrote:
Neil Wyper wrote: > For testing embedded MSP430 code, I often compile natively on Linux and > link in Python, to allow some really useful testing. GCC isn't a > requirement for this, but it is more convenient than other solutions. > Custom python modules emulate the hardware that the code will run on, > and provide simple GUIs for interacting with the test software in ways > that wouldn't be possible on the real hardware. I have had similar experiences. I try to use GCC for everything I do now. I especially like your method of using Python to emulate the target platforms, and wonder if you might say a few words about how to get started (to link Python modules with code intended for MSP430).
I had a few requests for details on this, so I put a tutorial online at http://wyper.ca/embeddingpython. The tutorial is a bit long and a bit rough around the edges, so any feedback is welcome. The examples on that page should run on any Linux PC with Python 2.4 installed. Different versions of python will need some changes to the makefiles, but they should be obvious. Sorry this is a bit off-topic for the list, but using MSPGCC makes working with Python very easy. I expect these examples would be much more complicated if I had to use a different compiler for the MSP430. Neil
