Closed rei-vilo closed 10 years ago
I did think about doing this but it's a bit tricky to do from the Energia IDE. I have not found a way to upload to RAM and then detach the debugger. As soon as I detach with OpenOCD the code stops running. Ideally I would call OpenOCD directly without GDB -> upload to RAM -> terminate OpenOCD. If anybody knows how to achieve this then I would love to hear about it.
I've found a solution using the debugger solely.
Launch openocd
in a first terminal window and then arm-none-eabi-gdb
in a second terminal window.
When the gdb
prompt appears on the second terminal window, enter the following commands:
file '/Users/ReiVilo/Documents/Projets/eX/eX-CC3200/eX-CC3200/Builds/embeddedcomputing.elf'
set remotetimeout 2000
target extended :3333
monitor reset halt
load
monitor reset init
continue
Works fine for me, so I'm closing this ticket.
Notes
Add another board at the menu Tools > Board >
LaunchPad w/ CC3200 SRAM (80 MHz)
to the existingLaunchPad w/ CC3200 Flash (80 MHz)
.This would allow avoiding the J8-SOP2 strap as well as debugging #417.