S32 Design studio project no "ARM EWL" libraries support

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

S32 Design studio project no "ARM EWL" libraries support

957 次查看
LeoZ
Contributor III

when I refer Example S32K_printf_implementation - S32DS_1.0 - NXP Community this topic,

it mentioned bellow 'libraries support' setting, 

ref_old.jpg

 

but in my project, there is no this selection,

my environment: S32 Design Studio 3.5, MCU: S32K358

rer_new.jpg

how could I add aforementioned "ewl_c" selection 

0 项奖励
回复
4 回复数

943 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi LeoZ,

Do you want to implement printf by LPUART peripheral, or by Semihosting when debugging?  Attached project implementing Printf by UART, it is based on S32DS v3.4 + S32K3 RTD 0.9.0. Although the RTD version and part number are different, I hope it will be helpful to you.

Best Regards,
Robin

0 项奖励
回复

917 次查看
LeoZ
Contributor III

Thank you, I want to use printf for uart, and I succeeded in S32K358 referring to your project. 

While I found it can not send floating number, then I refer to 浮点数在串口打印的函数  to convert float number to string to send,

I do not know if there is better way to print floating number

printf_data.jpg

0 项奖励
回复

889 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

Did you checked the Support printf float format for newlib_nano library (-u_printf_float) ?

Support printf float format for newlib_nano library.png

0 项奖励
回复

881 次查看
LeoZ
Contributor III

thank you, checking that solved my problem

btw: from the warning, it takes '(float32) a' as a double,  I am not sure if it will cost more uart time to take 'a' as double than single-floating, (if so) then if existing some way to modify printf for it. anyway, this question is not important, just curious.

xxxxxxxxx7.jpg

0 项奖励
回复