Skip to main content
Visitor II
September 17, 2021
Solved

How to access peripheral registers and physical memory from user space

  • September 17, 2021
  • 2 replies
  • 1441 views

Hi,

I'd like to be able to read/write for debug purposes peripheral registers of the MPU and MCU from Linux user space. Of course all under root permissions.

The most straightforward way should be doing it using /dev/mem but I'm not sure if it is a best way to go. Any thought would be highly appreciated.

Thanks.

    This topic has been closed for replies.
    Best answer by PatrickF

    Hi,

    Please see https://wiki.st.com/stm32mpu/wiki/How_to_read_or_write_peripheral_registers

    See also https://wiki.st.com/stm32mpu/wiki/Debugfs

    Regards.

    In order to give better visibility on the answered topics, please click on 'Select as Best' on the reply which solved your issue or answered your question. See also 'Best Answers'

    2 replies

    PatrickFAnswer
    Technical Moderator
    September 17, 2021

    Hi,

    Please see https://wiki.st.com/stm32mpu/wiki/How_to_read_or_write_peripheral_registers

    See also https://wiki.st.com/stm32mpu/wiki/Debugfs

    Regards.

    In order to give better visibility on the answered topics, please click on 'Select as Best' on the reply which solved your issue or answered your question. See also 'Best Answers'

    dimaxAuthor
    Visitor II
    September 17, 2021

    Thanks.