NishanthMenon changed the topic of #openocd to: this is the place to discuss all things OpenOCD | Logs: https://libera.irclog.whitequark.org/openocd/
Hawk777 has quit [Quit: Leaving.]
damex has joined #openocd
uartist has joined #openocd
Hawk777 has joined #openocd
crabbedhaloablut has joined #openocd
nerozero has joined #openocd
defiant has joined #openocd
indy_ is now known as indy
borneoa___ has joined #openocd
jancoow has quit [Ping timeout: 246 seconds]
jancoow has joined #openocd
zkrx has quit [Ping timeout: 245 seconds]
Hawk777 has quit [Quit: Leaving.]
Haohmaru has joined #openocd
russ has quit [Ping timeout: 252 seconds]
zkrx has joined #openocd
russ has joined #openocd
zkrx has quit [Ping timeout: 246 seconds]
zkrx has joined #openocd
merethan has joined #openocd
Duality has joined #openocd
<Duality> hey all
<Duality> I am having an issue trying to flash a rp2040 using openocd
<Duality> I am using a segger jlink and this command is find it start it listens says it found the core: src/openocd -f interface/jlink.cfg -c "transport select swd" -c "adapter speed 1000" -c "bindto 0.0.0.0" -f target/rp2040.cfg -s tcl
<PaulFertser> Duality: hi
<PaulFertser> Duality: I suggest you use some pastebin to show full logs
<Duality> but this command won't work for some reason: src/openocd -f interface/jlink.cfg -c "transport select swd" -c "adapter_khz 6000" -f target/rp2040.cfg -c "program blink.elf reset exit"
<PaulFertser> The command looks sane, I'd need to say the log to probably tell something useful.
<Duality> where does openocd store its logs
<Duality> i also tried -c "log_output /tmp/openocd.log" this is what it says: https://termbin.com/zqw1o
<PaulFertser> Duality: stdout is ok, you just copy from your terminal emulator.
<PaulFertser> Duality: you've forgotten -s tcl I guess
<PaulFertser> Duality: since you're running from source tree and not installing it the regular way.
<Duality> do you need that even to just flash it
<PaulFertser> Duality: how is it supposed to find any config files when it's not installed to the destination location?
<Duality> at the bottom here is the command I copied it's not using -s tcl https://interruptlabs.ca/2022/03/08/Flashing-the-RP2040-with-a-Jlink-and-OpenOCD/
<PaulFertser> Duality: that's not official OpenOCD documentation.
<PaulFertser> I can not do anything about it.
<Duality> well adding -s tcl worked though it says programming finished
<Duality> I understand now
<Duality> i read the help for -s
<Duality> xD makes a lot of sense why it didn't work ...
<PaulFertser> :)
gzlb has quit [Ping timeout: 246 seconds]
gzlb has joined #openocd
<Duality> I am actually not sure if it did flash the device it does say the following several times: https://termbin.com/cxow
<karlp> add a verify to that program command...
<karlp> there's no errors there though,
<karlp> running loader stubs resultsin stopping/starting cores a bit though.
<Duality> verify failed
<Duality> says target was in unknonw state and had an error executing cortex_m crc algorithm
<Duality> it also says it could not read memory at 0x10000234
<Duality> memory is an external spi flash chip,would this indicate a issue with that, or could it ?
<Duality> i lowered the speed now I get the following: https://termbin.com/7pg8
gzlb has quit [Ping timeout: 240 seconds]
gzlb has joined #openocd
Hawk777 has joined #openocd
silurian_invader has quit [Ping timeout: 240 seconds]
Haohmaru has quit [Ping timeout: 245 seconds]
Hawk777 has quit [Ping timeout: 260 seconds]
Hawk777 has joined #openocd
gzlb has quit [Ping timeout: 246 seconds]
merethan has quit [Ping timeout: 246 seconds]
gzlb has joined #openocd
nerozero has quit [Ping timeout: 260 seconds]
silurian_invader has joined #openocd
key2 has joined #openocd
crabbedhaloablut has quit []
Hawk777 has quit [Quit: Leaving.]
tsal has joined #openocd
tsal has quit [Ping timeout: 244 seconds]