2009-01-20 09:30 PM
Bug in stm32f10x_fsmc.c ?!
2011-05-17 04:00 AM
Hello MCD Application Team,
when initializing a memory struct of the type FSMC_NORSRAMInitTypeDef, I found out that two pointers to timing structures are not initialized, only their members. This will probably crash the application! FSMC_NORSRAMInitStruct->FSMC_WriteTimingStruct FSMC_NORSRAMInitStruct->FSMC_ReadWriteTimingStruct Is this already known?! The workaround would like this: FSMC_NORSRAMInitTypeDef SRAMInit; FSMC_NORSRAMTimingInitTypeDef RWTimingInit; FSMC_NORSRAMTimingInitTypeDef WrTimingInit; SRAMInit.FSMC_ReadWriteTimingStruct = &RWTimingInit; SRAMInit.FSMC_WriteTimingStruct = &WrTimingInit; FSMC_NORSRAMStructInit(&SRAMInit); Or do not use this function at all and set directly the members to the intended value without default initialization before. How can the correction look like? Passing the timing-pointers to the initialization function? Best regards, Michael