balazovic.peter at gmail.com
Thu Nov 26 18:56:17 CET 2009
On Nov 26, 4:32 pm, Dietmar Schwertberger <n... at schwertberger.de>
> Dietmar Schwertberger schrieb:> pepe schrieb:
> >> is there any python package which potentially can support JTAG (BDM or
> >> others) debugging interface for embedded system development?
> >> Is there any other packages supporting debugging, monitoring, data
> >> logging, flash programming of embedded systems?
> > Don't know about JTAG, but I've successfully used a TBDML interface from
> > Python to control S12 microcontrollers via BDM.
> > Basically, any BDM or JTAG interface should have a DLL as driver which
> > you can import using ctypes.
> Sorry, hit the wrong button...
> Low level usage via ctypes looked like this:
> import ctypes
> tbdml = ctypes.windll.LoadLibrary("tbdml.dll")
> # connect
> tbdml.tbdml_init() # returns number of devices
> tbdml.tbdml_target_sync() # returns 0 on success
> # play with micro ports
> tbdml.tbdml_write_byte(0x0,2) # set port
> tbdml.tbdml_read_byte(0x0) # read back
> With a small wrapper around, usage looked like this:
> import TBDML
> t = TBDML.TBDML(device_no=0);t.target_sync();t.target_reset(0)
> t[0x00] = 2
> print t[0x00]
> If that's what you need, contact me.
Good to know Dietmar - thanks a lot!
More information about the Python-list