Hi Alexander, Have you fixed this issue? I met the same problem
On Tuesday, March 24, 2015 at 4:29:13 PM UTC+8, Alexander Anisimov wrote: > Hello, > > I am using Banana PI board (on A20), and GNU / Linux. > > I have tried to work with the UART at high speed. When work at a baudrate <= > 115200 all is fine. If use uart baudrate 230400, 460800 and more data damage > while transferring. > > I think it may be caused by incorrect configuration UART_CLK. UART_CLK > depends on APB1. > > The default source frequency for APB1 is OSC24M. So the default frequency > APB1 = 24 MHz. For 115200 tolerance = 0.16026%, and for the 230400 - 8.5069%. > It is too high, i think. And that's why errors occur during transfer. > > To solve the problem, I think it is possible to increase APB1 frequency up to > 96 MHz. This will give an acceptable tolerance up to 460800 baudrate. To do > this, I have modified clock.c: added APB1 frequency in script.bin (see > attach). I also added value apb1 = 96 in script.bin. > > After this patch APB1 frequency installed correctly (i've seen debug message > during boot). But bytes damaged while transfer at any speed. > > Maybe you can help me? What i've left out? > > Thanks in advance. -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
