2021-01-06 03:32 AM
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.
2021-01-06 10:26 PM
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
2021-02-07 09:54 AM
Not realy. But thanks i can use the tool to test stuff.