.sect "csmpasswds"
.if 0
; NOTE: If CSM Control is enabled please define the password values
; in bl_config.h
.int PWL0 ;PWL0 (LSW of 128-bit password)
.int PWL1 ;PWL1
.int PWL2 ;PWL2
.int PWL3 ;PWL3
.int PWL4 ;PWL4
.int PWL5 ;PWL5
.int PWL6 ;PWL6
.int PWL7 ;PWL7 (MSW of 128-bit password)
.else
; NOTE: If CSM Control is disabled please define the password values
; below:
.int 0x1111 ;PWL0 (LSW of 128-bit password)
.int 0xFFFF ;PWL1
.int 0xFFFF ;PWL2
.int 0xFFFF ;PWL3
.int 0xFFFF ;PWL4
.int 0xFFFF ;PWL5
.int 0xFFFF ;PWL6
.int 0xFFFF ;PWL7 (MSW of 128-bit password)
.endif
;———————————————————————-
; For code security operation, all addresses between 0x3F7F80 and
; 0x3F7FF5 cannot be used as program code or data. These locations
; must be programmed to 0x0000 when the code security password locations
; (PWL) are programmed. If security is not a concern, then these addresses
; can be used for code or data.
; The section "csm_rsvd" can be used to program these locations to 0x0000.
.sect "csm_rsvd"
.loop (3F7FF5h – 3F7F80h + 1)
.int 0x0000
.endloop
各位大牛帮帮忙,我用上面一段代码来加密,但第二次在CCS中设置了相应的密码也连不上芯片?求指点!上图CCS环境设置。
yanqiang zhan:
帖子沉了,顶下~~~~