Other Parts Discussed in Thread: C2000WARE
Dear all:
目前28002X系列的加密和原先的2806X系列芯片的CSM程序加密差距还是挺大的,到目前还不知道如何设置,
程序中添加了两个 f28002x_dcsm_z1otp.asm f28002x_dcsm_z2otp.asm,文件
但是程序中不知道在什么地方设置密码,
还有CMD文件的设置
MEMORY { PAGE 0 : /* Program Memory */ /* BANK0 */ /* B0 Z1 OTP. LinkPointers */ B0_DCSM_OTP_Z1_LINKPOINTER : origin = 0x78000, length = 0x00000C /* B0 Z1 OTP. GPREG1/GPREG2 */ B0_DCSM_OTP_Z1_GPREG : origin = 0x7800C, length = 0x000004 /* B0 Z1 OTP. PSWDLOCK/RESERVED */ B0_DCSM_OTP_Z1_PSWDLOCK : origin = 0x78010, length = 0x000004 /* B0 Z1 OTP. CRCLOCK/RESERVED */ B0_DCSM_OTP_Z1_CRCLOCK : origin = 0x78014, length = 0x000004 /* B0 Z1 OTP. GPREG3/BOOTCTRL */ B0_DCSM_OTP_Z1_BOOTCTRL : origin = 0x7801C, length = 0x000004 /* DCSM Z1 Zone Select Contents (!!Movable!!) */ /* B0 Z1 OTP. Z1 password locations / Flash and RAM partitioning */ B0_DCSM_ZSEL_Z1_P0 : origin = 0x78020, length = 0x000010 /* B0 Z2 OTP. LinkPointers */ B0_DCSM_OTP_Z2_LINKPOINTER : origin = 0x78200, length = 0x00000C /* B0 Z2 OTP. GPREG1/GPREG2 */ B0_DCSM_OTP_Z2_GPREG : origin = 0x7820C, length = 0x000004 /* B0 Z2 OTP. PSWDLOCK/RESERVED */ B0_DCSM_OTP_Z2_PSWDLOCK : origin = 0x78210, length = 0x000004 /* B0 Z2 OTP. CRCLOCK/RESERVED */ B0_DCSM_OTP_Z2_CRCLOCK : origin = 0x78214, length = 0x000004 /* B0 Z2 OTP. GPREG3/BOOTCTRL */ B0_DCSM_OTP_Z2_BOOTCTRL : origin = 0x7821C, length = 0x000004 /* DCSM Z1 Zone Select Contents (!!Movable!!) */ /* B0 Z2 OTP. Z2 password locations / Flash and RAM partitioning */ B0_DCSM_ZSEL_Z2_P0 : origin = 0x78220, length = 0x000010 /* BANK1 */ /* B1 Z1 OTP. LinkPointers */ B1_DCSM_OTP_Z1_LINKPOINTER : origin = 0x78400, length = 0x00000C /* DCSM B1 Z1 Zone Select Contents (!!Movable!!) */ /* B1 Z1 OTP. Flash partitioning */ B1_DCSM_ZSEL_Z1_P0 : origin = 0x78420, length = 0x000010 /* B1 Z2 OTP. LinkPointers */ B1_DCSM_OTP_Z2_LINKPOINTER : origin = 0x78600, length = 0x00000C /* DCSM B1 Z1 Zone Select Contents (!!Movable!!) */ /* B1 Z2 OTP. Flash partitioning */ B1_DCSM_ZSEL_Z2_P0 : origin = 0x78620, length = 0x000010 } SECTIONS { b0_dcsm_otp_z1_linkpointer : > B0_DCSM_OTP_Z1_LINKPOINTER PAGE = 0, type = DSECT b0_dcsm_otp_z1_gpreg : > B0_DCSM_OTP_Z1_GPREG PAGE = 0, type = DSECT b0_dcsm_otp_z1_pswdlock : > B0_DCSM_OTP_Z1_PSWDLOCK PAGE = 0, type = DSECT b0_dcsm_otp_z1_crclock : > B0_DCSM_OTP_Z1_CRCLOCK PAGE = 0, type = DSECT b0_dcsm_otp_z1_bootctrl : > B0_DCSM_OTP_Z1_BOOTCTRL PAGE = 0, type = DSECT b0_dcsm_zsel_z1 : > B0_DCSM_ZSEL_Z1_P0 PAGE = 0, type = DSECT b0_dcsm_otp_z2_linkpointer : > B0_DCSM_OTP_Z2_LINKPOINTER PAGE = 0, type = DSECT b0_dcsm_otp_z2_gpreg : > B0_DCSM_OTP_Z2_GPREG PAGE = 0, type = DSECT b0_dcsm_otp_z2_pswdlock : > B0_DCSM_OTP_Z2_PSWDLOCK PAGE = 0, type = DSECT b0_dcsm_otp_z2_crclock : > B0_DCSM_OTP_Z2_CRCLOCK PAGE = 0, type = DSECT b0_dcsm_otp_z2_bootctrl : > B0_DCSM_OTP_Z2_BOOTCTRL PAGE = 0, type = DSECT b0_dcsm_zsel_z2 : > B0_DCSM_ZSEL_Z2_P0 PAGE = 0, type = DSECT b1_dcsm_otp_z1_linkpointer : > B1_DCSM_OTP_Z1_LINKPOINTER PAGE = 0, type = DSECT b1_dcsm_zsel_z1 : > B1_DCSM_ZSEL_Z1_P0 PAGE = 0, type = DSECT b1_dcsm_otp_z2_linkpointer : > B1_DCSM_OTP_Z2_LINKPOINTER PAGE = 0, type = DSECT b1_dcsm_zsel_z2 : > B1_DCSM_ZSEL_Z2_P0 PAGE = 0, type = DSECT }
CMD文件是否就复制这段代码就可以?
这是第一种直接在程序中加密方式,请帮忙指导?
还有使用C2Prog烧入工具加密,也搞不清楚如何设置?
使用C2Prog 设置密码是否key0 key1 key2 key3 key4 都要设置,设置的是格式是什么(0xFFFFFFF)
这是第二种使用C2prog 加密方式,请帮忙指导?