How can I read the level of the BOOT0 pin after boot? Is BOOT0 pin sampled when protection level 2 is enabled?
I would like to be able to read the BOOT0 pin level at boot.I tried the following. It reads the BOOT_MODE from the SYSCFG register:// Turn on blue LED if BOOT0 is low at boot if (__HAL_SYSCFG_GET_BOOT_MODE() == SYSCFG_BOOT_MAINFLASH) { // BOOT0 pin...