After battling with getting the parallel port FET/jtag interface (on Linux) to load code reliably for several weeks, I have come accross a remedy that improves things a lot, for me.

I noticed that the blocksize is restricted to less than 256 bytes because that is all the RAM available on some 430s. Since I'm using a msp430149 with 2048 bytes of RAM, it can support a larger block, which seems to greatly improve chances for success on my particular workstation. I made the following change to programFlash() in /jtag/msp430/funclets.c blocksize = min(count-done, 2048-sizeof(funclet_progFlash)); //TODO: get device memory size

Be carful when rebuilding; the dependencies in the make file are a weak. I found it necessary to delete jtag/python/build/lib.linux-i686-2.1/_parjtag.so prior to doing the make. Otherwise it builds the object but does not re-link _parjtag.so.

Walt Spicker


Reply via email to