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 joined #openocd
noarb has quit [Quit: ZNC 1.8.2 - https://znc.in]
noarb has joined #openocd
joconor has quit [Quit: ZNC 1.8.2 - https://znc.in]
joconor has joined #openocd
Foxyloxy_ has joined #openocd
joconor has quit [Quit: ZNC 1.8.2 - https://znc.in]
gamiee has quit [Remote host closed the connection]
HelloShitty has quit [Ping timeout: 252 seconds]
Foxyloxy has quit [Ping timeout: 252 seconds]
gamiee has joined #openocd
juri_ has quit [Ping timeout: 252 seconds]
joconor has joined #openocd
HelloShitty has joined #openocd
juri_ has joined #openocd
cozycactus has quit [Quit: Connection closed for inactivity]
PlasmaHH has joined #openocd
Hawk777 has quit [Quit: Leaving.]
gpol has quit [Ping timeout: 248 seconds]
nerozero has joined #openocd
gpol has joined #openocd
Haohmaru has joined #openocd
slobodan has joined #openocd
crabbedhaloablut has quit []
crabbedhaloablut has joined #openocd
vampirefrog has quit [Ping timeout: 260 seconds]
slobodan has quit [Remote host closed the connection]
* PlasmaHH wishes the nucleo boards had remote power cycle features
<PaulFertser> To power-cycle stlink on it?
<PlasmaHH> no to power cycle the STMU5A5
<PaulFertser> I'm trying to download cubeide from st.com for the first time in my life (my father wants to try using vendor tools). It's rage inducing on so many levels that it's hard to believe. It starts with st.com loaded with JS disabled gives me a cookie that makes the website not answer at all after I enable JS for it. And then it continues with more nonsense. Absolute bonkers, insane and disgusting.
<PaulFertser> PlasmaHH: what part of the target MCU behaves differently for you with POR compared to external reset line?
<PlasmaHH> PaulFertser: accessing any TPIU register when the trace enable bit is not set locks up the mcu
<PaulFertser> PlasmaHH: and it doesn't recover even with external reset line pulsed?
<PlasmaHH> correct
<PaulFertser> :/
<PlasmaHH> is the same among all STM32 I had access to ..
<PaulFertser> Hm so the watchdog would not be able to recover it from this state either? So you can in software lock the MCU in a way that no watchdog can recover it?
<PlasmaHH> correct again
<PlasmaHH> and that all by trying to read some data
<PaulFertser> Errata-worthy stuff
<PlasmaHH> according to ST this works as intended
<Haohmaru> sometimes i slap a mains power extender thing on the desk, one that has an ON/OFF switch
<PlasmaHH> documentation seems to somewhere say that before accessing TPIU registers you need to enable that bit
<PlasmaHH> Haohmaru: yeah have plenty of that stuff but the nucleo boards are connected to the pc via usb... so I would need some remote switchable usb port
<PlasmaHH> of course I could somehow configure the board witht hat power measurement jumper and slap a relay in there ^^
<PlasmaHH> but usually I dont remember to do any of that before it happens at least once ;)
<Haohmaru> does it transfer data thru that USB?
<PlasmaHH> yeah, its the stlink debugger connection
<Haohmaru> meh, that'd suck
<Haohmaru> that's why i prefer having a stand-alone debugger
<PlasmaHH> Haohmaru: that doesnt help much if the desk is 30km away ;)
<karlp1> (this is why i built a usb hub with per port power switching)
<Haohmaru> .../razklonitel-s-klyuch-3-gnezda-i-30-km-kabel.jpg
<Haohmaru> karlp1, this is why i call you mr fancy
<PlasmaHH> karlp1: remote controlled?
<karlp1> as much as your usb ports are...
<Haohmaru> but if you basically turn off the debugger via the "USB" port, the program using it (openocd) wouldn't be very happy about that
<Haohmaru> when all you wanted was to power-off the target
<PlasmaHH> Haohmaru: wouldnt have much of a problem with that
<PlasmaHH> karlp1: i.e. ususally not at all
<PaulFertser> You can use a proper USB hub where you can control per-port power.
<Haohmaru> i think a bigger problem would be the USB-serial (which is available in my daplink), when my serial port program has opened it, and the USB device goes away and then comes back - it seems linux doesn't re-enumerate it under the same /dev/path, so it turns into a different number
<PaulFertser> So talk to it via by-serial path.
<Haohmaru> my program ain't so clever
<PlasmaHH> Haohmaru: within my own programs using anything serial I try to use the serial number of the adapter if possible
<Haohmaru> i don't know about any of that, it's a "serial port lib" written by me that supposedly works on M$OS/linux/crAppleOS
<Haohmaru> very long ago
<Haohmaru> it just has enough things to open a port and send/receive data
<PlasmaHH> if its by you it should be a perfect opportunity to add that serial number feature ;)
<PlasmaHH> of course, if your usb serial adapter doesnt have a serial number...
<Haohmaru> the rest of it is wxWidgets, it looks sorta like this: https://i.imgur.com/ztSt6gP.png
<Haohmaru> well, no idea, i use a "daplink" SWD debugger which includes a virtual-serial-port in the same USB
<Haohmaru> linux enumerates it as "/dev/ttyACM0"
<PlasmaHH> look in dmesg when you connect it, when it has a serial it will tell you tehre
<Haohmaru> but when i keep it open via my program and unplug/replug the debugger - my program is sorta stuck while linux enumerates it as "/dev/ttyACM1"
<PlasmaHH> (for the remote controlled usb hub thing the funny thing is with where it is connected to, when I try to disable power with e.h. uhubctl it will lose the usb conneciton but still provide power )
<Haohmaru> doh
<Haohmaru> can you break-off the debugger part of that board?
<PlasmaHH> with a hacksaw probably :P
<Haohmaru> ehm, no then, you don't want FR4 dust ;P~
<Haohmaru> FR4 dust ain't cool
<Haohmaru> the next possible thing is potentially to find something on the board which can turn OFF the power to just the target
<PlasmaHH> as said earlier, if I had physical access and anticipate such a thing I could slap a relay board into the power path
<Haohmaru> oh, the thing is not there with you?
<Haohmaru> well..
<PlasmaHH> yeah 30km away... had to send out a coworker to reset it...
<Haohmaru> using thick enough metal rod.. cause a short circuit near the Power Plant ;P~
<PlasmaHH> ups and diesel..
<PaulFertser> PlasmaHH: consider USB hub https://github.com/mvp/uhubctl
<PaulFertser> Ah, I didn't read carefully, you're aware.
<PlasmaHH> painfully, yes
slobodan has joined #openocd
<karlp1> PlasmaHH: you wanted it to be power controllable over stlink, so ... you alreayd have that access.
<karlp1> if you have remote access to the stlink to do your desired "power cycle" you have remote access to the usb port already?
<PlasmaHH> karlp1: I dont have any means to disable the usb port power though
<karlp1> yes, you would need a suitable hub.
<karlp1> also suitable control software. linux has done some things recently where they try and disconnect the _USB_ layer, instead of the port power switching, there's conflicting goals and conflicting hardware in this space.
<PlasmaHH> karlp1: and for some apperantly some work necessary :P https://github.com/fifteenhex/diyppps/blob/master/5_after.jpg
<karlp1> it's particularly an issue wiht self powered devices, "some people" "expect" that thiings like uhubctl can reset those devices.
<karlp1> that's an extremely narrow specific type of fix.
<karlp1> you can just buy ones that do PPS...
<karlp1> if this is something you actualyl want.
<Haohmaru> mmmm, is that hot-snot on the chip?
<PlasmaHH> uv hardened glue I think
* PlasmaHH uses such stuff often for pcb mods
<PlasmaHH> the other pics on that repo show the tremendous soddering skills
<karlp1> lot of work to skip just buying a pps hub.
<PlasmaHH> 10 minutes if you know what you do vs. waiting for days until the hub is delivered...
<Haohmaru> this sort of "mod" wouldn't be 10 minutes for me x_x
<Haohmaru> i hate these kinds of things
<PlasmaHH> so you make it in 2?
<Haohmaru> nah, i'd smash it and build another one ;P~
<PlasmaHH> I have no idea why they removed part of the chip...
<Haohmaru> a collegue here used to do similar kinds of mods, using 0.112mm coated wire (that's used for making coils)
<Haohmaru> i don't have the eyeballs nor the patience for this kind of sh*t
<PlasmaHH> yeah I once had to solder a few of these in dead bug configuration: https://github.com/fifteenhex/diyppps/blob/master/5_after.jpg
<PlasmaHH> nah wrong link
* PlasmaHH fails even at copypasta today
slobodan has quit [Read error: Connection reset by peer]
slobodan has joined #openocd
<karlp1> they ground off the chip to have bigger pads to solder onto.
<karlp1> it's clearly osmeone who reworks a lot :)
<karlp1> waiting days for hte hub to arrive vs ordering the parts you actually need and can rely on being repeatable vs having joerework custom make for everything :)
<Haohmaru> 1) order proper hub. 2) get a pepsi. 3) open the pepsi. 4) drink the pepsi
<PlasmaHH> karlp1: sometimes people need to get shit done first and can then wait for the proper solution to arrive later
slobodan has quit [Remote host closed the connection]
<karlp1> the way you presented that solution seemed like that was something you felt should be done, but maybe I just misinterpreted :)
<Haohmaru> this won't be a problem when they invent the teleport... and/or the time machine ;P~
slobodan has joined #openocd
<PlasmaHH> Haohmaru: if they then also prevent aging I could be able to do stuff in 1024 parallel threads
PlasmaHH_ has joined #openocd
PlasmaHH has quit [Ping timeout: 255 seconds]
Foxyloxy_ has quit [Quit: Textual IRC Client: www.textualapp.com]
Foxyloxy has joined #openocd
nerozero has quit [Ping timeout: 248 seconds]
vampirefrog has joined #openocd
PlasmaHH_ is now known as PlasmaHH
Haohmaru has quit [Quit: saionara]
Hawk777 has joined #openocd
<zapb__> sys64738, saml11 behaves as expected here, you cannot flash because there is no flash driver implemented
<sys64738> that I gathered, but I wouldn't expect it to choke on *trying to reset the CPU*
<sys64738> (similarly, trying a "reset halt" command fails as well)
* PlasmaHH wonders why he needs always two attempts to load in gdb ...
<PlasmaHH> So funny thing... I wonder if anyone can guess what happened... I have an STM32U5A5 nucleo and playing with SWO on it and have some data output in regular intervals which outputs fine, and some data that is triggered only when the blue user button is pressed and that is almost always garbled...
<Hawk777> PlasmaHH: How are you outputting the data, are you using TRACESWO?
<Hawk777> I wonder if this message <https://sourceforge.net/p/openocd/mailman/message/37868251/> would help; it’s for H7 not U5A5 but I wonder if something similar might have happened.
<Hawk777> Obviously the same commands wouldn’t help, but at least the idea.
<Hawk777> Specifically the PS part.
<Hawk777> If you’re ever halting or modifying the relevant PLL output, that might affect it.
joconor has quit [Ping timeout: 272 seconds]
joconor has joined #openocd
<PlasmaHH> Hawk777: PLL is already a good guess... the button on the nucleo uses the pin besides the 32khz oscillator input and when you push the button the frequency gets thrown out for a moment causing the swo uart timings to be all over the place
<Hawk777> Ah, that sounds like a problem.
zjason has quit [Read error: Connection reset by peer]
zjason has joined #openocd
PlasmaHH has quit [Ping timeout: 252 seconds]
slobodan has quit [Ping timeout: 252 seconds]