0
\$\begingroup\$

I have a consumer device that I know uses a STM32 microcontroller that I'd like to hack a bit. Is there a reliable way to communicate with the chip and determine its exact model, so I can locate the correct datasheet? Nothing is printed on the chip itself.

\$\endgroup\$
4
  • 3
    \$\begingroup\$ Use a debugger to connect via SWD. \$\endgroup\$
    – Kartman
    Feb 4, 2021 at 3:14
  • \$\begingroup\$ That's what my research has shown, but surely not all STM32s have the same pins, right? \$\endgroup\$
    – Jonah
    Feb 4, 2021 at 15:41
  • \$\begingroup\$ Package and at least a guess of the STM32 family would narrow the search. \$\endgroup\$ Feb 5, 2021 at 18:54
  • \$\begingroup\$ I got a ST-LINK V2, and the ST-LINk Utility seems like the correct program. However I'm having trouble getting it to recognize that I've connected it to the SWDIO/SWCLK/VAPP/GND pins. Still trying to troubleshoot. \$\endgroup\$
    – Jonah
    Feb 14, 2021 at 5:00

1 Answer 1

0
\$\begingroup\$

I ended up buying an ST-Linkv2 and connecting to the SWD interface with some tiny clips. However the programmer refuses to detect the presence of the device. It seems likely that readout protection (RDP) is enabled, preventing access to the flash memory. Short of some sort of vulnerability, there's no way to determine the exact model, let alone re-program it.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.