---
** [tickets:#250] Raw ELF is uploaded**
**Status:** new
**Milestone:** 0.9.0
**Created:** Wed Sep 11, 2019 10:05 AM UTC by mauro
**Last Updated:** Wed Sep 11, 2019 10:05 AM UTC
**Owner:** nobody
Hello, i have an issue with "Open On-Chip Debugger 0.10.0". the following:
~~~
/usr/bin/openocd -c "tcl_port disabled" -s /usr/share/openocd/scripts -c
"gdb_port 3333" -c "telnet_port 4444" -f debugger.cfg -c "program
\"compiled.elf\"" -c reset -c shutdown
~~~
works fine if the binary start from the beninning of the flash(0x08000000); but
if i start from 0x08004000 for example, instead of the binary, the raw ELF will
be uploaded starting from position 0x08000000. Thats it, the file is uploaded
1:1 instead of coverted to binary and offested of 0x4000.
My suspicion is that the elf format, despite the extension and correctly
starting with bytes 0x45 0x4C 0x45 (ELF) is seen as binary and uploaded at the
default flash address.
Interestingly I have another project that works fine with the exact same
command; main differences are that start from 0x08040000, and is targeting a
stm32F4 instead of a stm32F1
debugger.cfg:
~~~
source [find interface/stlink-v2.cfg]
transport select hla_swd
set WORKAREASIZE 0x10000
source [find target/stm32f1x.cfg]
reset_config none separate
~~~
---
Sent from sourceforge.net because [email protected] is
subscribed to https://sourceforge.net/p/openocd/tickets/
To unsubscribe from further messages, a project admin can change settings at
https://sourceforge.net/p/openocd/admin/tickets/options. Or, if this is a
mailing list, you can unsubscribe from the mailing list.
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel