OpenNuvoton / NUC970_U-Boot_v2016.11

U-Boot v2016.11 for NUC970, N9H30, and NUC980
29 stars 45 forks source link

The console does not recognize too fast input #30

Closed HetuSun closed 3 years ago

HetuSun commented 3 years ago

Hi Nuvoton, In the boot command line, there is no problem when we manually input through the keyboard, but garbled characters appear when we copy and paste。 We suspect that it is caused by typing too fast. When experimenting, using the keyboard to quickly input information will also appear garbled。The conclusion is that the console cannot recognize too fast input How to modify uboot to fix this problem?

image

yachen commented 3 years ago

Are you working on NUC970 or N9H30? Can you check if modify this line https://github.com/OpenNuvoton/NUC970_U-Boot_v2016.11/blob/master/drivers/serial/serial_nuc970.c#L85 to

UART0->LCR =0x03;

fix this issue? Thanks.

HetuSun commented 3 years ago

we working on NUC972 Incorporating that modification, the result remains unchanged. . . image

yachen commented 3 years ago

Can you attach your u-boot.bin here. Thanks

HetuSun commented 3 years ago

u-boot.zip This is the uboot.bin that was incorporated and modified(LCR = 0x07 -> LCR = 0x03)

yachen commented 3 years ago

image Please check again, the LCR register value is still 7, not 3.

HetuSun commented 3 years ago

After I manually configure the registers, it can take effect It may be that there are other places in uboot that have the configuration of this register, I will walk through the code again Thank you so much! image