Complete the code to access the SCB register that holds the CPU ID.
cpu_id = SCB->[1];The CPUID register in the SCB holds the CPU identification information.
Complete the code to set the vector table offset in the SCB.
SCB->[1] = vector_table_address;The VTOR register in the SCB is used to set the vector table offset address.
Fix the error in the code to trigger a system reset using the SCB.
SCB->[1] = (0x5FA << 16) | (1 << 2);
The AIRCR register is used to request a system reset by writing the key (0x5FA) and setting the SYSRESETREQ bit (bit 2).
Fill both blanks to enable deep sleep and set sleep on exit in the SCB.
SCB->[1] |= (1 << 2); SCB->[2] |= (1 << 1);
The SCR (System Control Register) controls sleep behavior. Bit 2 enables deep sleep, and bit 1 enables sleep on exit.
Fill all three blanks to create a dictionary comprehension that maps SCB register names to their reset values if the reset value is greater than zero.
reset_values = { [1]: [2] for [1] in scb_registers if [2] > 0 }This comprehension creates a dictionary where keys are register names (reg) and values are their reset values (value), including only those with reset values greater than zero.
