User Activity

The problem can be simplyfied to this code:int startFlag = 0;void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin){ startFlag = 1;}int main(){ if(startFlag== 1){ //crashes at first iteration (Hard_Fault_Handler) int *test = malloc(sizeof(i...