xrdc
Overview
The xrdc example shows how to control the memory and peripheral access policy using XRDC.
In this example, one peripheral and a memory region are set to unaccessible, then the hardfault occurs.
Running the demo
The log below shows the output of the example in the terminal window. NOTE The access address might be different by platforms.
XRDC example start
Set the peripheral not accessiable
Violent access at address: 0x40032000
The peripheral is accessiable now
Set the memory not accessiable
Violent access at address: 0x08000000
The memory is accessiable now
XRDC example Success