cancel
Showing results for 
Search instead for 
Did you mean: 

How to access peripheral registers and physical memory from user space

dimax
Senior

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.

1 ACCEPTED SOLUTION

Accepted Solutions
PatrickF
ST Employee

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'

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

View solution in original post

2 REPLIES 2
PatrickF
ST Employee

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'

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
dimax
Senior

Thanks.