I am having problems getting the memory protection to work.
I have not found a clear definition on how to configure the TEX,S,C & B bits for the various memory regions in the nRF52832.
Anyone with sample code or information on this?
I am having problems getting the memory protection to work.
I have not found a clear definition on how to configure the TEX,S,C & B bits for the various memory regions in the nRF52832.
Anyone with sample code or information on this?
The problem was incorrect setting of the size field.
For TEX,S,B and C bits I went with the suggestions in section B3.1 of the ARMv7-M architecture reference manual:
Code regions as WT (Write through) (TEX,S,B,C)=(110,1,1,0) RAM Data regions as WBWA (Write-back, write-allocate). (TEX,S,B,C)=(101,1,0,1)
The problem was incorrect setting of the size field.
For TEX,S,B and C bits I went with the suggestions in section B3.1 of the ARMv7-M architecture reference manual:
Code regions as WT (Write through) (TEX,S,B,C)=(110,1,1,0) RAM Data regions as WBWA (Write-back, write-allocate). (TEX,S,B,C)=(101,1,0,1)