myinterface.cfg:
adapter driver bcm2835gpio
# Set speed
adapter speed 10
# Base address of I/O port
bcm2835gpio peripheral_base 0x3F000000
# Clock scaling
bcm2835gpio speed_coeffs 194938 48
# JTAG tck tms tdi tdo
adapter gpio tck 31
adapter gpio tms 14
adapter gpio tdi 29
adapter gpio tdo 30
# Set transport
transport select jtag
Board is a CM3. GPIO:
# gpio readall
+-----+------+-------+ +-----+------+-------+
| Pin | Mode | Value | | Pin | Mode | Value |
+-----+------+-------+ +-----+------+-------+
| 0 | IN | High | | 27 | IN | High |
| 1 | IN | High | | 28 | OUT | High |
| 2 | IN | High | | 29 | IN | Low |
| 3 | IN | High | | 30 | IN | Low |
| 4 | IN | High | | 31 | IN | Low |
| 5 | IN | High | | 32 | IN | Low |
| 6 | IN | High | | 33 | IN | Low |
| 7 | OUT | High | | 34 | IN | High |
| 8 | OUT | High | | 35 | IN | High |
| 9 | ALT0 | Low | | 36 | OUT | Low |
| 10 | ALT0 | Low | | 37 | IN | Low |
| 11 | ALT0 | Low | | 38 | IN | Low |
| 12 | IN | Low | | 39 | IN | Low |
| 13 | IN | Low | | 40 | ALT5 | High |
| 14 | ALT0 | High | | 41 | ALT5 | High |
| 15 | ALT0 | High | | 42 | IN | Low |
| 16 | ALT3 | Low | | 43 | IN | Low |
| 17 | ALT3 | High | | 44 | OUT | High |
| 18 | OUT | High | | 45 | IN | Low |
| 19 | IN | Low | | 46 | IN | High |
| 20 | IN | Low | | 47 | OUT | High |
| 21 | IN | Low | | 48 | ALT0 | Low |
| 22 | IN | Low | | 49 | ALT0 | High |
| 23 | IN | Low | | 50 | ALT0 | High |
| 24 | IN | High | | 51 | ALT0 | High |
| 25 | IN | High | | 52 | ALT0 | High |
| 26 | IN | High | | 53 | ALT0 | High |
+-----+------+-------+ +-----+------+-------+
Command:
openocd -c "debug_level 2" -f interface/myinterface.cfg -f target/ti_cc26x2.cfg -c "program $FIRMWARE verify exit"
Output:
Open On-Chip Debugger 0.12.0
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
debug_level: 2
jtag
cortex_m reset_config vectreset
Info : BCM2835 GPIO JTAG/SWD bitbang driver
Info : clock speed 10 kHz
Error: JTAG scan chain interrogation failed: all zeroes
Error: Check JTAG interface, timings, target power, etc.
Error: Trying to use configured scan chain anyway...
Error: cc26x2.jrc: IR capture error; saw 0x00 not 0x01
Warn : Bypassing JTAG setup events due to errors
Info : starting gdb server for cc26x2.cpu on 3333
Info : Listening on port 3333 for gdb connections
Error: JTAG scan chain interrogation failed: all zeroes
Error: Check JTAG interface, timings, target power, etc.
Error: Trying to use configured scan chain anyway...
Error: cc26x2.jrc: IR capture error; saw 0x00 not 0x01
Warn : Bypassing JTAG setup events due to errors
** Programming Started **
Error: Target not examined yet
Error: auto_probe failed
** Programming Failed **
shutdown command invoked
Target is a CC2652R1F, wires have been checked.
Also, this used to work earlier before we have upgraded Debian to Bookworm.
Also, before issuing openocd command, we reset the target with
gpio write $RST_GPIO 0; sleep 0.5; gpio write $RST_GPIO 1; sleep 1
What do you suggest?
myinterface.cfg:
Board is a CM3. GPIO:
Command:
Output:
Target is a CC2652R1F, wires have been checked.
Also, this used to work earlier before we have upgraded Debian to Bookworm.
Also, before issuing openocd command, we reset the target with
What do you suggest?