RT1170-EVK how enable PRINTF for use on secondary M4 core ?

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

RT1170-EVK how enable PRINTF for use on secondary M4 core ?

918 Views
EdOfTheMountain
Contributor III

On bare-metal and / or FreeRTOS SDK examples for cm4/cm7 running on a evkmimxrt1170, the PRINTF output from M7 displays on serial terminal.  However, M4 calls to PRINTF are not sent to serial port.  

Must I ensure BOARD_InitDebugConsole is called only from the M4 ?

1) How can make M4 access the serial port using PRINTF and NOT the M7 ?

2) Can both M4 and M7 access the same serial port using PRINTF if both call BOARD_InitDebugConsole ?
I understand this may be problem with un-synchronized combined output.

3) Are there any examples for RT1170-EVK,  that both M4 and M7, can have their own dedicated serial port for printing debug statements?

Thanks in advance for any debug console tips,

-Ed

 

 

Tags (1)
0 Kudos
3 Replies

891 Views
EdOfTheMountain
Contributor III

This seems to work

  1. Comment-out C7 call to BOARD_InitDebugConsole in evkmimxrt1170_hello_world_cm4
  2. On C4, add #include "fsl_debug_console.h" and call to BOARD_InitDebugConsole

 

PRINTF using float "%f" does not printing anything?

Removing "CR_INTEGER_PRINTF" from the preprocessor did not fix?

0 Kudos

884 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi,

It seems you've solved this problem.

https://community.nxp.com/t5/i-MX-RT/RT1170-EVK-how-enable-PRINTF-float-Removing-CR-INTEGER-PRINTF/m...

Thanks for sharing.

Regards,

Jing

0 Kudos

897 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi @EdOfTheMountain 

Yes, you can use M4 to print via UART only. The LPUART1 is used to print information. M4 can also access LPUART4.

 

Regards,

Jing