TI中文支持网
TI专业的中文技术问题搜集分享网站

28335载入PWM程序时总是断开JTAG口,求助

自己设计的板子,用了28335。

运行ADC采样,和toggle程序都可以。但运行PWM程序时,不到一分钟出现报错。

C28xx: Error: (Error -150 @ 0x0) One of the FTDI driver functions used during configuration returned a invalid status or an error. (Emulation package 5.1.450.0)C28xx: Error: (Error -154 @ 0x0) One of the FTDI driver functions used to write data returned bad status or an error. (Emulation package 5.1.450.0)C28xx: Unable to determine target status after 20 attempts
C28xx: Failed to remove the debug state from the target before disconnecting. There may still be breakpoint op-codes embedded in program memory. It is recommended that you reset the emulator before you connect and reload your program before you continue debugging

测试JTAG口连接状态,如下:

[Start: Texas Instruments XDS100v3 USB Emulator]

Execute the command:

%ccs_base%/common/uscif/dbgjtag -f %boarddatafile% -rv -o -F inform,logfile=yes -S pathlength -S integrity

[Result]

—–[Print the board config pathname(s)]————————————

C:\Users\gexiao\AppData\Local\TEXASI~1\CCS\
ti\0\0\BrdDat\testBoard.dat

—–[Print the reset-command software log-file]—————————–

This utility has selected a 100- or 510-class product.
This utility will load the adapter 'jioserdesusbv3.dll'.

An error occurred while soft opening the controller.

—–[An error has occurred and this utility has aborted]——————–

This error is generated by TI's USCIF driver or utilities.

The value is '-151' (0xffffff69).
The title is 'SC_ERR_FTDI_OPEN'.

The explanation is:
One of the FTDI driver functions used during
the connect returned bad status or an error.
The cause may one or more of: invalid emulator serial number,
blank emulator EEPROM, missing FTDI drivers, faulty USB cable.
Use the xds100serial command-line utility in the 'common/uscif'
folder to verify the emulator can be located.

[End: Texas Instruments XDS100v3 USB Emulator]

此时PWM波按照初始状态的设置值输出。但JTAG口和DSP断开了。上面说好像重复20次,都无法移除错误位。如何解决呢?求助。

mangui zhang:

隔离和共地没有处理好吧    硬件问题

自己设计的板子,用了28335。

运行ADC采样,和toggle程序都可以。但运行PWM程序时,不到一分钟出现报错。

C28xx: Error: (Error -150 @ 0x0) One of the FTDI driver functions used during configuration returned a invalid status or an error. (Emulation package 5.1.450.0)C28xx: Error: (Error -154 @ 0x0) One of the FTDI driver functions used to write data returned bad status or an error. (Emulation package 5.1.450.0)C28xx: Unable to determine target status after 20 attempts
C28xx: Failed to remove the debug state from the target before disconnecting. There may still be breakpoint op-codes embedded in program memory. It is recommended that you reset the emulator before you connect and reload your program before you continue debugging

测试JTAG口连接状态,如下:

[Start: Texas Instruments XDS100v3 USB Emulator]

Execute the command:

%ccs_base%/common/uscif/dbgjtag -f %boarddatafile% -rv -o -F inform,logfile=yes -S pathlength -S integrity

[Result]

—–[Print the board config pathname(s)]————————————

C:\Users\gexiao\AppData\Local\TEXASI~1\CCS\
ti\0\0\BrdDat\testBoard.dat

—–[Print the reset-command software log-file]—————————–

This utility has selected a 100- or 510-class product.
This utility will load the adapter 'jioserdesusbv3.dll'.

An error occurred while soft opening the controller.

—–[An error has occurred and this utility has aborted]——————–

This error is generated by TI's USCIF driver or utilities.

The value is '-151' (0xffffff69).
The title is 'SC_ERR_FTDI_OPEN'.

The explanation is:
One of the FTDI driver functions used during
the connect returned bad status or an error.
The cause may one or more of: invalid emulator serial number,
blank emulator EEPROM, missing FTDI drivers, faulty USB cable.
Use the xds100serial command-line utility in the 'common/uscif'
folder to verify the emulator can be located.

[End: Texas Instruments XDS100v3 USB Emulator]

