Need some help on "bare-metal" initialization for STM32 MCU
Embedded veteran here, been involved in all manner of MCUs and MPUs professionally (especially safety-critical) but for personal use most of my prior experience has been with PIC16F and 18F (to save money obviously), of course those are only 8-bitters. I’m very interested in learning STM32 MCUs (gee they look ALMOST like DSPs except it’s single-cycle multiply not MAC and no simultaneous pointer adjustments etc.). Thing is my PIC experience has given me a pretty decent collection of chip initialization routines that I can adapt as necessary for small differences with peripheral features and such. My “inherent bias” is bare metal, no FreeRTOS, I understand I may be “going against the grain” a little but I want to get my hands on every nanosecond I may have coming. I don’t necessarily need this in C language, but I would like to get my hands on at least a very detailed list of all the HW registers that COULD need to be set, and the EXACT order in which this is “most safely accomplished”. (Now I don’t really feel it’s unreasonable to ask this, since the reference manuals for the PIC parts that it took me months to understand tended to run about 500 pages in length, whereas the STM32 parts are running about TWICE that.) For right now I would be quite happy with an answer that is correct up to about say STM32F03xxxxx (from what I understand I might be interested in using so far). I guess if I weren’t such a newbie I would know where this might reside on GitHub or something, but hopefully there is a file someone can offer to me they have used successfully on a project somewhere. Thank you for your attention!
