Sequence after POR
- A circuit runs on POR to ensure that the device is in a predictable state
- RCC is automatically initialized. It uses HSI to begin with, which is 16Mhz
- We then query BOOT MODE to select where we want to boot from
- Since we’re booting from FLASH anyways, we don’t need to touch this. However, this could be different in the future
- After this is done, we have control of the execution via Start.S
What this Means
- We can write our custom start.S script and linkerscript to initialize things
- Then, we’re good to hop into main (as defined in the given linkerscript, after settings up environment for C to run)
- This main is loaded into ____ to execute
- We can then from there setup peripherals like we would a normal bootloader (as according to the project plan)
- Then hop into the kernel (project plan for this is coming soon)