This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello,
The bsl_spi_flash_interface example, with no changes to the code, is throwing the following error immediately upon running the debugger:
File Loader: Memory write failed: Flash Programmer: Error, Attempting NONMAIN write without erasing!
Looking at the boot_config.c file both massEraseMode and factoryResetMode look to be enabled, so I believe NONMAIN should have been erased:
.massEraseMode = BCR_CFG_MASS_ERASE_EN, .factoryResetMode = BCR_CFG_FACTORY_RESET_EN,
Any suggestions would be appreciated.
Thanks,
Alex
Hi Alex,
Check how you have your debugger setup for erasing FLASH or FLASH + NONMAIN. Select FLASH+ NONMAIN.
You set this up in your project properties then look for debugger.
Hi Alex - here is what I mean about configuring the debugger to erase FLASH + NONMAIN