Closed hazelnusse closed 7 years ago
set remotetimeout 100000
. This may help if the only problem is that it's taking too long.set debug remote 1
which will log the communication with BMP, so we can see which packet is causing the problem (if it's the flash erase or write).@hazelnusse Were you able to gather more information on this? Is this issue resolved?
I haven't had time to pursue this; the last time I tried, I could not get it to work.
@hazelnusse thank you for the heads up. I have ordered the eval board you mentioned. I should get it here hopefully tomorrow so I can see myself if I can reproduce your issue.
This should be fixed by #202.
I have the following setup:
I first connect the BMP2 to my laptop via the USB cable, here is what I see from dmesg: [97703.515430] usb 2-3: New USB device found, idVendor=1d50, idProduct=6018 [97703.515433] usb 2-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [97703.515435] usb 2-3: Product: Black Magic Probe [97703.515436] usb 2-3: Manufacturer: Black Sphere Technologies [97703.515437] usb 2-3: SerialNumber: D5DABEF4 [97703.516025] cdc_acm 2-3:1.0: ttyACM0: USB ACM device [97703.516387] cdc_acm 2-3:1.2: ttyACM1: USB ACM device
So far so good.
Next, I connect the EK-TM4C123GXL to my laptop via the debug USB, here is what I see from dmesg: [97807.165383] usb 2-1: new full-speed USB device number 66 using xhci_hcd [97807.334651] usb 2-1: New USB device found, idVendor=1cbe, idProduct=00fd [97807.334654] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [97807.334656] usb 2-1: Product: In-Circuit Debug Interface [97807.334657] usb 2-1: Manufacturer: Texas Instruments [97807.334658] usb 2-1: SerialNumber: 0E210604 [97807.335134] cdc_acm 2-1:1.0: ttyACM2: USB ACM device
And the LEDs are blinking on the EK-TM4C123GXL.
Next, I connect the Tag Connect to the BMP2 hardware via the 10pin connector. Next, I connect the other end to the Tag Connect JTAG connection on the EK-TM4C123GXL.
Then, I build the blackmagic firmware for the launchpad-icdi by running:
This results in these two files:
Now, I run gdb, connect, and try to load the program:
At this point, gdb never returns. I've tried waiting 10 minutes, doesn't matter. If I restart gdb and reconnect and compare sections, I can tell it was not successfully loaded:
If I don't enable the target power, I get the same result. I don't think the target power should be necessary, but I'm not sure.
Schematics of the board may be found here: http://www.ti.com/lit/ug/spmu296/spmu296.pdf
Schematics of the Tag Connect cable can be found here: http://www.tag-connect.com/Materials/TC2050-IDC-NL%20Datasheet.pdf
BMPM2 Schematic: https://github.com/blacksphere/blackmagic/wiki/files/bmpm_v2_0f_schematic.pdf
Electrically, I think this should work fine. Pins 3, 5, and 9 of the Tag Connect are grounded, as they are on the BMPM2 side of things. The JTAG TMS/TCK/TDO/TDI pins all look wired up correctly between the BMPM2, through the tag connect, and to the pins of the ICDI TM4C123 (see U2-A). The ICDI JTAG RST line is going to the RESET pin of the the ICDI TM4C123 (see U2-B).
Not sure what else to try here. Any suggestions?