Chris Liechti schreef:
Stephan Bosch schrieb:
[modify the serial JTAG programmer to support SBW]
It now includes a subimplementation that implements SBW. I substituted
the relevant files (LowLevelFunctionsSBW.* and JTAGfuncsSBW.*) in the
serialJTAG firmware source and modified (or rather hacked) a few things
to make it fit in again...and, amazingly.... IT WORKED INSTANTLY!! :))))
cool :-)
are you willing to share your updates so that we can update the firmware
in the sourceforge CVS repository?
You must know that I used the same source tree that used during the
4-wire jtag frustrations, so it is full of hacks and commented-out code.
Furthermore, I needed to make some changes to get it working on my F1232
and at that time I didn't consider contributing code, so I did not use
any preprocessor directives to keep things portable (and I broke the
clone code). Also, the SBW code is hacked really ugly into the existing
source tree. So, you might want to retrace my footsteps on a fresh
source tree and do it properly. However, you can of course use my
version as a guideline. It is not fully tested, but till now I didn't
encounter any problems.
A direct image of my sourcetree (including junk like .old files) is
available at:
http://sinas.rename-it.nl/~sirius/serJTAGfirmwareSBW.tar.gz
for the standalone mode, the JTAG mode should probably be set on the
command line and be stored like the erase mode, so that the conventional
JTAG can still be used, unless autodetection is easily possible.
I don't think you can easily autodetect the SBW interface... only by
trying the possibilities succesively. This might just work satisfactory.
Note that the TI source includes a devices.h file with interesting
definitions about chip parameters. I ignored it in my implementation and
substituted the relevant parameters directly to get it to compile as
quickly as possible (frustration realy does not help producing proper code).
I hope you can find out exactly what I did to get it to work using my
sourcecode. If for some reason you have no means to implement this (e.g.
no time), I could do it myself, but this will have to wait a few months
due to my internship. Of course I can answer any questions you have.
Regards,
Stephan.