Skip to main content
Visitor II
July 27, 2020
Question

SystemInit_ExtMemCtl() tmpreg is not initialized between each while loop

  • July 27, 2020
  • 1 reply
  • 920 views

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

    This topic has been closed for replies.

    1 reply

    Technical Moderator
    August 12, 2020

    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