此时PWM波按照初始状态的设置值输出。但JTAG口和DSP断开了。上面说好像重复20次,都无法移除错误位。如何解决呢?求助。

tianqing li:

回复 mangui zhang:

没有隔离电源。共地没有处理好,是什么意思?是因为全桥逆变电路在直流输入电压侧造成的反向电流造成的么?

自己设计的板子,用了28335。

运行ADC采样,和toggle程序都可以。但运行PWM程序时,不到一分钟出现报错。

C28xx: Error: (Error -150 @ 0x0) One of the FTDI driver functions used during configuration returned a invalid status or an error. (Emulation package 5.1.450.0)C28xx: Error: (Error -154 @ 0x0) One of the FTDI driver functions used to write data returned bad status or an error. (Emulation package 5.1.450.0)C28xx: Unable to determine target status after 20 attempts
C28xx: Failed to remove the debug state from the target before disconnecting. There may still be breakpoint op-codes embedded in program memory. It is recommended that you reset the emulator before you connect and reload your program before you continue debugging

测试JTAG口连接状态,如下:

[Start: Texas Instruments XDS100v3 USB Emulator]

Execute the command:

%ccs_base%/common/uscif/dbgjtag -f %boarddatafile% -rv -o -F inform,logfile=yes -S pathlength -S integrity

[Result]

—–[Print the board config pathname(s)]————————————

C:\Users\gexiao\AppData\Local\TEXASI~1\CCS\
ti\0\0\BrdDat\testBoard.dat

—–[Print the reset-command software log-file]—————————–

This utility has selected a 100- or 510-class product.
This utility will load the adapter 'jioserdesusbv3.dll'.

An error occurred while soft opening the controller.

—–[An error has occurred and this utility has aborted]——————–

This error is generated by TI's USCIF driver or utilities.

The value is '-151' (0xffffff69).
The title is 'SC_ERR_FTDI_OPEN'.

The explanation is:
One of the FTDI driver functions used during
the connect returned bad status or an error.
The cause may one or more of: invalid emulator serial number,
blank emulator EEPROM, missing FTDI drivers, faulty USB cable.
Use the xds100serial command-line utility in the 'common/uscif'
folder to verify the emulator can be located.

[End: Texas Instruments XDS100v3 USB Emulator]

此时PWM波按照初始状态的设置值输出。但JTAG口和DSP断开了。上面说好像重复20次,都无法移除错误位。如何解决呢?求助。

tianqing li:

回复 mangui zhang:

我也觉得是硬件问题,但是JTAG口连接好像是正常的,所有地也是连上的。因为PWM程序运行一小段时间才会DSP把JTAG口断掉。这个错误信号无法查明啊。不知道是哪里造成的。必须断电,拔掉PC与仿真器连接,然后重新连上,上电,才能恢复。只断电和上电,是不行的。

自己设计的板子,用了28335。

运行ADC采样,和toggle程序都可以。但运行PWM程序时,不到一分钟出现报错。

C28xx: Error: (Error -150 @ 0x0) One of the FTDI driver functions used during configuration returned a invalid status or an error. (Emulation package 5.1.450.0)C28xx: Error: (Error -154 @ 0x0) One of the FTDI driver functions used to write data returned bad status or an error. (Emulation package 5.1.450.0)C28xx: Unable to determine target status after 20 attempts
C28xx: Failed to remove the debug state from the target before disconnecting. There may still be breakpoint op-codes embedded in program memory. It is recommended that you reset the emulator before you connect and reload your program before you continue debugging

测试JTAG口连接状态,如下:

[Start: Texas Instruments XDS100v3 USB Emulator]

Execute the command:

%ccs_base%/common/uscif/dbgjtag -f %boarddatafile% -rv -o -F inform,logfile=yes -S pathlength -S integrity

[Result]

—–[Print the board config pathname(s)]————————————

C:\Users\gexiao\AppData\Local\TEXASI~1\CCS\
ti\0\0\BrdDat\testBoard.dat

—–[Print the reset-command software log-file]—————————–

This utility has selected a 100- or 510-class product.
This utility will load the adapter 'jioserdesusbv3.dll'.

An error occurred while soft opening the controller.

—–[An error has occurred and this utility has aborted]——————–

This error is generated by TI's USCIF driver or utilities.

