Pregunta de entrevista de STMicroelectronics

How the startup sequence work in the controller?

Respuesta de la entrevista

Anónimo

6 de jun de 2024

Whenever there is a power-on reset/ brownout reset, hardware reset or software reset, The Program counter resets itself, starts from the location which is mapped in the SYSCFG memory remap register. The bits are used to configure from where the booting sequence of the controller will start. (which memory needs to be mapped with). Afterwards, the PC is loaded with address 0x00000 and initialises the main stack pointer and Process stack pointer. After the PC jumps to the location where the reset handler resides which initialises the standard C library and memory sections in the RAM region. Afterwards, the program counter starts to point to the address of the vector table