2024-10-18 08:25 AM
Hi Community,
Prelude: I soldered my first PCB, added STM32H743ZIT6, decoupling capacitors, BOOT0 switch, NRST with resistor to ground, 5V->3.3V LDO, powered up by USB and 4-pins SWD for debug (PA13/DEBUG_JTMS-SWDIO and PA14/DEBUG_JTCK-SWCLK pins). Checked power supply with multi-meter, decoupling capacitance, no short circuits, MCU pins are soldered norm and everything seems ok. I had some problems in process and *maybe* MCU is damaged, but before replace it I would like to ask have I did all right to check MCU with ST-LINK V3 and STM32CubeIDE ?
I would like to mention, that my PC USB ports output only 2.6V, not 5V (ST-LINK runs ok, but maybe this is the reason?)
To connect ST-LINK to SWD I used Bridge connector CN9, choosing IO0 and SCL pins.
In STM32CubeIDE I tried both GDR Server and OpenOCD with the same result, except OpenOCD mentioned, that 0.0000 voltage is detected (although I checked immediately with meter and voltage exists).
I also has USART interface and USB on board, maybe there is the way to check MCU with them (with or without ST-LINK)?
Thank you for available advice!
2024-10-18 08:31 AM
@Ajaho wrote:
I soldered my first PCB, added STM32H743ZIT6
As it is a custom board you need to share your schematics.
Thank you.
2024-10-18 08:32 AM - edited 2024-10-18 08:33 AM
First checks:
then see the rest of that article.
Please show the schematic of your PCB, and the full log from STM32CubeIDE.
Can you connect successfully with CubeProgrammer?
Is it a genuine ST-Link ?
Have you tried with NRST connected to the ST-Link, and using the 'Hardware reset' option for connecting?
@Ajaho wrote:I would like to mention, that my PC USB ports output only 2.6V, !
Well, that's definitely faulty!
2024-10-18 09:14 AM
I will check the article.
> Can you connect successfully with CubeProgrammer?
I did not try, will try and see.
> Is it a genuine ST-Link ?
Yes.
> Have you tried with NRST connected to the ST-Link
It is not available with current design (maybe with some trick if externally connect MCU pin by wire externally.. maybe will try).
> Well, that's definitely faulty!
Yes, but it is ok for MCU run and it seems ST-link also works well.
2024-10-18 09:28 AM
Not sure about the decoupling capacitors value as the screnshot has bad resolution, but the recommanded decoupling capacitors value is 100nF with one 4,7uF in parallel:
From AN4938 "Getting started with STM32H74xI/G and STM32H75xI/G MCU hardware development"
2024-10-18 09:35 AM
I also followed by experienced engeneer advice, who offered to change 100n to 1u. AI approves that this is not critical and not the cause of failure. I think the reason not in capacitance value.
2024-10-18 10:04 AM
I'm not saying that this should be solving the issue you are facing, but it could be something you need to take care of and this is a recommandation of ST.
2024-10-19 12:57 AM
I decreased capacitance and it did not help.
2024-10-19 01:01 AM - edited 2024-10-19 09:36 PM
After reading documentation carefully, it became obvious, that SCL and IO0 pins on cn9 port of ST-LINK V3 are not used to connect via SWD.
Connected grounds of ST-LINK with MCU board and connected T_VCC pins to check voltage.
Solved issue with 2.6V voltage by USB, niw it works correclty and STM32CubeProgrammer shows 3.26V.
Decreased capacitance.
Tried different options of connection (reset, frequency).
Nothing helps.
Everything comes to conculsion, that MCU is damaged.
UPDATE. No, it is not damaged!
Thanks to communitiy of AIs: Claude, Copilot and Gemini I foumd that NRST via resistor to GND is the very bad idea, replaced resistor with 100n capacitor and viola! it works.
But connects only with USB. SWD is still doesn't work, which is strange, because now I did all right: connected to the right pins of ST-LINIK; checked did SWD pins solder right. One thing which is not usual - NRST pin is out of SWD control. Maybe this is the reason?