STM32MP157A-DK1 UART3 kernel module
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-01-06 3: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.
- Labels:
-
STM32MP15 Lines
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-02-07 9:54 AM
Not realy. But thanks i can use the tool to test stuff.
