15 Turn on HUART
15.1 Histroy
- 2014-05-30, rayoslee, release V0.0.1
15.2 FAQ
- How to enable HUART port ?
go to yourBSP/linux-2.6.35.4_fa93, and make menuconfig
Device Drivers>Character devices>Serial drivers
enable Nuvoton W55FA93 HUART supportvi .config to change boot option, UART’s device name is ttyS1, HUART’s device name is ttyS0 in S605-32 demo kit.
---CONFIG_CMDLINE="root=/dev/ram0 console=ttyS1,115200n8 rdinit=/sbin/init mem=32M vt.global_cursor_default=0"
+++CONFIG_CMDLINE="root=/dev/ram0 console=ttyS0,115200n8 rdinit=/sbin/init mem=32M vt.global_cursor_default=0"
it can not work for both ttyS.CONFIG_CMDLINE="root=/dev/ram0 console=ttyS1,115200n8 console=ttyS0,115200n8 rdinit=/sbin/init mem=32M vt.global_cursor_default=0"
it can work for different communications ttyS or ttyCONFIG_CMDLINE="root=/dev/ram0 console=tty0 console=ttyS0,115200n8 rdinit=/sbin/init mem=32M vt.global_cursor_default=0"
- How to send message from HUART port to UART port ?
- In S605-32 demo kit, uboot’s debug message outputs to ttyS1. So you can echo it from ttyS0.
echo hello iaminttyS0 > /dev/ttyS1
- In S605-32 demo kit, uboot’s debug message outputs to ttyS1. So you can echo it from ttyS0.