November 24, 2024, 02:41:21 PM

Flash TI cc2538 with ARM-USB-TINY-H

Started by niclasz, May 25, 2016, 12:02:04 PM

Previous topic - Next topic

niclasz

I have an Olimex ARM-USB-TIMY-H that I want to use for flashing a TI cc2538. I found this document
https://www.olimex.com/Products/ARM/JTAG/_resources/Manual_PROGRAMMER.pdf
and I get stuck on the program_device script. Any suggestions how that script shall be written for the cc2538?

JohnS

Looks like OpenOCD now supports it - see its main page.

John

JohnS

What happens if you just use the provided files?  Doesn't it work?  Doesn't gdb work?

John

niclasz

I now found the program command in the documentation but I got an error:

C:\openocd>bin\openocd.exe -f interface\olimex-arm-usb-tiny-h.cfg -f target\cc2538.cfg -c "program core_0.3.27.bin exit 0x200000"
Open On-Chip Debugger 0.9.0 (2015-08-15-12:41)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
adapter speed: 100 kHz
Info : auto-selecting first available session transport "jtag". To override use 'transport select <transport>'.
Info : clock speed 100 kHz
Info : JTAG tap: cc2538.jrc tap/device found: 0x8b96402f (mfg: 0x017, part: 0xb964, ver: 0x8)
Info : JTAG tap: cc2538.dap enabled
Info : cc2538.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : JTAG tap: cc2538.jrc tap/device found: 0x8b96402f (mfg: 0x017, part: 0xb964, ver: 0x8)
Info : JTAG tap: cc2538.dap enabled
Warn : Only resetting the Cortex-M core, use a reset-init event handler to reset any peripherals or configure hardware srst support.
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x0000136c msp: 0x20008000
Info : JTAG tap: cc2538.jrc tap/device found: 0x8b96402f (mfg: 0x017, part: 0xb964, ver: 0x8)
Info : JTAG tap: cc2538.dap enabled
Warn : Only resetting the Cortex-M core, use a reset-init event handler to reset any peripherals or configure hardware srst support.
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x0000136c msp: 0x20008000
** Programming Started **
** Programming Failed **
shutdown command invoked
embedded:startup.tcl:490: Error:
in procedure 'flash' called at file "embedded:startup.tcl", line 490

JohnS

A good time to post on the oocd list.  They'll want debug 3 (-d 3) output.

John