# STspin32G4 support

**URL:** https://community.simplefoc.com/t/stspin32g4-support/2027
**Category:** hardware support
**Created:** [May 9, 2022, 1:42pm UTC](https://community.simplefoc.com/t/stspin32g4-support/2027 "2022-05-09T13:42:54Z")
**Posts on this page:** 1
**Showing post:** 20

<div class="post-metadata">

### Author: ![Juan-Antonio\_Soren\_E](https://community.simplefoc.com/user_avatar/community.simplefoc.com/juan-antonio_soren_e/32/9969_2.png) [@Juan-Antonio\_Soren\_E](https://community.simplefoc.com/u/Juan-Antonio_Soren_E)
#### Post date: [January 10, 2023, 9:02am UTC](https://community.simplefoc.com/t/stspin32g4-support/2027/20 "2023-01-10T09:02:07Z")

</div>

For the record, this iteration is a continuation from another [thread](https://community.simplefoc.com/t/nema23-cnc-foc-stepper-driver-dev/2587/67). It seams I have taken some large de-tour in order to reach this physical manifestation. Anyhow, I believe I have sketched up something useful, although there are some uncertainties, like will the buck-converter to LDO step-down work as expected.

I have chosen to add a external 3.3v LDO for external use and for the ANALOG domain. This means the internal LDO will supply the IO domain and all other MCU stuff, clock etc. The reason for doing this, is to not over-burden the internal LDO, which has a 120mA limit. Furthermore I have chosen to put a 5V LDO in between the buck and the internal LDO in order to avoid too much heat. Doing this we can maybe turn up the buck voltage to eg. 14v and still be in the zone.

I still have some doubt about the clock, since STM uses a 24MHZ crystal in their reference design. Is this the same for the B-G431B-ESC1? The 32.768 clock pins is right next to the ones STM use, so choosing that approach is not an issue…

 ![TOP - STSPIN32G4 Stack w. 4th Bridge driver](https://community.simplefoc.com/uploads/default/original/2X/a/a90da59fe05baf853d36571459513b5849ae3215.jpeg)

 ![STSPIN32G4 Stack w. 4th Bridge driver](https://community.simplefoc.com/uploads/default/original/2X/4/47f4352338a44e9b07cefc864d1fd5cbac121934.jpeg)

EDIT: If HALL sensors are used for motion-sensor purposes, then the SPI pins on the dual-row headers should be used and set up w. pull-ups etc. on the daughter-board/power-stage. The CAL\_MT6835 pin is placed on PC5 which has ADC2\_IN11 (slow analog input). With this pin, the motor temperature can be monitored, if using HALLs that is. Power-Stage thermistor is broken out on a separate pin w. ADC2\_IN5 (PC4 - fast analog input).

---

_[View the full topic](https://community.simplefoc.com/t/stspin32g4-support/2027)._
