My objective was to find an STM32 with the following features:

  • SDIO
  • USB
  • CAN
  • 48 or 64 pins

And standard features such as SPI and UART.

Here are some STM32s which fit these capabilities and are available on JLCPCB, along with some other honorable mentions.

PNPasses?Cost [USD]Flash [kb]Package SizeSDIOUSBCANNotes
STM32L431RCT61.274256LQFP-64Very low price for its capabilities, shame it is missing USB.
STM32F401RCT61.325256LQFP-64Again, an abnormally good value chip, but it is missing CAN.
STM32F402RCT61.325256LQFP-64It’s datasheet is in Chinese and ST doesn’t advertise it or sell it elsewhere.
STM32F103RCT61.501256LQFP-64The cheapest matching the criteria.
STM32F302C8T61.63864LQFP-48Used on Neptunium 1. This is the cheapest chip with USB, CAN and DSP instructions.
STM32G431CBU61.881128UFQFPN-48Very capable processor with FDCAN, USB PD and higher frequency.
STM32F407VET62.452512LQFP-100Very capable processor the cheapest one with all three interfaces but its package is too large for my application. The processor has many other interfaces (camera, Ethernet) and high frequency.
STM32F412RET62.658512LQFP-64Very capable processor, the cheapest one matching the criteria AND has DSP instructions. Has two CAN interfaces.
STM32F407ZET62.704512LQFP-144Huge package
STM32L476RET62.713512LQFP-64The cheapest matching the criteria in the L4 lineup.
ESP32-S3FH4R22.674096QFN-56Yes, but it’s power hungry and does not have enough I/O for my application.

Feel free to comment below your favorite MCUs on JLCPCB, I’m interested in hearing about it (especially if you have one that does BLE, CAN, SDIO, USB and has more IO than an ESP32-S3 and less power consumption).