This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

求助!!DM365添加UART1用于GPS



想在dm365上使用uart1用于GPS数据接收。gps datasheet要求波特率9600。
对linux-2.6.18_pro500/arch/arm/mach-davinci下mux_cfg.c做如下修改配置uart1:
MUX_CFG("UART1_RXD2",           4,   14,    3,    3,     0)
MUX_CFG("UART1_TXD2",           3,   29,    3,   3,      0)
同时添加以下代码:
static const short dm365_uart1_pins[] = {
        DM365_UART1_RXD2, DM365_UART1_TXD2,
        -1
};


static const short *dm365_pins[DAVINCI_LPSC_IMCOP + 1] = {
...
[DAVINCI_LPSC_UART1]            = dm365_uart1_pins,
...
};

编译下载启动信息显示:

3.jpg 
cd /dev没有发现ttyS0和ttyS1,手动创建节点
mknod ttyS0 c 4 64
mknod ttyS1 c 4 65 
然后cat ttyS1接收数据,但是没有反应,往ttyS1发送的话,好像可以
2.jpg 
查看ttyS1的信息波特率就是9600。不清楚为什么ttyS1无**常接收。
1.jpg 
ps:gps模块是可以接收数据的,因为放别的板子上可以正常工作。