This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS570LS3137 MPU code in HALCoGen

Other Parts Discussed in Thread: HALCOGEN

Hello,

The MPU code generated by HALCoGen includes a Data Synchronization Barrier (dsb) instruction after the reading of the SCTLR and an Instruction Synchronization Barrier (isb) instruction after the writing of the SCTLR.  I have to provide a justification for all code, so I was wondering why these sync instructions were used here.  Are they needed for access to SCTLR, or are they needed because the MPU is disabled/enabled? 

Thanks, Charlie Johnston