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
<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>
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~
<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.
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
<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>
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]