IMX6 Custom baudrate 10000

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

IMX6 Custom baudrate 10000

2,179 次查看
firassobaid
Contributor I

Hello,

I have IMX6 chip and I am trying to use RS232 with baudrate 10000 (custom)

but I cannot implement it.

Can anyone please tell me how to achieve this goal?

I am using IMX6 with Android OS (C coding using NDK)

Thank you

标签 (2)
0 项奖励
回复
8 回复数

1,656 次查看
BiyongSUN
NXP Employee
NXP Employee

Please check the formular in  64.5 Binary Rate Multiplier (BRM) to set the baud rate.

0 项奖励
回复

1,656 次查看
mafiawolf
Contributor II

Could you write it clearly? I am just a newbie.

0 项奖励
回复

1,656 次查看
BiyongSUN
NXP Employee
NXP Employee

i.MX 6Dual/6Quad Applications

Processor Reference Manual

64.5 Binary Rate Multiplier (BRM)

Untitled.png

0 项奖励
回复

1,656 次查看
b36401
NXP Employee
NXP Employee

Please try to add your custom baud rate into drivers/tty/serial/serial_core.c

and drivers/char/tty_ioctl.c source files prior to OS compilation.

0 项奖励
回复

1,656 次查看
firassobaid
Contributor I

Victor Linnik, I did not find drivers/char/tty_ioctl.c , I did find drivers/tty/tty_ioctl.c

but when I compile I get this error:

CC  drivers/tty/n_tty.o
  CC  drivers/tty/tty_ioctl.o

drivers/tty/tty_ioctl.c:213:36: error: 'B10000' undeclared here (not in a function)

make[2]: *** [drivers/tty/tty_ioctl.o] Error 1

make[1]: *** [drivers/tty] Error 2

make: *** [drivers] Error 2

0 项奖励
回复

1,656 次查看
mafiawolf
Contributor II

How did you configure it? I wanna use a custom baudrate too but I dont know how to do it.

0 项奖励
回复

1,656 次查看
johndonnelly
Contributor I

That is not a standard baud rate. 

0 项奖励
回复

1,656 次查看
firassobaid
Contributor I

yeah, i am looking for Custom baud rate 10000
Is it possible in IMX6 ?

0 项奖励
回复