CH32V208WBU6
#define ESIG_FLACAP *((uint16_t *)0x1FFFF7E0)
#define ESIG_UNIID1 *((uint32_t *)0x1FFFF7E8)
#define ESIG_UNIID2 *((uint32_t *)0x1FFFF7EC)
#define ESIG_UNIID3 *((uint32_t *)0x1FFFF7F0)
??? printf("Flash: %dK ID1:%8X_ ID2:%8X_ ID3:%8X_ FLASH Test_NbrOfPage=%d\n",\
??????????? ESIG_FLACAP, ESIG_UNIID1,ESIG_UNIID2,ESIG_UNIID3, NbrOfPage);
結(jié)果是:
SystemClk:120000000
Flash Program Test
Flash: 160K ID1:268841FD_ ID2:A0C0383B_ ID3:E339E339_ FLASH Test_NbrOfPage=1
FLASH Erase Suc
Programing...
Program Cheking...
Memory Program PASS!
SystemClk:120000000
Flash Program Test
Flash: 160K ID1:26883F5E_ ID2:9E21383B_ ID3:E339E339_ FLASH Test_NbrOfPage=1
FLASH Erase Suc
Programing...
Program Cheking...
Memory Program PASS!
ID3顯然是空的。 地址沒錯吧?