2025-06-09 6:22 AM
Hi,
Here is a picture when I run my app on the STM32N6570-DK in developer mode:
It works just fine
When signing and flashing the bin file, this is when I run the app in Flash mode:
The result is a near 100% CPU usage and distorted screen.
What could be the cause that gives this result?
Thanks,
Solved! Go to Solution.
2025-06-09 8:36 AM
Hi,
Found the cause. I had a double init of the i2c clock source:
/* I2C1 clock source */
RCC_PeriphCLKInitStruct.PeriphClockSelection = RCC_PERIPHCLK_I2C1;
RCC_PeriphCLKInitStruct.I2c1ClockSelection = RCC_I2C1CLKSOURCE_PCLK1;
I am not sure why this results in different behavior between developer mode and flash boot.
2025-06-09 8:36 AM
Hi,
Found the cause. I had a double init of the i2c clock source:
/* I2C1 clock source */
RCC_PeriphCLKInitStruct.PeriphClockSelection = RCC_PERIPHCLK_I2C1;
RCC_PeriphCLKInitStruct.I2c1ClockSelection = RCC_I2C1CLKSOURCE_PCLK1;
I am not sure why this results in different behavior between developer mode and flash boot.