Code jumping unexpectedly to 0xfffffffe
Hi,
After successful coding, I suddenly stumbled on this error. I'm simply running this code:
HAL_Init();
/* USER CODE BEGIN Init */
/* USER CODE END Init */
/* Configure the system clock */
SystemClock_Config();
/* USER CODE BEGIN SysInit */
/* USER CODE END SysInit */
/* Initialize all configured peripherals */
MX_GPIO_Init();
MX_DMA_Init();
MX_I2C1_Init();
MX_USART2_UART_Init();
And at the point of MX_USART2_UART_Init(); it crashes and goes to 0xfffffffe. Any guesses why? It seems like as soon as it tries to do something with the GPIO, it instantly crashes. First it seemed like my linker file offset was wrong, and after changing it worked again, but the next day it was just stuck again. Any guesses?
Edit: It's time related. A 10ms delay makes it crash instantly after the delay
