I've a problem on the STM32F412 with flash writing and USB Host initialized. When USB Host is active and I attempt to write to flash, the software execution blocking at FLASH_FlushCaches function, on the line:
if (READ_BIT(FLASH->ACR, FLASH_ACR_ICEN) != RESET)
If I remove the MX_USB_HOST_Init function, the flash writing works fine, but if I call the function in any position on the code (even after flash writing calls), the code always stop at the same point.
I don't have ideas about this problem. Do you have any suggestions? Thanks!
-fPIC
so they are relocatable), (b) create a shadow copy of ISR code in RAM, (c) update the interrupt vector table to point to the RAM copy. I think there's a way in the linker config to tell it a certain section will execute from a different address than where the linker stores it; that way relocatable code is not needed and the correct addresses would be in the interrupt table already. \$\endgroup\$