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 joined #openocd
tsal_ has quit [Ping timeout: 272 seconds]
noarb has quit [Quit: ZNC 1.8.2 - https://znc.in]
noarb has joined #openocd
noarb is now known as Guest2781
Guest2781 has quit [Changing host]
Guest2781 has joined #openocd
nerozero has joined #openocd
Hawk777 has joined #openocd
Guest2781 is now known as noarb
en-sc has joined #openocd
en-sc has quit [Ping timeout: 240 seconds]
Haohmaru has joined #openocd
Hawk777 has quit [Quit: Leaving.]
lxsameer has joined #openocd
<Haohmaru> hm, so when i flash SAMD20, openocd nicely prints flashing speed (KB/sec) and also verification speed
<Haohmaru> but when i flash SAME51 - no such stats
<gamiee> Haohmaru : does it use same flash bank driver?
<Haohmaru> *shrug*
<Haohmaru> those are different families of chips, cortex-M0+ vs cortex-M4F
urja has quit [Read error: Connection reset by peer]
<Haohmaru> if that says anything
urja has joined #openocd
<gamiee> no no, I mean which flash bank driver it uses. It's specified in TCL config. Maybe it uses different drivers, and the second one does not provide moe stats.
<karlp> that... doesn't sound right, it's not part of the flash driver lyaer at all.
<karlp> do you have some logs of both?
<gamiee> karlp: it's likely, although, I am not sure which exact stats Haohmaru means.
<karlp> no, I mean, neither the at91samd.c or the atsame.c files have speed stuff in them, and why on earth would we want speed calculations done differently for differetn flash targets anyway?
<gamiee> true
<PaulFertser> Clearly Haohmaru is doing something weird there ;)
<karlp> like src/target/target.c uses the common shared duartion_start() stuff in "load image"
<Haohmaru> i'll reply in a bit (phone-call)
<karlp> um, it loks like you don't get the stats if it failed to flash? :)
<Haohmaru> flashing works every time
<karlp> what are you commands?
<karlp> same in src/flash/nor/tcl.c, you only get the stats if if succeeded.
<karlp> I agree that if thats the case, you're not being presented errors though!
<karlp> are you using the same commands on each?
<karlp> it looks completely different
<Haohmaru> the two scripts i use: https://paste.debian.net/hidden/c1087c97/
<Haohmaru> the same5x version also doesn't mention the .elf being flashed (i don't mind that, just saying that the output looks different)
<Haohmaru> seeing the flashing/verify speed is useful
<PaulFertser> Haohmaru: the second output clearly comes from "program" helper.
<PaulFertser> (which is actually the recommended way to flash)
<Haohmaru> oh wait, i think i took the wrong script
<PaulFertser> If it's intended to suppress statistics is an open question.
<Haohmaru> on the same5x i forgot i'm flashing the bootloader, and in that script i do use a "program" command
<Haohmaru> so that explains
<Haohmaru> excuse me
<PaulFertser> np, but a question about stats in "program" might actually be important.
<Haohmaru> i seem to remember that maybe one of you had told me to change my fugly script to use "program" command
<Haohmaru> which probably means that most of you use this command too
<Haohmaru> wouldn't you be seeing the lack of stats then?
<PaulFertser> Probably the helper should capture and echo the flash write_image and verify_image outputs.
<PaulFertser> Yes, stats are not visible with "program", guess nobody really bothered.
<Haohmaru> aww
<Haohmaru> so i changed back to my older version of the script, and now it prints the stats, thanks
<karlp> why the extra sh -c layer?
<karlp> I use load from gdb, and gdb shows stats.
<Haohmaru> i don't remember
<Haohmaru> i think i stole this from somewhere and butchered it to make it work for my scenario
<Haohmaru> but i also don't schprachen ze .sh
<Haohmaru> the point of this script is to be simple to use, including on another computer with "debian" or so, with simple instructions
<karlp> your funciton flash can just delete the "sh -c" section and all the quoting.
<Haohmaru> "get a debian, get these files, install this program called 'openocd', run this script with these params ..."
<karlp> just... run ${OOCD}
<karlp> you've added a lot of '"''"'"?''"?'" noise for no gain.
<Haohmaru> *shrug*
<karlp> well, you get an extra indend in your process tree from the extra shell ;)
<karlp> that's always a plus :)
<Haohmaru> <even_bigger_shrug.jpg>
en-sc has joined #openocd
en-sc has quit [Remote host closed the connection]
en-sc has joined #openocd
Haohmaru has quit [Quit: saionara]
en-sc has quit [Remote host closed the connection]
lxsameer has quit [Ping timeout: 260 seconds]
nerozero has quit [Ping timeout: 245 seconds]
lxsameer has joined #openocd
lxsameer has quit [Ping timeout: 268 seconds]
lxsameer has joined #openocd
lxsameer has quit [Ping timeout: 252 seconds]
joconor has quit [Quit: ZNC 1.8.2 - https://znc.in]
joconor has joined #openocd
thelounge4766 has joined #openocd
thelounge4766 has quit [Quit: The Lounge - https://thelounge.chat]