STM32H750VB - Code not automatically starting after power reset
Hello, I'm having trouble getting a blink sketch to run on my STM32H750VB after a power reset. uVision 5 compiles my code without any errors, and programs the chip using a STLink. In order for my code to run, I need to have the BOOT0 pin high, press the reset button, toggle BOOT0 to low, then press the reset button again. After doing this, the blink sketch works as expected. However, when I turn the power to the board off and then back on, my code does not run until I toggle the BOOT0 pin high and back to low while pressing the reset button in between.
My code is being stored at address 0x08000000, and by using the ST-LINK Utility tool, I can see the the values stored in the BOOT_ADD0 and BOOT_ADD1 registers are 0x0800 and 0x1FF0, the default values programmed by ST. I'm using CubeMX to generate the initial code, using the HAL_Delay and HAL_GPIO_Toggle functions inside the while loop in main.c, and can see my code working as expected after doing the BOOT0 toggling and reset sequence. I've looked over the datasheet and the STM32 microcontroller system memory boot mode application note (AN2606) but can not seem to find a solution.
Does anyone have experience with this issue or know how I can configure the microcontroller to run my code immediately when powered on?
