how to use printf() to console in freertos

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

how to use printf() to console in freertos

Jump to solution
576 Views
arhar001
Contributor I

Hi all,

In my project it can use the printf() function to output message in the console window, but after I added the FreeRTOS module,there is noting in the console window.

How can I deal with it?

SW: S32 Design Studio for Power Architecture Version 2017.R1

Best regards,

 

0 Kudos
1 Solution
516 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

usually it is enough to 
- select library with console support
- add SEMIHOSTING in preprocessor setting for SDK based code
- enable semihosting in debug setting
So do similar as in https://community.nxp.com/t5/S32-Design-Studio/Semihosting-for-e200/td-p/667381
But seems with FreeRTOS it is not enough.

I asked SDK team to comment this, but got no feedback still.

BR, Petr

View solution in original post

0 Kudos
1 Reply
517 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

usually it is enough to 
- select library with console support
- add SEMIHOSTING in preprocessor setting for SDK based code
- enable semihosting in debug setting
So do similar as in https://community.nxp.com/t5/S32-Design-Studio/Semihosting-for-e200/td-p/667381
But seems with FreeRTOS it is not enough.

I asked SDK team to comment this, but got no feedback still.

BR, Petr

0 Kudos