Problem with Secure Boot on P2041

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Problem with Secure Boot on P2041

617 Views
saadahmad
Contributor I

Hi,

I am trying to activate secure boot on P2041RDB.

I am using (rcw_14g_sben_1500mhz.bin) RCW with secure boot and boot hold enabled

(without ITS=1).

I am following procedure from SDK documentation to add SRKH on runtime during boot hold (without blowing fuses):

Using CW TAP (USB)

Open CCS (On Ubuntu)

source IDcode.tcl (selected cw usb TAP)

# Connect to CCS and configure Config Chain

ccs::config_chain p2040

display ccs::get_config_chain

#Check Initial SNVS State and Value in SCRATCH Registers

ccs::display_mem 0 0xfe314014 4 0 1

ccs::display_mem 0 0xfe0e0200 4 0 4

#Wrie the SRK Hash Value in Mirror Registers

ccs::write_mem 0 0xfe0e807c 4 0 <SRKH1>

ccs::write_mem 0 0xfe0e8080 4 0 <SRKH2>

ccs::write_mem 0 0xfe0e8084 4 0 <SRKH3>

ccs::write_mem 0 0xfe0e8088 4 0 <SRKH4>

ccs::write_mem 0 0xfe0e808c 4 0 <SRKH5>

ccs::write_mem 0 0xfe0e8090 4 0 <SRKH6>

ccs::write_mem 0 0xfe0e8094 4 0 <SRKH7>

ccs::write_mem 0 0xfe0e8098 4 0 <SRKH8>

#Get the Core Out of Boot Hold-Off

ccs::write_mem 0 0xfe0e00e4 4 0 0x00000001

The problem is on second debug command <which ever it is> I always get (scan timeout error)

But If I retry again the command works.

However when I read SSM_ST (Security State of SEC_MON), it goes to "Non-Secure" state.

The cores are still in boot hold but the security state changes to Non-Secure.

After releasing boot hold the ISBC gives error "SSM_CHECKSTS" (SEC_MON State Machine

not in CHECK state at start of ISBC) and SoC gets stuck (no output).

Thanks in advance for any help you are able to provide.

Labels (1)
Tags (1)
0 Kudos
1 Reply

281 Views
bpe
NXP Employee
NXP Employee

Hello,

Sorry, but the information you are requesting is treated as confidential info at this time and requires a signed NDA (Non-Disclosure Agreement). Naturally, we cannot discuss this with you in public anyway, this requires to be handled as a Support Case:

How to submit a new question for NXP Support

Be aware that to give you remote support through an SC, we will still need the confirmation of a Freescale employee that the NDA is in place. If you want to go this route, the next steps will be: If you have already signed a NDA agreement for this product, please contact the person who assisted you or create a SC and name us a Freescale person that can confirm this. If you have not signed an agreement, please contact your local Freescale Distributor Salesperson or FAE for assistance. For a listing of our distributors, refer to: http://www.freescale.com/webapp/sps/site/overview.jsp?code=DISTRIBUTORS

Have a great day,
Platon

-------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-------------------------------------------------------------------------------

0 Kudos