On 2007-11-22 11:43 A. G. Aydos wrote:
>... I think the problem lay in python.

I have a similar problem, and can show a little more detail. Using a known 
good board, programmed many times in the past with the mspgcc backend, I see 
the "JTAGfunc: JTAG ID wrong (0xff, expected 0x89)" fault with the mspgcc 
backend, but not with the TI backend. My mspgcc toolchain was entirely built 
from the CVS  this week.  Session log:

r...@triffid ~/code/main/rev1 $ 
msp430-jtag --upload=0x1100 --debug --debug --size=16 -x
MSP430 JTAG programmer Version: 2.3
Use -h for help
Debug is level set to 2
Python version: 2.4.4 (#1, Oct 25 2007, 13:40:27)
[GCC 4.1.2 (Gentoo 4.1.2 p1.0.1)]
MSP430_*Register not found in library. Not supported.
MSP430_Funclet and isHalted not found in library. Not supported.
JTAG backend: ctypes/TI or 3rd party (/opt/mspgcc/lib/libMSP430.so)
backend library version: 20107000
MSP430_Identify: Device type: 'MSP430F149'
* uploadData()
1100:  b2 40 80 5a 20 01 3f 40 96 5e 3e 40 00 02 3d 40    [email protected] ....@.^>@..=@

Reset and release device...
r...@triffid ~/code/main/rev1 $ 
msp430-jtag --upload=0x1100 --backend=mspgcc --debug --debug --size=16 -x
MSP430mspgcc: Debug level set to 1
MSP430mspgcc: Debug level set to 2
MSP430 JTAG programmer Version: 2.3
Use -h for help
Debug is level set to 2
Python version: 2.4.4 (#1, Oct 25 2007, 13:40:27)
[GCC 4.1.2 (Gentoo 4.1.2 p1.0.1)]
MSP430mspgcc: MSP430_Initialize...
backend library version: 6
MSP430mspgcc: MSP430_VCC...
MSP430mspgcc: MSP430_Open...
MSP430mspgcc: MSP430_Reset(0x6, 0, 0)...
JTAGfunc: ERROR: possibly no device
JTAGfunc: JTAG ID wrong (0xff, expected 0x89).
JTAGfunc: ERROR: possibly no device
JTAGfunc: JTAG ID wrong (0xff, expected 0x89).
MSP430mspgcc: MSP430_Error_Number -> 9
MSP430mspgcc: MSP430_Error_String -> Could not reset device
Cleaning up after error...
Reset and release device...
MSP430mspgcc: MSP430_Reset(0x7, 1, 1)...
MSP430mspgcc: MSP430_Close...
Traceback (most recent call last):
  File "/opt/mspgcc/bin/msp430-jtag-unwrapped", line 608, in ?
    main()
  File "/opt/mspgcc/bin/msp430-jtag-unwrapped", line 536, in main
    jtagobj.connect()                               #connect to target
  File "/opt/mspgcc/bin/mspgcc/jtag.py", line 506, in connect
    _parjtag.connect()
  File "/opt/mspgcc/bin/mspgcc/jtag.py", line 319, in connect
    raise IOError("Can't open interface: %s" % 
MSP430_Error_String(MSP430_Error_Number()))
IOError: Can't open interface: Could not reset device
r...@triffid ~/code/main/rev1 $ 
-- 
Rick Jenkins <[email protected]>
Hartman Technica           http://www.hartmantech.com 
Phone +1 (403) 230-1987
221 35 Avenue. N.E., Calgary, Alberta, Canada T2E 2K5

Reply via email to