cancel
Showing results for 
Search instead for 
Did you mean: 

SystemInit_ExtMemCtl() tmpreg is not initialized between each while loop

Lecordier.Guy
Associate III

Hello ST team,

I use STM32CubeF4 1.25.0

in SystemInit_ExtMemCtl() of system_stm32f4xx.c

tmpreg is not initialized between each while loop, so tmpreg is 0 and the FMC_Bank status is not read

 tmpreg = 0xFFFF; << is missing

 while((tmpreg != 0) && (timeout-- > 0))

 {

   tmpreg = FMC_Bank5_6->SDSR & 0x00000020;

 }

Regards

1 REPLY 1
Amel NASRI
ST Employee

Thanks @Community member​ for reporting this issue. It is tracked internally with the request to fix it for STM32F4 as well as other families like STM32F7 and STM32H7.

-Amel

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.