Closed TheNuclearDart closed 2 years ago
This was not a hardfault. Since HAL_DeInit call was removed in bootloader, systick or some other handler was called during startup, causing everything to break. I don't know why it was so deterministic, but disabling interrupts and re-enabling them once the application had initialized HAL caused everything to work better.
Sometimes, when a variable is changed, device hardfaults when zeroing bss (I believe). This is likely due to an improper SDRAM config