NishanthMenon changed the topic of #openocd to: this is the place to discuss all things OpenOCD | Logs: https://libera.irclog.whitequark.org/openocd/
c4017w_ has joined #openocd
c4017w__ has quit [Ping timeout: 272 seconds]
HelloShitty has quit [Ping timeout: 256 seconds]
c4017w__ has joined #openocd
c4017w_ has quit [Ping timeout: 256 seconds]
thinkfat_ has quit [Ping timeout: 240 seconds]
jybz has quit [Excess Flood]
thinkfat_ has joined #openocd
jybz has joined #openocd
tsal has quit [Ping timeout: 268 seconds]
c4017w_ has joined #openocd
tsal has joined #openocd
c4017w__ has quit [Ping timeout: 240 seconds]
Krazubu has joined #openocd
Krazubu has quit [Client Quit]
c4017w__ has joined #openocd
c4017w_ has quit [Ping timeout: 256 seconds]
c4017w_ has joined #openocd
c4017w__ has quit [Ping timeout: 256 seconds]
Bertl_oO is now known as Bertl_zZ
c4017w__ has joined #openocd
indy has quit [Ping timeout: 272 seconds]
c4017w_ has quit [Ping timeout: 256 seconds]
sbach has quit [Read error: Connection reset by peer]
sbach has joined #openocd
nerozero has joined #openocd
c4017w_ has joined #openocd
c4017w__ has quit [Ping timeout: 240 seconds]
keshav has joined #openocd
Steffanx has joined #openocd
indy has joined #openocd
c4017w__ has joined #openocd
c4017w_ has quit [Ping timeout: 256 seconds]
Krazubu has joined #openocd
Haohmaru has joined #openocd
c4017w_ has joined #openocd
c4017w__ has quit [Ping timeout: 256 seconds]
HelloShitty has joined #openocd
Krazubu has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
erhankur has joined #openocd
c4017w__ has joined #openocd
c4017w_ has quit [Ping timeout: 256 seconds]
erhankur has quit [Quit: Client closed]
erhankur has joined #openocd
erhankur_ has joined #openocd
erhankur has quit [Quit: Client closed]
erhankur_ is now known as erhankur
c4017w_ has joined #openocd
c4017w__ has quit [Ping timeout: 256 seconds]
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
c4017w__ has joined #openocd
c4017w_ has quit [Ping timeout: 240 seconds]
keshav has quit [Quit: Client closed]
Bertl_zZ is now known as Bertl
c4017w_ has joined #openocd
<Bertl> greetings! I'm having a problem with erasing an STM32L0 (flash) with openocd ...
c4017w__ has quit [Ping timeout: 256 seconds]
<Bertl> programming the flash with -c "program firmware.bin verify exit" works like a charm, but only programs the flash areas covered by firmware.bin and leaves everything beyond that untouched
<Bertl> now I've tried to execute -c "stm32l0x mass_erase 0" but that fails in various ways
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
<Bertl> what am I missing here?
<Bertl> documentation states that 'program' is a script? where can I look at that script to see how 'program' handles things?
<PaulFertser> Bertl: src/flash/startup.tcl
<Bertl> ah, thanks! let me check that ...
<Bertl> hmm, okay, doesn't help to much though ... seems like it only distributes the task to the respective driver
<Bertl> -c "init" -c "reset init" -c "stm32l0x mass_erase 0"
<Bertl> fails here with:
<Bertl> Error: Error connecting DP: cannot read IDR
<Bertl> Error: Failed to read memory and, additionally, failed to find out where
<Bertl> but the chip and flash are identified correctly just before that
<Bertl> Info : Device: STM32L0xx (Cat. 2)
<Bertl> Info : STM32L flash size is 32kb, base address is 0x8000000
<karlp> init+reset init looks weird to me, can you try reset halt?
<Bertl> same result
<Bertl> -c "init" -c "reset halt" -c "stm32l0x mass_erase 0"
<karlp> andyou get that error connecting DP error? or something else?
<karlp> can you use -d3, and just use normal "-f interface/bvlah.cfg -f target/stm32l0x.cfg" and then telnet localhost 4444, and do "stm32lx mass_erase 0" ?
<karlp> it certainly sounds weird, especially if you say normal program works.
<Bertl> -c "init" -c "reset init" -c "flash erase_address 0x8000000 0x8000"
<Bertl> this also seems to work
<Bertl> but let me try with telnet
<karlp> well, erase is runnng erase differently than the "mass erase" command but it might be enough to just go "this is enough for me"
<Bertl> here is the output from telnet: https://pastebin.com/raw/GbHybVDG
<Bertl> the debug output from OpenOCD is flooded with messages about the bitbanging (with -d3) but I might be able to dig out the relevant parts
dliviu has quit [Quit: Going away]
dliviu has joined #openocd
<Bertl> seems that this strange read from 0xffffffff is the problem
<Bertl> Error: 3477 5211 arm_adi_v5.c:544 mem_ap_read(): Failed to read memory at 0xffffffff
<karlp> can you share this stm32l0_slow.cfg please?
<karlp> can you try the one with telnet with a "reset init" as well please?
<Bertl> the stm32l0_slow.cfg is the 'normal' file just with everything limited to 300kHz instead of the 2.5MHz because that caused errors
<Bertl> I'll upload a diff
<Bertl> the 'reset init' on the commandline or via telnet?
c4017w__ has joined #openocd
c4017w_ has quit [Ping timeout: 256 seconds]
<Bertl> karlp: do you need anything else? any ideas what could be the problem here?
tlwoerner_ has quit [Remote host closed the connection]
tlwoerner_ has joined #openocd
jancoow9 has joined #openocd
zjason`` has joined #openocd
Steffann has joined #openocd
c4017w_ has joined #openocd
bencoh_ has joined #openocd
tchebb_ has joined #openocd
c4017w__ has quit [Ping timeout: 245 seconds]
Steffanx has quit [*.net *.split]
zjason` has quit [*.net *.split]
jancoow has quit [*.net *.split]
zmatt has quit [*.net *.split]
tchebb has quit [*.net *.split]
bencoh has quit [*.net *.split]
jancoow9 is now known as jancoow
zmatt has joined #openocd
c4017w_ has quit [Read error: Connection reset by peer]
c4017w_ has joined #openocd
c4017w__ has joined #openocd
c4017w_ has quit [Ping timeout: 250 seconds]
<karlp> Bertl: out of my league sorry, not sure what's going on there.
sud has quit [Quit: Leaving]
<karlp> why do you need to turn down the speed? that's often a tactica if you aren't getting any response, but you said that programming still works just fine, so speed's unlikely to be an issue.
<Bertl> I think the main problem for the speed is the way the stm32 is connected (rather long cabling which doesn't do MHz speeds)
<Bertl> and yes, both the flash erase and the programming works flawlessly at the lower speeds, even works with 600kHz but I went for the 300kHz just to be safe
<Bertl> the mass_erase seems to contantly fail though when trying to read the flash status register
<Bertl> *constantly
crabbedhaloablut has quit [Remote host closed the connection]
crabbedhaloablut has joined #openocd
sud has joined #openocd
Hawk777 has joined #openocd
Bertl is now known as Bertl_oO
nerozero has quit [Ping timeout: 240 seconds]
c4017w_ has joined #openocd
c4017w__ has quit [Ping timeout: 260 seconds]
Haohmaru has quit []
<cambrian_invader> would it be possible to increase the gerrit sign-out time?
<cambrian_invader> it seems like it's only a couple of hours
<cambrian_invader> and it usually takes around ~30s to log in via SSO
nerozero 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
c4017w__ has joined #openocd
<PaulFertser> cambrian_invader: please make a poll on the mailing list
c4017w_ has quit [Ping timeout: 240 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
<cambrian_invader> PaulFertser: [POLL] in the subject?
<PaulFertser> cambrian_invader: not necessary, just explain your rationale, your proposal and ask for opinions.
<cambrian_invader> ok, thanks
nerozero has quit [Ping timeout: 252 seconds]
c4017w_ has joined #openocd
c4017w__ has quit [Ping timeout: 256 seconds]
c4017w__ has joined #openocd
c4017w_ has quit [Ping timeout: 256 seconds]
nadrian has joined #openocd
<erhankur> How can I handle semihosting events SEMIHOSTING_USER_CMD_0x100 ... SEMIHOSTING_USER_CMD_0x107 inside c function ? As I understand we can register and handle events with tcl scripts. But some events can be handled with c function. like HALT, GDB_DETACH
<erhankur> gdb server call this -- target_call_event_callbacks(target, TARGET_EVENT_GDB_DETACH);
<erhankur> where is the registration part?
<erhankur> I can catch this event even didn't register to it.
c4017w_ has joined #openocd
c4017w__ has quit [Ping timeout: 240 seconds]
Steffann has quit [Quit: Whop whop]
Steffanx has joined #openocd
c4017w__ has joined #openocd
c4017w_ has quit [Ping timeout: 272 seconds]
Krazubu has joined #openocd
c4017w_ has joined #openocd
c4017w__ has quit [Ping timeout: 256 seconds]
Krazubu has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
Krazubu has joined #openocd
Krazubu has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]