2025-04-06 9:06 AM - edited 2025-04-17 2:26 AM
Dear Community,
//// For new members joining the discussion, please refer to our second reply, where we’ve shared more details about the modifications and testing done on our board.
Thank you in advance for your interest and support!
I’m currently developing with the STSPIN32G4, but I’m encountering some difficulties related to flashing and powering the chip.
Below is a summary of my setup and the issues I’m facing:
I'm using ST-Link V2 with the following connections:
SWDIO, SWCLK, GND, and VCC
I would like to use an external 3.3V power source to power the STSPIN32G4
Case 1: Powered by ST-Link V2 (VCC connected)
Case 2: Powered by external 3.3V
Any insights or suggestions would be greatly appreciated. Thanks in advance for your support!
Best regards,
2025-04-16 11:31 PM
Hello @Sheng123,
What do you mean by "None of the GPIOs are active"? Which firmware do you use?
If "VCC is only ~2.2V", check on your hardware where this drop is coming from? Is the board drawing too much current?
2025-04-17 1:49 AM - edited 2025-04-17 1:53 AM
Dear @GMA
We have change the design following the EVSPIN32G4 design but still facing the same issues
We’re using the default 3.3V LDO solution for the STSPIN32G4 core.
However, for peripheral devices like sensors, a CAN bus transceiver, and a temperature sensor, we chose to use an external 3.3V supply.
Below is a summary of our observations:
Case 1: 12V to MV only
- STSPIN32G4 can be connected
- Firmware can be flashed
- UART output works normally
Case 2 : Provide 3.3V & 12V
- STSPIN32G4 can still be connected
- Firmware can be flashed
- (X) No UART output
- (X) All GPIOs appear inactive
Case 3: External 3.3V only (to test chip conduction)
2025-04-17 2:05 AM
@Sheng123 wrote:Case 1: Powered by ST-Link V2 (VCC connected)
A genuine ST-Link V2 by ST does not supply power, so are you using a fake/clone - like this:
2025-04-17 2:17 AM - edited 2025-04-17 2:23 AM
Dear @Andrew Neil
Thanks for your response.
We also realized this and change to the official STM version, the obersvation you could look at our second reply
The issue we’re facing is that when we introduce external 3.3V into the system (to power peripheral sensors), the STSPIN32G4 stops working.
Here’s what we observed:
We first flashed a test image that toggles the GPIO pins high/low at 1Hz.
With only 12V input and no ST-Link connected, the G4 runs fine and toggles the GPIOs as expected.
However, once we connect the external 3.3V (to power sensors, CAN transceiver, etc.), the G4 crashes, and all GPIOs stop functioning.
We’d appreciate any insight into why this might be happening, or what kind of conflict could exist between the internal 3.3V LDO and the external 3.3V supply. We have ensured that all GNDs are properly connected, and the external 3.3V supply is clean and stable — confirmed through oscilloscope analysis, with no noticeable noise or ripple.
here is the ST-Link we are using, Since G4 don't have 3.3V output so we support external 3.3V to the device as well