CONFIG_BAUDRATE doesn't match
Hello,
I'm working with an AMCC based board and I'm running into an issue when I set my uart0 baud rate. In the include/configs/amcc-common.h there is the following code:
#define CONFIG_BAUDRATE 115200
#define CONFIG_SYS_BAUDRATE_TABLE \
{300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200, 230400}but after checking it on the o-scope it's not at 115200 baud. It seems like there is an offset of 3 because if I set the following bauds I get values on the o-scope like so:
#define CONFIG_BAUDRATE 9600 // o-scope baud = 57600 #define CONFIG_BAUDRATE 19200 // o-scope baud = 115200 #define CONFIG_BAUDRATE 38400 // o-scope baud = 230400
Could someone point me in the direction of how this may be happening?
Thanks!
--
View this message in context: http://u-boot.10912.n7.nabble.com/CONFIG-BAUDRATE-doesn-t-match-tp162206.html
Sent from the U-Boot mailing list archive at Nabble.com.
Quoted 12 lines · txcotrader
I'm working with an AMCC based board and I'm running into an issue when I set my uart0 baud rate. In the
include/configs/amcc-common.hthere is the following code:#define
CONFIG_BAUDRATE115200#define CONFIG_SYS_BAUDRATE_TABLE \ {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200, 230400}but after checking it on the o-scope it's not at 115200 baud. It seems like there is an offset of 3 because if I set the following bauds I get values on the o-scope like so:
Quoted 5 lines
#define CONFIG_BAUDRATE 9600 // o-scope baud = 57600 #define CONFIG_BAUDRATE 19200 // o-scope baud = 115200 #define CONFIG_BAUDRATE 38400 // o-scope baud = 230400Could someone point me in the direction of how this may be happening?
Which 4xx variant is used? Do you have an external clock for the uarts? Then you need to check if this value is configured correctly:
#define CONFIG_SYS_EXT_SERIAL_CLOCK 11059200
If your baudrate is generated from the internal clocks then you need to make sure that this values are set:
#define CONFIG_SYS_NS16550_CLK get_serial_clock()
#undef CONFIG_SYS_EXT_SERIAL_CLOCK
Which did you configure? And for which CPU vaiant?
Thanks,
Stefan
Stephan,
The processor is a 460SX (shares the same data sheet as 460GT).
In my /include/configs/<boardname>.h file I include "amcc-common.h" which has what you suggested:
/*
* UART
*/
#define CONFIG_SYS_NS16550
#define CONFIG_SYS_NS16550_SERIAL
#define CONFIG_SYS_NS16550_REG_SIZE 1
#define CONFIG_SYS_NS16550_CLK get_serial_clock()
#define CONFIG_BAUDRATE 115200
#define CONFIG_SYS_BAUDRATE_TABLE \
{300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200, 230400}Thanks,
Greg
--
View this message in context: http://u-boot.10912.n7.nabble.com/CONFIG-BAUDRATE-doesn-t-match-tp162206p163043.html
Sent from the U-Boot mailing list archive at Nabble.com.