2025-02-17 03:42 PM
I am trying to flash a chip on a PCB. Right now I just have it toggle an LED. Sometimes it connects, but does not toggle, only stays lit. After power cycling, it does not even light up, it just stays off. Is there something i am missing, perhaps in the option bits or some clock setting.
Also, on another board, it is just not connecting, what are some common issues?
Lastly, on third test, it connected a few times. However around a month later, it just won't connect. Any insight?
Thanks!
2025-02-17 04:24 PM
Some common issues here:
2025-02-17 04:27 PM - edited 2025-02-17 05:38 PM
Show schematics of your board(s) !
What programmer (HW & SW) are you using, and how do you have it connected ?
How to write your question to maximize your chances to find a solution
2025-02-17 07:03 PM
I am using an ST-Link and SWD.
This is the one I got to flash once and does not work anymore.
I got the flashing working consistently on this type of device. This was also the setup I was working on that would not run after power cycling. Not sure what I did, but it is now working :). It is just getting 3.3V at the power input pins, and I am using 3.3V, GND, SWDIO, SWCLK. I did not change any boot pins
This one will not connect at all, I have made 2 of these and still no luck. I am not sure what is different other than the capacitors and ferrite bead.
2025-02-17 07:04 PM
Thank you, I think the main issue now is connecting to the chip on the PCB, not sure what is not working on the board.
2025-02-18 12:46 AM
@at3 wrote:I am using an ST-Link
That's not a genuine ST-Link:
You didn't answer what software tool(s) you're using.
Again, please read this.
@at3 wrote:This is the one I got to flash once and does not work anymore.
What, exactly, do you mean by "does not work" ?
Does the (unknown) programmer not connect?
Can you use the debugger?
2025-02-18 06:13 AM
With BOOT0 floating, the microcontroller may boot into flash or into system memory. It is not defined.
2025-02-18 06:25 AM
which should I set it to for programming and for running when connected to power
2025-02-18 06:26 AM
I am using the Cube programmer. With the stlink I am using, i am still able to connect to chips using the device I mentioned earlier.
By does not work, I mean that in the cube programmer, it gives some error message, either enable debug authentication or error connecting.
2025-02-18 08:08 AM
@at3 wrote:it gives some error message,
Post the actual message