Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TI TIVA TM4C JTAG #108

Open
froloffw7 opened this issue Mar 6, 2023 · 2 comments
Open

TI TIVA TM4C JTAG #108

froloffw7 opened this issue Mar 6, 2023 · 2 comments

Comments

@froloffw7
Copy link

froloffw7 commented Mar 6, 2023

Hello,
I'm trying to reflash TI MSP432P401R builtin XDS 110 JTAG programmer firmware, which was broken during the update and doesn't enter DFU mode.
TI suggest to use JTAG (seems this is the only possible way). As I don't have any TI XDS JTAG programmer, I'm trying to do the same with some other JTAG hardware.
I didn't achieve any success with Altera Byte Blaster neither with ST-Link v2, so I'm trying to do this with DirtyJtag+openocd(patched). It can detect the CPU, but then failed during initialization with error:
Error: 103 214 bitq.c:308 bitq_execute_queue(): missing data from bitq interface.
Do you have any idea what to check/change?
openocd configuration file, inspired by board/ti_ek-tm4c1294xl.cfg

#
# TM4C1294NCPDT Chip
#
# Author : 
# Version : 
#
source [find interface/dirtyjtag.cfg]
# transport select jtag

set WORKAREASIZE 0x8000
set CHIPNAME tm4c1294ncpdt
source [find target/stellaris.cfg]

Full openocd debug log attached.
Thank you!
openocd.txt

@jeanthom
Copy link
Collaborator

Hi @froloffw7,

I haven't been very active on the OpenOCD driver. I had a brief look but I can't figure what's going wrong.

@phdussud do you have any advice or things they should try? Thanks :)

@phdussud
Copy link
Contributor

Hello,
I looked at the log. I believe that the error comes from a lack of response from the TI chip, or a bug in the openocd driver or in the dirtyjtag firmware. Are you using dirtyJtag V2?
This is going to be hard to debug. A similar debug session works with a STM2F4xx chip but that does not help you any. Sorry!
The only thing I can suggest is to use a Logic Analyzer to spy on the Jtag interface and see if the exchange right before the error message makes sense. Alternatively, you can try an older version of the dirtyJtag support of openocd here
https://sourceforge.net/u/phdussud/openocd/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants