NishanthMenon changed the topic of #openocd to: this is the place to discuss all things OpenOCD | Logs: https://libera.irclog.whitequark.org/openocd/
tsal has quit [Ping timeout: 268 seconds]
tsal has joined #openocd
Hawk777 has joined #openocd
Hawk777 has quit [Quit: Leaving.]
wingsorc__ has joined #openocd
tsal_ has joined #openocd
tsal has quit [*.net *.split]
wingsorc has quit [*.net *.split]
PsySc0rpi0n has quit [*.net *.split]
ttmrichter has quit [*.net *.split]
PsySc0rpi0n has joined #openocd
bobsy has quit [Ping timeout: 248 seconds]
ttmrichter has joined #openocd
crabbedhaloablut has quit [Remote host closed the connection]
crabbedhaloablut has joined #openocd
bobsy has joined #openocd
bobsy has quit [Ping timeout: 260 seconds]
Haohmaru has joined #openocd
akaWolf has quit [Ping timeout: 268 seconds]
ormaaj has quit [Quit: Bridge terminating on SIGTERM]
Jybz[m] has quit [Quit: Bridge terminating on SIGTERM]
barath has quit [Quit: Bridge terminating on SIGTERM]
LinuxHackerman has quit [Quit: Bridge terminating on SIGTERM]
shoragan[m] has quit [Quit: Bridge terminating on SIGTERM]
maribu[m] has quit [Quit: Bridge terminating on SIGTERM]
Jybz[m] has joined #openocd
merethan_ has joined #openocd
shoragan[m] has joined #openocd
LinuxHackerman has joined #openocd
ormaaj has joined #openocd
barath has joined #openocd
maribu[m] has joined #openocd
wingsorc__ has quit [Ping timeout: 252 seconds]
LinuxHackerman has quit [Ping timeout: 248 seconds]
shoragan[m] has quit [Ping timeout: 252 seconds]
ormaaj has quit [Ping timeout: 256 seconds]
Jybz[m] has quit [Ping timeout: 256 seconds]
maribu[m] has quit [Ping timeout: 264 seconds]
barath has quit [Ping timeout: 264 seconds]
diddly has quit [Quit: leaving]
diddly has joined #openocd
merethan_ has quit [Remote host closed the connection]
merethan_ has joined #openocd
maribu[m] has joined #openocd
Jybz[m] has joined #openocd
barath has joined #openocd
shoragan[m] has joined #openocd
LinuxHackerman has joined #openocd
wingsorc has joined #openocd
Guest85 has joined #openocd
<Guest85> Hello, I was wondering if this was the right place to discuss an issue I'm having while using openOCD to flash a chip?
ormaaj has joined #openocd
<Haohmaru> it's definately not the wrong place
<Guest85> I'm currently trying to recover a bricked Quicklogic thing plus from Sparkfun, following this guide: https://forum.quicklogic.com/viewtopic.php?t=29. However I'm trying to use a STLink v2 with openOCD instead of a JLink. I can debug the board, but when I try to program it, the programmer cannot restart the board after writing to it.
Guest85 has quit [Ping timeout: 260 seconds]
Guest85 has joined #openocd
<PaulFertser> Guest85: hi
<PaulFertser> Guest85: please use some pastebin to show logs
<PaulFertser> Along with the full invocation command line.
merethan_ has quit [Remote host closed the connection]
merethan_ has joined #openocd
wingsorc has quit [Quit: Leaving]
<Guest85> sudo openocd --debug -f interface/stlink.cfg -f target/eos_s3.cfg -c "program /home/joris/Uni/Scriptie/qorc-sdk/Initial-binaries/qf_loadflash.bin 0x0 exit"
<Guest85> The result is the exact same when using board/quickfeather_quicklogic.cfg
akaWolf has joined #openocd
akaWolf has quit [Ping timeout: 252 seconds]
akaWolf has joined #openocd
PsySc0rpi0n has quit [Ping timeout: 248 seconds]
PsySc0rpi0n has joined #openocd
<PaulFertser> Guest85: ok, looking
<Guest85> Thanks!
<nohit> could it be that stlink doesnt work because it doesnt implement all the SWD functions, just a subset
<nohit> im just guessing here
<nohit> but i learned that some time ago
<PaulFertser> nohit: stlink in dap mode works more reasonable
<PaulFertser> Guest85: do you have reset line connected between the target and stlink?
<Guest85> Yes
<Guest85> The stlink goes to a 20 to 10 JTAG adapter, which goes to a JTAG cable to the board
<PaulFertser> Guest85: try the same with it disconnected please. I suspect something might be pulling reset low.
<PaulFertser> Guest85: btw, instead of "program" you can try just starting openocd, connecting via telnet and doing "halt", does that work?
<Guest85> sudo openocd --debug -f interface/stlink.cfg -f target/eos_s3.cfg -c "program /home/jori
<Guest85> s/Uni/Scriptie/qorc-sdk/Initial-binaries/qf_loadflash.bin 0x0 exit"
<Guest85> I will now try your second suggestion, the above is without rst connected
<Guest85> Please disregard the above pastebin, I have made a configuration error there
<Guest85> That one is correct
<Guest85> I have connected with gdb-mutliarch over telnet, however halt is an undefined command, do I need to connect in a different way?
<PaulFertser> Guest85: without reset line it's working much better. Is that consistent?
<PaulFertser> Guest85: now the problem is different. Where did you get target/eos_s3.cfg from , is that in upstream OpenOCD?
<Guest85> Yes it's from the upstream OpenOCD
akaWolf has quit [Ping timeout: 252 seconds]
<PaulFertser> Guest85: but it doesn't define any flash!
<PaulFertser> And for programming internal flash you need not only the right config but also a suitable flash driver in OpenOCD.
<Guest85> To prevent misunderstandings, this is the contents of the file
<PaulFertser> Guest85: nobody told OpenOCD how to flash that target
<Guest85> Could you help me with the right configurations? My knowledge with openOCD is very limited
<PaulFertser> Guest85: the problem isn't the configuration really. The problem is the flash driver. Do you think one has ever written it for OpenOCD?
<PaulFertser> Or is it probably just a clone of some other MCU?
<Guest85> I don't know if one has been written for the eos_s3, however I do think it's suspicious that they have published it on their upstream without verifying its functionality
Haohmaru has quit []
<Guest85> The original version of this bord, the Quicklogic Quickfeather has extensive documentation and includes a copy of openOCD in it's git, making me believe that it has worked at some point
<PaulFertser> Guest85: that upstream config is for debugging.
<Guest85> Ah okay
<Guest85> I also see that the install script envsetup.sh downloads openocd, thus it's not in the git
<Guest85> Do you have an idea what I can do to solve this problem? Or am I forced to find/use a Jlink
<PaulFertser> Guest85: jlink won't help unless you are ready to use proprietary jlink software too.
<PaulFertser> Guest85: you can probably write a flash driver for OpenOCD if the datasheet gives you enough details.
<Guest85> Unfortunately, I don't have enough knowledge to write such a driver.
<PaulFertser> OpenOCD with jlink will work exactly the same as stlink in this case.
<Guest85> Is it difficult to write such a driver?
<karlp> I thought I saw eos stuff on gerrit a while ago...
<karlp> board config for quickfeather too.
<Guest85> Do I just put those files in the correct directories and remake openocd?
akaWolf has joined #openocd
<karlp> push the download button and choose the form that suits your development best.
<karlp> then report success/failure on it, so it can maybe progress a bit
akaWolf has quit [Ping timeout: 260 seconds]
<PaulFertser> Guest85: yes, you should try that patch.
akaWolf has joined #openocd
<Guest85> I'm now getting this error: Error: Debug adapter doesn't support 'hal_swd' transport
PaulFertser has quit [Read error: Connection reset by peer]
<Guest85> This was a small typo, after changing it to hla_swd, I got the following:
PaulFertser has joined #openocd
<Guest85> I have also tried it with a reconnected rst pin, this gives:
<Guest85> During my search, I read only that for some boards reset_config none was required, this gives a different error:
Guest85 has quit [Quit: Client closed]
Guest85 has joined #openocd
<PaulFertser> Guest85: the last log is sensible. The flash driver doesn't recognise your target for whatever reason.
<PaulFertser> Guest85: you'd need to read the datasheet for the target and the flash driver source.
crabbedhaloablut has quit [Quit: No Ping reply in 180 seconds.]
crabbedhaloablut has joined #openocd
<Guest85> I fear that I'm not proficient enough to comprehend your proposed solution. I think my best luck will be finding a J-Link EDU and using their proprietary software
<PaulFertser> Guest85: there're cheap jlink clones available too.
<Guest85> I think I will go for that solution. Many thanks for all your help PaulFertser and have a nice day!
<PaulFertser> Guest85: most probably you can find something at the nearest "hackspace"
<Guest85> Thanks again!
Guest85 has quit [Quit: Client closed]
merethan_ has quit [Ping timeout: 246 seconds]
<karlp> that probably needed _very_ little extra work, boo.
<karlp> though, id 0 for the flash device id looks rough
<karlp> it's interesting hardware, I've justnever had the use for it.
PaulFertser has quit [Ping timeout: 246 seconds]
PaulFertser has joined #openocd
akaWolf has quit [Ping timeout: 264 seconds]
zjason` has joined #openocd
zjason has quit [Ping timeout: 248 seconds]
jancoow has quit [Remote host closed the connection]