BSP support - UART

ba_f ba_f at rbg.informatik.tu-darmstadt.de
Thu Oct 15 17:21:59 CEST 2015


Am 2015-10-14 16:27, schrieb Martin Schröder:
> Am 14.10.2015 um 00:39 schrieb ba_f:
>> Hello Hackers,
>> 
>> 
>> I have a custom board with Zynq processor.
>> Unfortunately, it uses UART0 which produces only garbage.
>> (A lot of white spaces or tabs and single freak characters, if this is 
>> any help.)
>> 
>> My ZedBoard uses UART1 and Fiasco runs successfully on it.
>> 
>> I'm sure Zynq is proper configured on the new board, because the 
>> U-Boot output is displayed correctly.
>> But the Fiasco output then looks like a wrong baud-rate, or something.
>> With both boards i open console with:
>> picocom /dev/ttyACM0 -b 115200
> 
> 
> Looks like a wrong calculated divisor in the baudrate divider
> register. You should check the actual UART clock source and change the
> value in uart_cadence.cc accordingly: _regs-write<unsigned>(BAUDGEN,
> 50000000 / r / (div + 1));
> 
> 
> Martin
> 


Yes, u're right.
The clock was changed in the new project.



Thank You,

ba_f



More information about the l4-hackers mailing list