emacs_pprentice_ has quit [Ping timeout: 246 seconds]
wingsorc has joined #openocd
wingsorc has quit [Client Quit]
Hawk777 has joined #openocd
crabbedhaloablut has joined #openocd
tsal has quit [Ping timeout: 256 seconds]
tsal has joined #openocd
diddly has quit [Ping timeout: 246 seconds]
diddly has joined #openocd
nerozero has joined #openocd
nerozero has quit [Remote host closed the connection]
nerozero has joined #openocd
Hawk777 has quit [Quit: Leaving.]
braunr has quit [Remote host closed the connection]
Haohmaru has joined #openocd
braunr has joined #openocd
merethan has joined #openocd
tsal has quit [Quit: ZNC 1.6.5+deb1+deb9u2 - http://znc.in]
tsal has joined #openocd
marekvrbka has joined #openocd
tsal has quit [Quit: ZNC 1.6.5+deb1+deb9u2 - http://znc.in]
<marekvrbka>
Maybe this is fixed in regular OpenOCD, but I found an odd behavior. When using load_image or verify_image with file of size 4 or 8 bytes. It does not respond and nothing happens.
<marekvrbka>
This was on the RISC-V fork of OpenOCD, maybe its fixed in the upstream
<marekvrbka>
Ok, so I digged into the source code and found out that OpenOCD requires the program binary to be at least 9 bytes
<marekvrbka>
In image.c:52
<marekvrbka>
I can submit a patch which instead sets the image type as binary if not enough bytes could be read.
<marekvrbka>
Should I do that?
tsal has joined #openocd
<karlp>
for my own curiousity, what are you loading that's that size?
<marekvrbka>
Small testing programs. This was basically just a nop and a jump to itself. Need them for testing
<phr3ak>
is there any command to put a string to memory or do you know a script that would utilize mwb command to do this?
<marekvrbka>
That is very easy with GDB, but with tcl, no idea
<phr3ak>
I could not do this easily with GDB
<phr3ak>
I used array like {'H', 'e', 'l', 'l', 'o' } and it is painful
<phr3ak>
and would be better to do this in openocd
<marekvrbka>
Try:
<marekvrbka>
p value="Hello"
<phr3ak>
set (char[6])*0x20000000="hello"
marekvrbka has quit [Quit: Leaving]
m__b has joined #openocd
Hawk777 has joined #openocd
<m__b>
Hi all, I'm trying to debug the second core of a dual-core chip (stm32h7x5), but I'm having some trouble getting it to work, and I'm not sure where to look next.
<m__b>
cpu0 debugging works great, so openocd is working, I think I'm just missing some config somewhere, but I'm not sure what's missing.
<borneoa___>
m__b: are you using stlink?
<m__b>
Yep, stlink v3
<m__b>
I'm attempting to debug Zephyr on the M4 core if it makes a difference :)
<merethan>
High-five!
<merethan>
I'm still writing up my own build system though. No running yet.
merethan has quit [Ping timeout: 252 seconds]
<borneoa___>
m__b: stlink can work with hla transport that only access the first AP ( thus only first core) and dap_direct transport that can access both. Check your config file
<borneoa___>
m__b: the other possible issue is that that first core is in charge of starting the second. Maybe the second core is still not accessible. I don't know what should be done in this case as I never used these devices
zjason has joined #openocd
<m__b>
That's fair. I've found the dap_direct setting and have been messing with my config to see if I can get something up and running. I have firmware on core 0 that should set up the clocks, but maybe there's more there to figure out. Thanks for the suggestions!
Haohmaru has quit [Ping timeout: 248 seconds]
m__b has quit [Quit: Client closed]
nerozero has quit [Ping timeout: 250 seconds]
tlwoerner has quit [Read error: Connection reset by peer]
tlwoerner has joined #openocd
m__b has joined #openocd
gzlb has quit [Ping timeout: 246 seconds]
gzlb has joined #openocd
m__b has quit [Quit: Client closed]
Hawk777 has quit [Ping timeout: 246 seconds]
Hawk777 has joined #openocd
gsus_ has quit [Remote host closed the connection]
Willy-- has joined #openocd
Willy-- has quit [Remote host closed the connection]