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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

754 次查看
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 项奖励
回复
1 回复

731 次查看
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,