Normal peripherals (non-private peripherals) cannot be accessed after configuring the cortex M4 cont

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Normal peripherals (non-private peripherals) cannot be accessed after configuring the cortex M4 cont

751 Views
Derrick_Nexus
Contributor II

Hi,Dear Community:

  Recently, I encountered a strange problem when configuring the S32K144 to enter user mode. After entering user mode with __set_CONTROL(0x05), according to the official arm technical instruction manual, it should be possible to access common peripherals like ADC as long as the core registers are not accessed, but in fact, When I access ADC peripherals after entering User mode, I will enter an exception interrupt. Why is this? Attached is a simple sample code

Thank you for taking the time.

0 Kudos
Reply
1 Reply

728 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@Derrick_Nexus

This may be because AIPS requires supervisor privilege level for accesses

 

Senlent_1-1677205943007.png

Senlent_2-1677205951346.png

BR!

     Jim,