TheNuclearDart / bringup

STM32F7 discovery board bringup
GNU Affero General Public License v3.0
0 stars 0 forks source link

Device Hardfaults in LoopFillZeroes #11

Closed TheNuclearDart closed 2 years ago

TheNuclearDart commented 2 years ago

Sometimes, when a variable is changed, device hardfaults when zeroing bss (I believe). This is likely due to an improper SDRAM config

TheNuclearDart commented 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.