const uint32_t addr_data[200] __attribute__((at(0x00070000))) = { 0, }; uint8_t data_s[200] = {0x04,}; EEPROM_ERASE(0x00070000, (uint32_t)200); EEPROM_WRITE(0x00070000,(uint32_t *)data_s, (uint32_t)200); PRINT("ad get da end\n"); PRINT("addr_data:\n"); for(uint8_t p = 0;p < 200; p++){ PRINT("%x ",addr_data[p]); } PRINT("addr_end\n");
为啥我已经擦除了起始地址
0x00070000
到之后长度200的范围数据,并且调用
EEPROM_WRITE
来写数据进flash,但数据没有成功烧录进去,打印出来全是0;这是为啥?我的芯片型号是CH585M
热门产品 :
CH32V317: 互联型青稞RISC-V MCU