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.

MSP432E401Y: 在测试Flash烧写数据时出现问题,芯片无法再进行正常地烧写程序

Part Number: MSP432E401Y


本来我是想测试一下MSP432E401Y自带的烧写Flash的程序,原本还试地好好的,后面想试试那个保护的函数,但没想到后面就无法烧入了,

相关代码如下:

test_can=FlashProtectGet(0x6664);
FlashProgram(&a,0x6664,4);
FlashProtectSet(0x6664,FlashReadOnly);
test_what=*((volatile int *)0x6664);

就是因为加了那句FlashProtectSet(0x6664,FlashReadOnly);导致程序无法烧入了,请问如何解决这个问题?