Skip to main content
Visitor II
January 6, 2021
Question

STM32MP157A-DK1 UART3 kernel module

  • January 6, 2021
  • 2 replies
  • 799 views

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.

    This topic has been closed for replies.

    2 replies

    ST Employee
    January 7, 2021

    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.1Author
    Visitor II
    February 7, 2021

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