The "Flash Loader IP Not Loaded on Device 1" error sounds complex, but it usually means the CPU is asleep or stuck. By using or switching to the System Memory Bootloader , you can almost always recover the device. Never throw away an STM32 that shows this error – it is almost certainly recoverable.
Few things are more frustrating in embedded development than a successful connection to your microcontroller, only to be met with the cryptic error: Flash Loader Ip Not Loaded On Device 1
Fixing the "Flash Loader IP Not Loaded on Device 1" Error in STM32 Programming The "Flash Loader IP Not Loaded on Device
// Disable low-power modes during debug __HAL_DBGMCU_DISABLE_SLEEP(); __HAL_DBGMCU_DISABLE_STOP(); __HAL_DBGMCU_DISABLE_STANDBY(); Then, erase the faulty firmware that put the chip to sleep. Few things are more frustrating in embedded development
You can read the device ID, you can see the target voltage, but the moment you try to erase or flash firmware, the programmer halts with this message. This post explains why this happens and provides a step-by-step guide to resolve it.