LPC55S69 : call nonsecure function from secure ISR

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

LPC55S69 : call nonsecure function from secure ISR

516 Views
EugeneHiihtaja
Senior Contributor I

Hi !

I would like to handle interrupt on secure side.

When interrupt occurs, I should be able to call function on nonsecure side ( from Isecure SR context ) and it will send message to FreeRTOS task.

If interrupt handled on nonsecure side, it is not a problem to send message to RTOS becouse it run on nonsecure side also.

I have check all SDK examples and always all calls from nonsecure to secure side.

But how to compose this call :

• BXLNS: Branch with Link Exchange Non Secure - calls a subroutine in NS memory.
On executing either the BXNS or BXLNS instructions the CPU-S will also change to the
Non-secure state (CPU-NS) and thus be in the correct state for executing out of NS
memory.

How  secure side can know where known function located on nonsecure side ?

If secure side in ISR context , does nonsecure will look as in ISR context and I should use freertos function for ISR context ?

Regards,

Eugene

0 Kudos
1 Reply

455 Views
Sabina_Bruce
NXP Employee
NXP Employee

Hello Eugene,

Please refer attached training slides.

Secure code has access right to non secure regions. But Non-Secure code only allowed to access Secure code APIs which are defined in veneer tables.

pastedImage_2.png

Let me know if you have further questions.

Best Regards,

Sabina

0 Kudos