ZHDU116G January 2018 – June 2024 CC1312PSIP , CC1312R , CC1352P , CC1352R , CC2642R , CC2642R-Q1 , CC2652P , CC2652PSIP , CC2652R , CC2652RB , CC2652RSIP , CC2662R-Q1
COMMAND_SECTOR_ERASE 命令用于擦除指定的闪存扇区。一个闪存扇区的大小为 8kB。
该命令包含一个 32 位值,该值首先传输 MSB。32 位值是要擦除的闪存扇区的起始地址。
在执行实际擦除操作后,引导加载程序会向主机器件发送 ACK 信号。
在 CC13x2 和 CC26x2 器件平台上,闪存从地址 0x0000 0000 开始,每个扇区为 8kB。
不会擦除 FCFG1 及 CCFG 中由写保护位保护的扇区。
如果指定了顶部扇区(包括 CCFG 区域)的扇区地址,则实际擦除之后会将 CCFG 值编程为与器件从 TI 交付时所具备值相同的值。
包括该命令在内的数据包格式如下:
unsigned char ucCommand[7];
ucCommand[0]= <size=7>;
ucCommand[1]= <checksum>;
ucCommand[2]= COMMAND_ERASE;
ucCommand[3]= Sector Address [31:24];
ucCommand[4]= Sector Address [23:16];
ucCommand[5]= Sector Address [15: 8];
ucCommand[6]= Sector Address [ 7: 0];