This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to use the SK_switchNonSec() when secure boot?

I'm using the C6748-E chip with secure boot.

This is part of my code:

......

The LED_BLINK is a function that makes LED blinks.

P1. If the code is like this:

int main(){

    LED_BLINK();

}

The LED on the board blinks normally.

P2. If the code is like this:

int main(){

   binding();

}

The binding function can works well, and it will print out messages.

At the 1st Power up:

At the 2nd Powerup:

The "ERROR" is just that the   resultVal = SK_setUserKey((void*) pUserKey); returns 7.

And in the code, the data is not written back unless resultVal is 0. So the data is only written back at the 1st powerup.

At the 3rd and following powerups:

            get the same message as 2nd powerup. So I think the signature is alright.

And I tried boot the binding program with uart boot(nandflash already download with LED_BLINK.ais), it works well, the message is the same and the LED binks normally.

So I think the binding program is allright.

P3. If the code is like this:

int main(){

   binding();

   SK_switchNonSec(LED_BLINK);

}

Boot from nand:

When 1st PowerUP, the same message in P2 can be got. But the LED didn't blink.

When 2nd PowerUp, the same message in P2 can be got. But the LED still didn't blink.

 

We are plan to take production, and the deadline is almost got, please help!

Frank