NishanthMenon changed the topic of #openocd to: this is the place to discuss all things OpenOCD | Logs: https://libera.irclog.whitequark.org/openocd/
sud has quit [Ping timeout: 276 seconds]
sud has joined #openocd
tsal has quit [Ping timeout: 260 seconds]
thinkfat has joined #openocd
thinkfat_ has quit [Ping timeout: 248 seconds]
tsal has joined #openocd
Hawk777 has quit [Quit: Leaving.]
gruetzkopf has quit [Ping timeout: 252 seconds]
gruetzkopf has joined #openocd
indy has quit [Ping timeout: 260 seconds]
Hawk777 has joined #openocd
indy has joined #openocd
michalkotyla has quit [Quit: michalkotyla]
nerozero has joined #openocd
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
Hawk777 has quit [Quit: Leaving.]
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
Haohmaru has joined #openocd
michalkotyla has joined #openocd
Bugies has joined #openocd
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]
erhankur has joined #openocd
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]
erhankur has joined #openocd
erhankur_ has joined #openocd
erhankur has quit [Ping timeout: 248 seconds]
Bugies has quit [Ping timeout: 248 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 joined #openocd
erhankur has quit [Read error: Connection reset by peer]
erhankur_ has quit [Read error: Connection reset by peer]
erhankur has joined #openocd
barath has joined #openocd
Guest55 has joined #openocd
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]
erhankur has joined #openocd
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
Guest55 has quit [Quit: Client closed]
jmp0 has quit [Remote host closed the connection]
jmp0 has joined #openocd
akaWolf has quit [Ping timeout: 248 seconds]
akaWolf has joined #openocd
Bugies has joined #openocd
merethan has joined #openocd
<merethan> Hi all
<PaulFertser> Hi
<merethan> I'm flashing my STM32L082CZ using openocd -f interface/stlink.cfg -f target/stm32l0.cfg and fail to program the second flash bank. For some reason ST decided to have 192kb program flash in two banks. Openocd does report (detect/probes) there being two banks but flash erase_sector 2 16 31 fails because flash bank 1 does not exist.
<merethan> Flashing my program (whichis over 96kb in size) a;so fails.
<merethan> Both banks are continuous in the memory space though.
<merethan> Is this a bug, lacking feature or am I doing dumb shit?
<PaulFertser> merethan: if you're running current master already I'd check gerrit for message:STM32L08 , there might be a patch pending there.
<PaulFertser> merethan: most probably a lacking feature.
<merethan> I have Open On-Chip Debugger 0.11.0-rc2 btw, because that's what comes with Debian.
<PaulFertser> merethan: building from sources is usually easy.
<PaulFertser> merethan: https://review.openocd.org/q/message:STM32L08 doesn't show anything so I guess you have to extend the flashing driver yourself.
<merethan> Fuck me
<PaulFertser> Or probably just define the second bank in config, I have no idea really.
<PaulFertser> OpenOCD is rather simple in the part that handles flash.
<PaulFertser> merethan: also, several people from ST contribute directly so you can probably expect a bug report (if you file one) to be handled by them.
<merethan> Yeah I'll figure it out. Thing is this issue comes in while having other priorities.
<merethan> Ah, that's handy
<PaulFertser> You can consider flashing via bootloader and debugging via SWD.
<PaulFertser> For the time being.
<merethan> You mean I should open a bug at openocd or send on to ST Paul?
<PaulFertser> At openocd.
<merethan> Will do
<merethan> I have no bootloader btw, because I nuked all the flash :P
<merethan> Although I did pick up on something embedded from the factory in the manual. But so far I assumed that to be just something somewhere at the start/end of flash.
<karlp> no, it's in rom.
<karlp> consider jsut "openocd -f interface/stlink.cfg -f target/stm32l0_dual_bank.cfg"
<karlp> that's been there for a while, might be all you need.
<karlp> which is basically "just define the second bank in config" just like paul said earlier, but done for you :)
<merethan> lol
<karlp> (it's been in the repo since 2017 fwiw...)
<karlp> and like jan 2017, not dec 2017 :)
<merethan> All the typing & account making, password managers etc...
<merethan> lol just fine karlp
<merethan> We'll see how my ticket gets classified.
<merethan> Perhaps I did dumb shit by not doing target/stm32l0_dual_bank.cfg, maybe that file is a workaround waiting for a fix.
Hawk777 has joined #openocd
<karlp> aiui, this is a a "works as designed" even though IMO it's a "works dumb"
<karlp> there's _dual_bank.cfg files for ~all the st parts, I don't see it getting fixed via a bug report that it didn't work for you I'm afraid...
<karlp> IMO, we shouldn't even need to say _which_ stm32 it is, but that starts upseting the status quo.... ;)
Getty4 has joined #openocd
Getty has quit [Quit: Ping timeout (120 seconds)]
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
merethan has quit [Quit: Leaving]
Haohmaru has quit [Remote host closed the connection]
ianstcdns has joined #openocd
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
kraiskil has joined #openocd
erhankur has quit [Ping timeout: 258 seconds]
akaWolf has quit [Ping timeout: 246 seconds]
erhankur has joined #openocd
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
sbach_ has joined #openocd
ianstcdns has quit [Quit: Client closed]
indy_ has joined #openocd
tchebb_ has joined #openocd
tsal_ has joined #openocd
m has joined #openocd
kraiskil has quit [*.net *.split]
indy has quit [*.net *.split]
tsal has quit [*.net *.split]
sbach has quit [*.net *.split]
tomtastic has quit [*.net *.split]
Teufelchen1 has quit [*.net *.split]
urja has quit [*.net *.split]
tchebb has quit [*.net *.split]
sbach_ is now known as sbach
Teufelchen1 has joined #openocd
tomtastic has joined #openocd
Teufelchen1 has quit [Ping timeout: 246 seconds]
akaWolf has joined #openocd
urja has joined #openocd
Teufelchen1 has joined #openocd
doelie_ has joined #openocd
Bertl_ has joined #openocd
renrelkha_ has joined #openocd
m has quit [Remote host closed the connection]
bencoh_ has joined #openocd
marex_ has joined #openocd
bacam_ has joined #openocd
Steffann has joined #openocd
marex has quit [*.net *.split]
Steffanx has quit [*.net *.split]
doelie has quit [*.net *.split]
diddly has quit [*.net *.split]
bacam has quit [*.net *.split]
bencoh has quit [*.net *.split]
renrelkha has quit [*.net *.split]
Bertl has quit [*.net *.split]
diddly has joined #openocd
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
nerozero has quit [Ping timeout: 260 seconds]
marex_ is now known as marex
marex has quit [Quit: leaving]
marex has joined #openocd
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
bacam_ is now known as bacam
sbach has quit [Read error: Connection reset by peer]
sbach has joined #openocd
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
Bugies has quit [Ping timeout: 248 seconds]
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd