S32 Design studio project no "ARM EWL" libraries support

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

S32 Design studio project no "ARM EWL" libraries support

528 Views
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 Kudos
4 Replies

514 Views
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 Kudos

488 Views
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 Kudos

460 Views
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 Kudos

452 Views
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 Kudos