UART & I2C implementation in Userspace program

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

UART & I2C implementation in Userspace program

Jump to solution
736 Views
ashoksowndar
Contributor II

Hi,

I am using i.MX 8M based SOM for my development and build the working image for it using Yocto. Now I want to use general purpose UART  & I2C to communicate with external device using a C program written in userspace.

Can you please help me with this?

Thanks and Regards,

Ashok

0 Kudos
1 Solution
650 Views
igorpadykov
NXP Employee
NXP Employee

Hi Ashok

such userspace  program(C language based program) can be written using

standard Linux APIs as described in suggested documentation.

pastedImage_1.jpg

pastedImage_2.jpg

 Best regards
igor

View solution in original post

3 Replies
650 Views
igorpadykov
NXP Employee
NXP Employee

Hi Ashok

please look at linux documentation (Porting Guide, Linux Manual

with description of drivers) on link

i.MX Software and Development Tools | NXP 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
650 Views
ashoksowndar
Contributor II

Hi igorpadykov,

The Linux documentation that you have referred are related to kernel and low-level driver configuration.

But I am expecting some way to communicate with peripherals connected through UART or I2C interface using a userspace  program(C language based program).

Thanks in Advance!

Regards,

Ashok

0 Kudos
651 Views
igorpadykov
NXP Employee
NXP Employee

Hi Ashok

such userspace  program(C language based program) can be written using

standard Linux APIs as described in suggested documentation.

pastedImage_1.jpg

pastedImage_2.jpg

 Best regards
igor