How LP55S69 uses printf

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How LP55S69 uses printf

946 次查看
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。

标签 (1)
0 项奖励
回复
1 回复

872 次查看
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 项奖励
回复