IMX6 Custom baudrate 10000

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IMX6 Custom baudrate 10000

1,452 Views
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

Labels (2)
0 Kudos
8 Replies

929 Views
BiyongSUN
NXP Employee
NXP Employee

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

0 Kudos

929 Views
mafiawolf
Contributor II

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

0 Kudos

929 Views
BiyongSUN
NXP Employee
NXP Employee

i.MX 6Dual/6Quad Applications

Processor Reference Manual

64.5 Binary Rate Multiplier (BRM)

Untitled.png

0 Kudos

929 Views
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 Kudos

929 Views
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 Kudos

929 Views
mafiawolf
Contributor II

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

0 Kudos

929 Views
johndonnelly
Contributor I

That is not a standard baud rate. 

0 Kudos

929 Views
firassobaid
Contributor I

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

0 Kudos