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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

1,488件の閲覧回数
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

 

 

タグ(1)
0 件の賞賛
返信
3 返答(返信)

1,461件の閲覧回数
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 件の賞賛
返信

1,454件の閲覧回数
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 件の賞賛
返信

1,467件の閲覧回数
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