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

2,446件の閲覧回数
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 返信

2,423件の閲覧回数
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,