UART & I2C implementation in Userspace program

cancel
Showing results for 
Search instead for 
Did you mean: 

UART & I2C implementation in Userspace program

Jump to solution
137 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
51 Views
igorpadykov
NXP TechSupport
NXP TechSupport

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
51 Views
igorpadykov
NXP TechSupport
NXP TechSupport

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
51 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
52 Views
igorpadykov
NXP TechSupport
NXP TechSupport

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