cancel
Showing results for 
Search instead for 
Did you mean: 

STM32MP157A-DK1 UART3 kernel module

SAman.1
Associate III

Hy wanted to make a kernel Module and i wanted to know whats the best way to acces the uart from Kernel Space.

So far i enabled the UART in the device try and now i am able to send data. But now i know since the uart us in userspace i cant access it fom the kernel space. My questen is what is a common solution for this problem. An example code would also be helpfull.

2 REPLIES 2
ArmandG
ST Employee

Hi @SAman.1​ ,

You can use devmem tool which allow you to read registers from the kernel space, so you can confirm the UART3 is well enabled.

There is a dedicated wikipage for this : https://wiki.st.com/stm32mpu/wiki/How_to_read_or_write_peripheral_registers

Hope it helps.

Best regards,

Armand

SAman.1
Associate III

Not realy. But thanks i can use the tool to test stuff.