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.
您好!
BSL_SPI_FLASH_INTERFACE 示例在未对代码进行任何更改的情况下、在运行调试器时立即抛出以下错误:
File Loader: Memory write failed: Flash Programmer: Error, Attempting NONMAIN write without erasing!
查看 boot_config.c 文件、massEraseMode 和 factoryResetMode 看起来都已启用、因此我认为 NONMAIN 应该已被擦除:
.massEraseMode = BCR_CFG_MASS_ERASE_EN, .factoryResetMode = BCR_CFG_FACTORY_RESET_EN,
欢迎提出任何建议。
谢谢。
亚历克斯
尊敬的 Alex:
检查如何设置调试器以擦除闪存或闪存+ NONMAIN。 选择 FLASH+ NONMAIN。
您可以在项目属性中对此进行设置、然后查找调试器。
大家好、Alex -这是我对配置调试器以擦除闪存+ NONMAIN 的意思。