Estoy intentando programar el MSP430 (en una MSP-EXP430F5438 ) bajo Linux usando gcc- msp430 (Eventualmente, haré un código más grande que los 16k que permite la versión gratuita de Code Composer).
Como depurador, se recomienda usar mspdebug , pero cuando intento usarlo, no se conecta al FET430UIF.
~$ sudo mspdebug uif
MSPDebug version 0.19 - debugging tool for MSP430 MCUs
Copyright (C) 2009-2012 Daniel Beer <[email protected]>
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
TI3410 device is in boot config, setting active
Initializing FET...
FET protocol version is 20408002
Configured for Spy-Bi-Wire
ti3410: usb_bulk_read: No error
warning: fet: set VCC failed
ti3410: can't send data: No such device
fet: command C_IDENT1 failed
fet: identify failed
Trying again...
Initializing FET...
ti3410: can't send data: No such device
fet: open failed
ti3410: warning: TI_CLOSE_PORT failed: No such device
El mismo dispositivo funciona correctamente con Code Composer ejecutándose en una máquina virtual de Windows o en un sistema físico de Windows, así que sé que está funcionando.
Lo probé en Ubuntu 12.04 y en Arch Linux y obtuve los mismos errores.
Según lo recomendado en una respuesta, probé con -d
y obtuve más, pero no funcionó:
~$ sudo mspdebug uif -d /dev/ttyUSB0
[sudo] password for renan:
MSPDebug version 0.19 - debugging tool for MSP430 MCUs
Copyright (C) 2009-2012 Daniel Beer <[email protected]>
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Trying to open UIF on /dev/ttyUSB0...
Initializing FET...
FET protocol version is 20408002
Configured for Spy-Bi-Wire
Set Vcc: 3000 mV
Device ID: 0x0580
Device: MSP430F5438A
Code memory starts at 0x5c00
Number of breakpoints: 8
uif: read error: Connection timed out
fet: warning: message C_IDENT3 failed
uif: read error: Connection timed out
fet: message C_IDENT2 failed
fet: identify failed
Trying again...
Initializing FET...
uif: read error: Connection timed out
fet: open failed
¿Qué está mal?