Kebianizao has quit [Read error: Connection reset by peer]
Kebianizao has joined #openocd
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
blathijs has quit [Server closed connection]
blathijs has joined #openocd
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
LinuxHackerman has quit [Server closed connection]
LinuxHackerman has joined #openocd
Hawk777 has joined #openocd
Kebianizao has quit [Ping timeout: 250 seconds]
Kebianizao has joined #openocd
nerozero has joined #openocd
defiant has joined #openocd
PsySc0rpi0n has quit [Ping timeout: 264 seconds]
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
Pokey has quit [Server closed connection]
Pokey has joined #openocd
Haohmaru has joined #openocd
zjason has quit [Ping timeout: 250 seconds]
zjason has joined #openocd
defiant has quit [Quit: defiant]
PlasmaHH has joined #openocd
chrysn[m] has quit [Server closed connection]
chrysn[m] has joined #openocd
Hawk777 has quit [Quit: Leaving.]
<PlasmaHH>
Hm, with gdb and openocd and my new stlink I can load the binary but a restore command does not want to write to a certain area in flash... any idea how to tackle if its a limitation of openocd or the stlink or the moon phase?
PsySc0rpi0n has joined #openocd
erhankur has quit [Remote host closed the connection]
<PaulFertser>
PlasmaHH: usually the "load" command just flashes all the ELF sections that go to flash.
<PlasmaHH>
PaulFertser: with restore you take a file and load it as-is into a specific memory area with gdb
<PlasmaHH>
I usually use it to restore a specific part of the firmware that gets overwritten by the elf loading...
<PaulFertser>
PlasmaHH: you can always do "set debug remote 1" to see GDB Serial Protocol level exchange.
<PaulFertser>
To see what GDB is trying to do exactly.
<PlasmaHH>
PaulFertser: yeah, thats the funny part, it doesn't communicate anything, so there must be a difference at connection setup to the gdb server, like telling which sections can be written or something like that
<PlasmaHH>
my guess here is that the segger gdbserver transparently accepts writes to flash and openocd needs vFlashWrite
<PaulFertser>
PlasmaHH: yes, on startup OpenOCD gives GDB an XML with regions.
Deneb has joined #openocd
<PlasmaHH>
PaulFertser: hm, that complicates the matter a bit...
<PlasmaHH>
I don't think gdb has any commands intended to load raw binary data into flash...
<PaulFertser>
PlasmaHH: you can pack that raw binary into ELF I guess.
<PaulFertser>
PlasmaHH: yes, for flashing to work GDB needs to use special set of commands to erase and then write to flash.
<PlasmaHH>
PaulFertser: that would be a bit overkill... currently what I do with the segger setup is I dump the memory area in question, load the elf file, then restore the area in question...
<PlasmaHH>
with the openocd setup I could use monitor commands, but that doesnt feel great
aisha[m] has quit [Server closed connection]
aisha[m] has joined #openocd
<PaulFertser>
PlasmaHH: it's OpenOCD-specific, yes, but I do not think it's too bad actually.
<PlasmaHH>
PaulFertser: it makes it a bit harder to support multiple setups cleanly... like, I have my own gdb commands for two different compilers, now for that restoring command I need to add another dimension...
<PaulFertser>
Of course.
<PaulFertser>
PlasmaHH: how does it work with jlink though?
<PlasmaHH>
PaulFertser: it just works (tm)
<PaulFertser>
PlasmaHH: you can compare GDB Serial Protocol traces then?
<PlasmaHH>
you can write to flash addresses as if it was ram and their gdb server accepts it
<PlasmaHH>
I could probably compare them, yeah
<PaulFertser>
Hm, as it was ram? Hackish...
<PlasmaHH>
I don't know if it even needs anything different on the SWD level to do that... maybe it just accidentally works because segger doesn't provide a mapping to gdb ...
<PaulFertser>
PlasmaHH: you'll see in serial protocol dump.
<PaulFertser>
On SWD level it's really different.
<bencoh>
segger even allows software bp on flash address (and they actually rewrite flash), so ... flashing on load wouldn't surprise me one bit :)
<PaulFertser>
You can skip memory map in OpenOCD too :)
<PlasmaHH>
bencoh: yeah, they put that as a great feature in their advertisements, never thought about it in detail though
<bencoh>
it's one of their most wanted/liked feature, yeah ... "infinite flash breakpoints"
<PlasmaHH>
I don't know how many hardware breakpoints my controller has but really I have never thought about needing that many, on x86_64 I am usually fine with even the 2 or 3 that are available
<bencoh>
actually it depends on the cpu core
<bencoh>
(or rather, the cpu debug unit)
<bencoh>
I've been exposed to a platform with no hw bp at all (sadly)
<PlasmaHH>
oh that must be fun...
<PaulFertser>
OpenOCD prints the number of available break and watch points on examination.
erhankur has quit []
PsySc0rpi0n has quit [Ping timeout: 240 seconds]
PsySc0rpi0n has joined #openocd
PsySc0rpi0n has quit [Client Quit]
Deneb^ has joined #openocd
Deneb^ has quit [Quit: Leaving]
torbenh3 has quit [Ping timeout: 260 seconds]
PsySc0rpi0n has joined #openocd
Kebianizao has quit [Read error: Connection reset by peer]
Kebianizao has joined #openocd
PlasmaHH has quit [Ping timeout: 260 seconds]
PlasmaHH has joined #openocd
Hawk777 has joined #openocd
wingsorc has quit [Remote host closed the connection]
Deneb has quit [Remote host closed the connection]
Haohmaru has quit [Ping timeout: 250 seconds]
PsySc0rpi0n has quit [Quit: Leaving]
erhankur has joined #openocd
erhankur has quit [Remote host closed the connection]
sbach has quit [Remote host closed the connection]
sbach has joined #openocd
erhankur has joined #openocd
erhankur has quit [Ping timeout: 246 seconds]
zjason has quit [Read error: Connection reset by peer]
zjason has joined #openocd
pooned has joined #openocd
pooned has quit [K-Lined]
erhankur has joined #openocd
Hawk777 has quit [Quit: Leaving.]
Hawk777 has joined #openocd
nerozero has quit [Ping timeout: 245 seconds]
Hawk777 has quit [Quit: Leaving.]
PlasmaHH has quit [Ping timeout: 264 seconds]
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
erhankur has quit [Remote host closed the connection]