waclawek.jan mentioned thed that the compiler can't optimise away the contents of HAL_RCC_OscConfig because it's in a separate file than where it is called, so the compiler is unaware of what it can optimise away because it only considers one file at...
I found the solution in my case, the memory needs to be 64bit aligned and I was giving it non-64bit aligned memory.For future reference, one solution might be to allocate some 64bit ram (e.g. uint64_t data[binarySize/sizeof(uint64_t)]) and memcpy the...
I'm also getting HAL_ERROR returned from FLASH_WaitForLastOperation inside HAL_FLASH_Program function.There are no timers used in my project, and I've tested calling HAL_FLASH_Program right at the top of main.c (before anything else happens in the pr...