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

Unable to connect with GPIO driver #48

Open
dalmago opened this issue Mar 1, 2018 · 10 comments
Open

Unable to connect with GPIO driver #48

dalmago opened this issue Mar 1, 2018 · 10 comments

Comments

@dalmago
Copy link

dalmago commented Mar 1, 2018

I am trying to use the GPIO driver on a Raspberry Pi 3, but I always get the following message:

Starting JTAG
jtag_init: fuse is blown
JTAG_power on
JTAG_connct 
JTAG ID: 0x00
pif: unexpected JTAG ID: 0x00
jtag_set_instruction_fetch: failed
gpio: initialization failed
led green

I know the fuse is not blown because I can use the JTAG with the FET430UIF device.
Does anyone have any similar issue?

@dalmago
Copy link
Author

dalmago commented Mar 1, 2018

Also tried it on a Raspberry Zero W and got the same error.

@dlbeer
Copy link
Owner

dlbeer commented Mar 1, 2018

The JTAG driver is a little bit experimental, but the fact that you're getting an all-zero JTAG ID suggests that perhaps the JTAG pin connections aren't right. I'd double-check those and try again.

@dalmago
Copy link
Author

dalmago commented Mar 2, 2018

I checked the connections and plugged a logic analyzer. It seems that it's some issue with the initialization sequence. I got it working, but sometimes some commands fail. I'll submit updates soon.

@dalmago
Copy link
Author

dalmago commented Mar 2, 2018

I connected a MSP-FET430UIF device via JTAG interface on my MSP430F5510 and opened mspdebug. The start sequence on the test and reset pins are as following:

init_sequence_fet

Then I compared with the init sequence using the GPIOs:
init_sequence_gpio

It didn't seem quite right to me, so I changed the code a little bit to match the TI's SLAU320AC document (page 23, case 1b). I also added some sleep time just in case, because when the pins are set as outputs, they have a '0' level, causing a rising edge on reset, so I thought it's better to wait some time before resetting it again.

init_sequence_gpio_mod

I'm not sure if it'll work on other families of devices, but mspdebug connects almost successful now:

gpio tms= 4
gpio tdi= 3
gpio tdo= 2
gpio tck= 17
gpio rst= 22
gpio tst= 27
Starting JTAG
JTAG_power on
JTAG_connect 
led green
JTAG ID: 0x91
device_probe_id: tlv_read failed
warning: device ID probe failed

@dalmago
Copy link
Author

dalmago commented Mar 6, 2018

Shouldn't these be GPIO_TCK?

@dlbeer
Copy link
Owner

dlbeer commented Mar 6, 2018 via email

@Graniyo
Copy link

Graniyo commented Apr 4, 2018

Did you also get a 0xAAAA at TDO under fuse check? I'm struggling to get access with GPIO too, but I don't know if the fuse is really blown. Have you got it working? I'm going to edit the code tomorrow and test myself.

@dalmago
Copy link
Author

dalmago commented Apr 4, 2018

Found out that the JTAG commands are different for MSP430F5xx (which mine is) and MSP430F6xx families, so I'm using mspdebug just with the BSL driver.

@codehero
Copy link

I am getting almost identical output for the MSP430FR5739....is the FR family supported by JTAG?

@dalmago
Copy link
Author

dalmago commented Aug 26, 2022

Sorry friend, it's been a while I don't deal with the MSP430 ucs, I'll leave this to be answered by someone who is more up to date!

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

4 participants