I read almost every post about lpuart, config is correct except baudrate and clocking.
Baudrate clock/(SBR*(OSR+1))
How is 4MHz/(13*(31+1)) = 9615 not equal to: 4Mhz/(26*(15+1) )= 9615, in theory they're equal but both settings gives me 2 different baudrates so it looks like there is strange corelation between OSR and SBR.
@Edit
I noticed that only 16 and 32 can be set in OSR (15 and 31), any other value results in getting 16/32. In SBR field there is always "1" on third spot from LSB, so if i set 8 result in 12, value of 12 results in 12 etc.
Also there is no way to set FLL/PPL or IRC48M in SIM_SOPT2, value in the register doesn't want to change or clear, only fast internal oscillator can be set.
Knowing these problems i could easily set specific baudrate but achieving 57200 or any higher baud is just impossible when i can't manipulate OSR and SBR freely.
Noticed that on custom K80 board also on FRDM-K82.
Any ideas what might be wrong?