} {
ahb_ap_secure_access
echo "TZEN option bit enabled"
- set use_secure_workarea 1
+
+ # check if FLASH_OPTR.RDP is not Level 0.5
+ if {[expr {$FLASH_OPTR & 0xFF}] != 0x55} {
+ set use_secure_workarea 1
+ }
}
set workarea_addr [$_TARGETNAME cget -work-area-phys]