How LP55S69 uses printf

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

How LP55S69 uses printf

421 Views
240817776
Contributor I

 hi,

   The trust zone was opened with LPC55S69 and developed using the official IDE MCUXpresso IDE.

How to set it so that the printf can be called in both safe and non-safe areas, without PRINTF.

  thanks。

Labels (1)
0 Kudos
1 Reply

347 Views
Sabina_Bruce
NXP Employee
NXP Employee

Hello,

The PRINTF macro is declared for the printf function. I would recommend to take a look at the trustzone example helloworld which is an example that has the non-secure part and the secure part. 

In the secure part in order to print in the serial console it uses the PRINTF. To call the same function from the non-secure part it calls the NSE_PRINTF.

This function is defined in the veneer table which creates a non secure entry to use the printf function.

As shown below:

pastedImage_1.png

Best Regards,

Sabina

0 Kudos