I use CLion 2020.1. I try to run/debug my stm32 project with custom bootloader. My bootloader is located at the beginning of the flash, I can run and debug it. But when I load the main firmware, the flash is erased, of course the bootloader is erased too and all doesn't work.
** Programming Started **
auto erase enabled
Info : Device: STM32L1xx (Cat.2)
Info : STM32L flash size is 128kb, base address is 0x8000000
How can I disable auto erase at startup?