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 件の賞賛
返信