MPC5643L INTC sw handlers

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MPC5643L INTC sw handlers

891件の閲覧回数
Pat
Contributor III

Hi,

Is there a complete intc sw handlers file for IVOR0-15 and IVOR32-34 available for MPC5643L, not only IVOR4 ?

Best regards,

Pat

0 件の賞賛
3 返答(返信)

716件の閲覧回数
petervlna
NXP TechSupport
NXP TechSupport

Hi,

We do not have such file. In 99.9% cases this is handled by OS.

For our example purpose its enough to have IVOR0,1,4 handlers.

regards,

Peter

0 件の賞賛

716件の閲覧回数
Pat
Contributor III

Hi petervlna‌, and all,

Don’t hesitate to correct, change or anything else to improve the intc SW IVORx prolog and epilog handlers of the attached file above. 

It’s a mixed source from S32DS and the example Example MPC5643L eTimer DMA GHS614.

0 件の賞賛

716件の閲覧回数
Pat
Contributor III

Hi petervlna‌,

I have defined a -wx(read not allowed) region for CoreZ4d/Nexus master with MPU module in order to create an IVOR1 exception when the core read data in this region. 

The IVOR1 occurs as expected, then I clear the MCSR register with the following code :

void IVOR1_Exception_Handler(void){
    uint32_t mcsr = __MFSPR(572);
    __MTSPR(572, mcsr);
    /* Enables region 2 to grant Core Z4D_0 read permission */
    (void)SMPU_DRV_EnableRegion(SMPU_0, 2U, true);
}

Please have a look on attached intc_sw_handlers file and let me know your changes or comments.

Best regards,

Pat

0 件の賞賛