cancel
Showing results for 
Search instead for 
Did you mean: 

Development boot vs flash boot

Creator
Associate III

Hi,

Here is a picture when I run my app on the STM32N6570-DK in developer mode:

hlk-ld2410 measurements.jpg

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,

 

1 ACCEPTED SOLUTION

Accepted Solutions
Creator
Associate III

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.

 

View solution in original post

1 REPLY 1
Creator
Associate III

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.