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: 260 seconds]
Xogium has quit [Read error: Connection reset by peer]
Xogium has joined #openocd
nathanhi has quit [Quit: bye]
nathanhi- has joined #openocd
tsal has joined #openocd
tsal_ has quit [Ping timeout: 272 seconds]
<pi0> now i am starting to see what you mean in regards to soldering the pads to the pins
borneoa___ has joined #openocd
rigid has quit [Read error: Connection reset by peer]
rigid has joined #openocd
rigid has quit [Changing host]
rigid has joined #openocd
<pi0> anyone awake
<pi0> i got something working!!!!
<pi0> but how do i flash
<pi0> ugh i bricked it
<pi0> well it could be that i did it correct, i just uploaded the wrong hex :/
<pi0> well i was able to flash it i guess
<pi0> but now its gone to board heavan
Hawk777 has joined #openocd
nerozero has joined #openocd
<PaulFertser> pi0: no, it's not possible to brick I think
<pi0> its no longer detected by stlink v2
<pi0> PaulFertser: i found this https://github.com/pdcook/nRFMicro-Arduino-Core
<pi0> how can i upload the aliexpress nice! version
<pi0> perhaps it was the wrong hex for the board?
<PaulFertser> pi0: doesn't matter, the connection should work no matter what.
<PaulFertser> pi0: what did you change between that last pastebin and "I got something working"?
<PaulFertser> pi0: it might be that UICR was flashed with your wrong hex? Why was it wrong, what exactly was wrong about that hex?
<pi0> i wish i recorded the console of everything i was doing
<pi0> next time i will use ascienima or something
<pi0> which is meant for an nrf52480 dongle, not an nrf52480 super mini
<PaulFertser> It doesn't matter and doesn't set UICR anyway.
<pi0> not sure if that would make a big difference, i just figured since it was the same chip 52480, but different board of course, it would not matter
<PaulFertser> So what was the change?
<pi0> let me connect and paste the new error message
<pi0> when i plug it in the board does not even light up anymore
<pi0> Error: init mode failed (unable to connect to the target)
<PaulFertser> Probably it shouldn't if the LED is controlled by the board and not hardwired to power.
<PaulFertser> Have you tried pulling reset pin down to see if it changes the behaviour?
<PaulFertser> I think it's really important to understand what you changed between https://pastebin.com/NFiek3Ny (which was exactly the same error!) and when it connected.
<pi0> well i was able to program /path/hex verify
<pi0> everything seemed to have gone well
<pi0> even said successful
<pi0> i get a blinking led with connected via usb c
<pi0> but no led when connected via stlink v2
<PaulFertser> How do you power the target board when connecting with stlink?
<pi0> vcc, gnd, and the swd, clk
<PaulFertser> stlink isn't supposed to provide any power
<pi0> so remove the power keep the ground
<pi0> and plug it via usb again
<PaulFertser> The board needs to be powered, yes.
<PaulFertser> Also, you got a blinking LED and then what happened?
<pi0> powered the board via led
<pi0> perhaps i did brick it since i did it powered via stlink v2
<pi0> and not external power
<pi0> right now i have it powered via eternal pack
<pi0> and stlink has swd clk and gnd connected
<pi0> still no target
<PaulFertser> It can not be bricked I think.
<PaulFertser> So what exactly happened after the LED was blinking? Did you reflash it?
<pi0> correct
<pi0> i plugged in some wires to reset it
<pi0> but that did nothing
<pi0> there isnt an actual reset button on this
<pi0> i am runnig out of ideas
<pi0> i will see you in a few i gotta wake up in a few hours
<pi0> feel free to leave some troubleshooting tips
<PaulFertser> pi0: probably that new hex files is using those pins you shorted with SWD for something?
<PaulFertser> pi0: I already told you the idea of that board is fishy.
<PaulFertser> If firmware is trying to use those pins then it would mess up SWD.
Haohmaru has joined #openocd
Hawk777 has quit [Quit: Leaving.]
^Dan has joined #openocd
^Dan has quit [Remote host closed the connection]
<Haohmaru> you know what's dumb... i just installed f*cking MPLABX IDE/IPE (particularly the IPE that is basically the program that talks to the programmer so you can flash these sh*ts), i had to install an older version because pickit3 is not supported in the newest version
<Haohmaru> so now if we buy one of those newer programmers, what was it, pickit mplab Basic or whatever, it 99.9% won't work with that version
<Haohmaru> it'll need a new version
<Haohmaru> shouldn't microsh*t offer a "return your old garbagekit3 and get the newest one with a discount"
Deneb has joined #openocd
en-sc has joined #openocd
<pi0> PaulFertser: i think i might just try arduino framework on this board, i mean for the price to get zigbee and matter, and bluetooth
<pi0> i think i might have thin enough mag wire to make it happen, i am running out of pcb boards
<pi0> but i did want to clarify on one thing, you said the stlink is not suppose to power the board at all, so plugging in the board via usb and keeping the gnd swd clk still connected to the board and stlink would be ok
<pi0> i think it might be geting 5v via usb c
Haohmaru has quit [Quit: saionara]
Hawk777 has joined #openocd
<pi0> i should just avoid the headache with this board and get an esp32-c6 super mini and just deal with the zigbee and matter on those via usb instead of soldering the pads on each board
en-sc has quit [Remote host closed the connection]
<pi0> but i will look into amazon for one of these SEQURE S60P
<pi0> i think i burned through 2 of my 10 of these boards with soldering and such, its a good learning exp.... on cheap boards
<pi0> PaulFertser: arg!!! i needed reset pin from the mcu to the stlink v2 as well?
<pi0> here seems to be so many different methods, what are you thoughts on this? programmer connecting to an NRF52840 board via SWDIO+SWCLK+SRST (naturally also VCC and GND).
nerozero has quit [Ping timeout: 276 seconds]
<pi0> PaulFertser: also just to clarify there really isnt a way to upload to this board via arduino framework without installing the .hex via stlink, correct?
<pi0> the only thing that works on this board right now out the box is circuit python via uf2 i believe
renrelkha has quit [Remote host closed the connection]
renrelkha has joined #openocd
<PaulFertser> pi0: I have no idea what you imply by mentioning arduino framework. SWD should just work. Have you checked what exactly are you shorting with that strange additional board?
<PaulFertser> I do not understand how one nrf52 board should be any different from another, different pinout you account for in the source code and that's it.
<pi0> PaulFertser: i see what you mean, this is just my first time getting exposed to openocd and trying to get this stlink to work, i mean it is exciting and fuasrating at the same time lol
<PaulFertser> pi0: it's nothing OpenOCD specific, I'm asking if that board of yours connects SWD directly to some GPIOs that firmware you flashed configures so it's driven by both and fails to work with SWD no matter what adapter and host software are used.
<pi0> PaulFertser: oooh! i understand what you mean now, in this case i am not sure if the updated firmware does this
<PaulFertser> I do not understand why it's considered a good idea in the first place to short SWD to anything.
<pi0> however when i return home I will take more pictures of my devices and post them online, i think i ruined some pads already
<pi0> hmm let me provide a updated pic and see i understand what you mean
<pi0> one second
<pi0> PaulFertser: what is the name of that image provide you prefer
<pi0> so i can upload it to
<PaulFertser> What temperature are you soldering at if it can ruin a pad?..
<PaulFertser> imgbb.com
<pi0> i will solder some new ones too today
<pi0> you said not to exceed 350c
<pi0> correct
<pi0> my soldering iron goes up to 450c
<pi0> i will be soldering some pins but wanted to confirm if these are the required pins to perform this task
<pi0> PaulFertser: so my question would be, i solder those pins, connect it to my stlink v2, and power the nrf52480 supermini via usb
<pi0> and in theory that should be good?
<PaulFertser> pi0: I do not think you should solder more of those odd flex boards before figuring out what they short.
<PaulFertser> pi0: yes, and I think you do not need RST normally there.
<PaulFertser> pi0: And I'd try desoldering the board from one of the "ruined" boards.
<pi0> i will try it again tonight, so only solder the gnd, swd and clk
<pi0> that should be enough i suppose
<PaulFertser> Yes, and power via Type-C
<PaulFertser> btw, you connect one of the pins to ground with that board so if that pin is configured to output logical one that's immediate MCU crash.
<pi0> the interesting thing tho, is that this project https://github.com/pdcook/nRFMicro-Arduino-Core, provides a uf2 type file that i can toss onto my board when it loads it in storage mode
<pi0> but it doesnot work
<PaulFertser> But you can convert uf2 to ihex, right? And OpenOCD knows ihex.
<pi0> just to verify on your last statement, i will be soldering a gnd (ground) wire and connecting it to the stlink v2
<pi0> this is what you meant, correct?
<PaulFertser> pi0: my last statement was about that strange flex board.
<pi0> also if i understood this nrfmicro-arduino-core github, i should be able to use this "update-SuperMini_nRF52840_bootloader-1.0.0_nosd.uf2" file from https://github.com/pdcook/nRFMicro-Arduino-Core/tree/main/bootloader/SuperMini_nRF52840
<pi0> and it should work correctly, right
<PaulFertser> If it really connects GND to one of GPIOs and firmware uses that GPIOs to output 1 then the target will crash. Same if it's connecting a GPIO to VDD and the GPIO tries to output zero.
<pi0> oh i see, i will remove it
<pi0> and solder directly to the actual pcb
<PaulFertser> How do you convert from uf2 btw?
<PaulFertser> Or how do you flash uf2 directly?
<pi0> for example on this board, i would simply just reset the board shorting the rst and gnd
<pi0> it will launch a storage drive on my os
<pi0> i simply drag it over into the storage
<PaulFertser> So it already has a bootloader there capable of self-flashing? OK.
<pi0> device reboots and boom its done
<pi0> correct
<pi0> but....
<pi0> these u2f from this project does not take
<pi0> it reboots but i see nothing with i do lsusb
<pi0> but i am able to reset it again into nano!nice or whatever it resets boots into
<PaulFertser> But when you have proper SWD access you do not need any bootloaders, you can flash directly whatever you want.
<pi0> now i am understanding
<pi0> perfect
<pi0> but one of the mcu's that i was able to program my .hex, i can no longer get into that boot mode
<pi0> i think i ruined the bootloader
<pi0> but like you said i could of flashed something that no longer takes the swd and clk
<PaulFertser> pi0: even after you desolder the board?
<pi0> i will find out tonight once i desolder
<PaulFertser> You could have flashed something that makes it impossible to work with the flex board soldered and also which overwrote bootloader.
<pi0> i think the flex board just made it easier to get to the swd and clk
<pi0> but i see what you mean
<pi0> nothing like connecting directly
<pi0> PaulFertser: i went to a cheap dollar store and bought some cheap wire, basically any wire will work right? as long as metal?
<pi0> does not need be copper or something
<PaulFertser> pi0: uhm, well, an aluminum wire is very hard to solder but it'd be still metal.
<PaulFertser> A steel wire especially stainless is also hard to solder, but probably a bit less and just an acidic flux would be enough.
<pi0> i can see that, it would melt to quickly
<pi0> i will see what type of metal it is once i add the soldering iron
<pi0> lol
<PaulFertser> No, the wires do not melt.
<PaulFertser> Bronze and brass are easy to solder.
<PaulFertser> Nickel too
<PaulFertser> Silver and gold too
<PaulFertser> idk, not much I know about metals but clearly even some metals relatively commonly used for wires are not solderable.
<pi0> it was a dollar wire so who knows what type it is
<pi0> 26 guage with a plastic film on it
<pi0> going to figure out a way to strip it
Deneb has quit [Remote host closed the connection]