The value is '-151' (0xffffff69).
The title is 'SC_ERR_FTDI_OPEN'.

The explanation is:
One of the FTDI driver functions used during
the connect returned bad status or an error.
The cause may one or more of: invalid emulator serial number,
blank emulator EEPROM, missing FTDI drivers, faulty USB cable.
Use the xds100serial command-line utility in the 'common/uscif'
folder to verify the emulator can be located.

[End: Texas Instruments XDS100v3 USB Emulator]

此时PWM波按照初始状态的设置值输出。但JTAG口和DSP断开了。上面说好像重复20次,都无法移除错误位。如何解决呢?求助。

tianqing li:

回复 mangui zhang:

我也认为是硬件问题,但无法找到原因。JTAG口连接正常,虽有地也是连接的。每次出现问题,必须拔掉仿真器和PC连接,并且重新给硬件上电才能恢复。

自己设计的板子,用了28335。

运行ADC采样,和toggle程序都可以。但运行PWM程序时,不到一分钟出现报错。

C28xx: Error: (Error -150 @ 0x0) One of the FTDI driver functions used during configuration returned a invalid status or an error. (Emulation package 5.1.450.0)C28xx: Error: (Error -154 @ 0x0) One of the FTDI driver functions used to write data returned bad status or an error. (Emulation package 5.1.450.0)C28xx: Unable to determine target status after 20 attempts
C28xx: Failed to remove the debug state from the target before disconnecting. There may still be breakpoint op-codes embedded in program memory. It is recommended that you reset the emulator before you connect and reload your program before you continue debugging

测试JTAG口连接状态,如下:

[Start: Texas Instruments XDS100v3 USB Emulator]

Execute the command:

%ccs_base%/common/uscif/dbgjtag -f %boarddatafile% -rv -o -F inform,logfile=yes -S pathlength -S integrity

[Result]

—–[Print the board config pathname(s)]————————————

C:\Users\gexiao\AppData\Local\TEXASI~1\CCS\
ti\0\0\BrdDat\testBoard.dat

—–[Print the reset-command software log-file]—————————–

This utility has selected a 100- or 510-class product.
This utility will load the adapter 'jioserdesusbv3.dll'.

An error occurred while soft opening the controller.

—–[An error has occurred and this utility has aborted]——————–

This error is generated by TI's USCIF driver or utilities.

The value is '-151' (0xffffff69).
The title is 'SC_ERR_FTDI_OPEN'.

The explanation is:
One of the FTDI driver functions used during
the connect returned bad status or an error.
The cause may one or more of: invalid emulator serial number,
blank emulator EEPROM, missing FTDI drivers, faulty USB cable.
Use the xds100serial command-line utility in the 'common/uscif'
folder to verify the emulator can be located.

[End: Texas Instruments XDS100v3 USB Emulator]

此时PWM波按照初始状态的设置值输出。但JTAG口和DSP断开了。上面说好像重复20次,都无法移除错误位。如何解决呢?求助。

tianqing li:

回复 Seven Han:

试了一下,BOOT模式改为1111,flash模式,并没有什么变化。板子上2835控制的是两个半桥芯片CSD97396,做成一个全桥逆变,逆变电路,输出端连接电阻和电感电容,全部串联,在谐振频率下运行。当逆变电路输出端断开时,程序运行正常;一旦逆变电路输出端连上电阻电容电感,就会发生JTAG断开的现象。而且是在程序运行几秒或十几秒后,才发生的。

自己设计的板子,用了28335。

运行ADC采样,和toggle程序都可以。但运行PWM程序时,不到一分钟出现报错。

C28xx: Error: (Error -150 @ 0x0) One of the FTDI driver functions used during configuration returned a invalid status or an error. (Emulation package 5.1.450.0)C28xx: Error: (Error -154 @ 0x0) One of the FTDI driver functions used to write data returned bad status or an error. (Emulation package 5.1.450.0)C28xx: Unable to determine target status after 20 attempts
C28xx: Failed to remove the debug state from the target before disconnecting. There may still be breakpoint op-codes embedded in program memory. It is recommended that you reset the emulator before you connect and reload your program before you continue debugging

测试JTAG口连接状态,如下:

[Start: Texas Instruments XDS100v3 USB Emulator]

Execute the command:

