I have an similar problem when I create a global array in main c like GPIO_TypeDef* x[NO] ={A,B,..} after HAL_Init and RCC_Init command executes the first member content become zero.. I changed optimization settings and this situation solved. but I d...