Community Translation - Output UART Log on S6E1C Series Starter Kit with PDL2.1.0 to Host PC Terminal - KBA226798

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Hi,

I'd like to translate KBA226798 into Japanese.

Please confirm to my work.

moto

Original KBA: KBA226798

Output UART Log on S6E1C Series Starter Kit with PDL2.1.0 to Host PC Terminal - KBA226798

0 Likes
2 Replies
JennaJo
Moderator
Moderator
Moderator
1000 replies posted 750 replies posted 500 replies posted

Hello, Tanaka-san

yes, confirm to work for KBA.

Thanks,

Jenna

Jenna Jo
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Original KBA: KBA226798

Output UART Log on S6E1C Series Starter Kit with PDL2.1.0 to Host PC Terminal - KBA226798

Translated by: MoTa_728816

==============================

タイトル: PDL 2.1.0 を使用して S6E1C シリーズ スタータ キットの URART ログを ホストPC のターミナルに出力する - KBA226798

ヴァージョン: **

質問:

PDL 2.1.0 を使用して S6E1C シリーズ スタータ キットの URART ログを ホストPC のターミナルに出力するにはどうしたら良いですか?

回答:

スタータ キットでは  SOT1_1 と SIN1_1 ピンが S6E1C3 マイクロコントローラのピン SIN0_1 と SOT0_1 にそれぞれ接続されていて、CMSIS-DAP ポートと S6E1C3 マイクロコントローラの UART 通信を可能にしています。

001-pastedImage_0.png

しかし、PDL 2.1.0 (…\PDL\2.1.0\utilities\printf_scanf\uart_io.c) では、MCU の UART TX ポートは SOT0_0 に設定されています。その為、 S6E1C シリーズのスタータ キットでは、下記の変更が必要になります。

ファイル: …\PDL\2.1.0\utilities\printf_scanf\uart_io.c

関数: void Uart_Io_Init(void)

#if (PDL_UTILITY_ENABLE_UART_PRINTF == PDL_ON)

- SetPinFunc_SOT0_0();  

+ SetPinFunc_SOT0_1();  

Mfs_Uart_EnableFunc(UartCh, UartTx);

#endif

詳細については下記をご参照ください。

FM0-64L-S6E1C3 - Arm® Cortex®-M0+ MCU Starter Kit with USB and Digital Audio Interface

Peripheral Driver Library (PDL)

==============================

25-May-2020

moto

0 Likes