%ccs_base%/common/uscif/dbgjtag -f %boarddatafile% -rv -o -F inform,logfile=yes -S pathlength -S integrity

[Result]

—–[Print the board config pathname(s)]————————————

C:\Users\gexiao\AppData\Local\TEXASI~1\CCS\
ti\0\0\BrdDat\testBoard.dat

—–[Print the reset-command software log-file]—————————–

This utility has selected a 100- or 510-class product.
This utility will load the adapter 'jioserdesusbv3.dll'.

An error occurred while soft opening the controller.

—–[An error has occurred and this utility has aborted]——————–

This error is generated by TI's USCIF driver or utilities.

The value is '-151' (0xffffff69).
The title is 'SC_ERR_FTDI_OPEN'.

The explanation is:
One of the FTDI driver functions used during
the connect returned bad status or an error.
The cause may one or more of: invalid emulator serial number,
blank emulator EEPROM, missing FTDI drivers, faulty USB cable.
Use the xds100serial command-line utility in the 'common/uscif'
folder to verify the emulator can be located.

[End: Texas Instruments XDS100v3 USB Emulator]

此时PWM波按照初始状态的设置值输出。但JTAG口和DSP断开了。上面说好像重复20次,都无法移除错误位。如何解决呢?求助。

tianqing li:

回复 Seven Han:

C28xx: Trouble Halting Target CPU: (Error -150 @ 0x0) One of the FTDI driver functions used during configuration returned a invalid status or an error. (Emulation package 5.0.681.0)

C28xx: Error: (Error -1041 @ 0xFFFFFF6A) The emulator reported an error. Confirm emulator configuration and connections, reset the emulator, and retry the operation. (Emulation package 5.0.681.0)

——补充错误信息。

自己设计的板子,用了28335。

运行ADC采样,和toggle程序都可以。但运行PWM程序时,不到一分钟出现报错。

C28xx: Error: (Error -150 @ 0x0) One of the FTDI driver functions used during configuration returned a invalid status or an error. (Emulation package 5.1.450.0)C28xx: Error: (Error -154 @ 0x0) One of the FTDI driver functions used to write data returned bad status or an error. (Emulation package 5.1.450.0)C28xx: Unable to determine target status after 20 attempts
C28xx: Failed to remove the debug state from the target before disconnecting. There may still be breakpoint op-codes embedded in program memory. It is recommended that you reset the emulator before you connect and reload your program before you continue debugging

测试JTAG口连接状态,如下:

[Start: Texas Instruments XDS100v3 USB Emulator]

Execute the command:

%ccs_base%/common/uscif/dbgjtag -f %boarddatafile% -rv -o -F inform,logfile=yes -S pathlength -S integrity

[Result]

—–[Print the board config pathname(s)]————————————

C:\Users\gexiao\AppData\Local\TEXASI~1\CCS\
ti\0\0\BrdDat\testBoard.dat

—–[Print the reset-command software log-file]—————————–

This utility has selected a 100- or 510-class product.
This utility will load the adapter 'jioserdesusbv3.dll'.

An error occurred while soft opening the controller.

—–[An error has occurred and this utility has aborted]——————–

This error is generated by TI's USCIF driver or utilities.

The value is '-151' (0xffffff69).
The title is 'SC_ERR_FTDI_OPEN'.

The explanation is:
One of the FTDI driver functions used during
the connect returned bad status or an error.
The cause may one or more of: invalid emulator serial number,
blank emulator EEPROM, missing FTDI drivers, faulty USB cable.
Use the xds100serial command-line utility in the 'common/uscif'
folder to verify the emulator can be located.

[End: Texas Instruments XDS100v3 USB Emulator]

此时PWM波按照初始状态的设置值输出。但JTAG口和DSP断开了。上面说好像重复20次,都无法移除错误位。如何解决呢?求助。

tianqing li:

回复 tianqing li:

最后感觉应该是仿真器受到了干扰,但是干扰问题无法解决。我只能用JTAG口下载程序到DSP,但是不能调试和监控了,而且每次下载完,还需重启仿真器才行。用示波器对重要信号进行了监控。感谢SEVEN HAN,你说的应该是对的。

赞(0)
未经允许不得转载:TI中文支持网 » 28335载入PWM程序时总是断开JTAG口,求助
分享到: 更多 (0)