Hi@MUXU
When CSEc is enabled, some considerations must be taken prior to launch mass erase command.
If no CSEc keys have been configured or the part is not partitioned, then the mass erase operation will be allowed to run.
If CSEc key size field in the program partition command is set to zero keys (0x00), then you can mass erase at any time and it should always run as long as mass erase is enabled in the flash configuration field.
If any CSEc keys have been configured (so the part has been already partitioned)
user must finish the complete flow below otherwise the mass eras command will not work:
简单来说,就是如果你只是使能了CSEc模块,但是并没有配置CSEc的key,那么你依然可以通过mass erase 来恢复(前提mass erase已经被使能),相反,如果已经配置了key,那么必须要使用CSEc的命令来擦除CSEc的区域,然后再执行mass erase,如果你直接执行mass erase,那么芯片也会被锁。