S32DS IDE code issue

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

S32DS IDE code issue

505 Views
Traci
Contributor I

A customer of mine reported a crash in their application. After some investigation I think the problem is coming from some instruction errors as shown in the S32DS IDE file NXP/BSP/Startup/MPC5748G/gnu/interrupt_vectors.S in IVOR4X_Handler, the code snip is:

e_lis r11,OS_CPU_ISRNestingCtr@ha # Increment the ISR nesting counter to reflect the current nesting level.
e_or2i r11,OS_CPU_ISRNestingCtr@l # ...
e_lwz r12,0(r11) # ...
e_add2i. r12,1 # ...
e_stw r12,0(r11) # ...

It seems e_lis with the @ha notation followed by e_or2i with the @l notation is wrong. A possible solution is to use the @h notation in the first instruction (e_lis r11,OS_CPU_ISRNestingCtr@ha ). I noticed the error is repeated in IntStkInUse and OSIntCtxSw. I did not search other files for similar problems.

0 Kudos
Reply
1 Reply

486 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @Traci 

yes, you are right. It was already discussed here, for example:

https://community.nxp.com/t5/MPC5xxx/e-lis-problem-for-S32R274-Z7a-Core/m-p/1262524/highlight/true#M...

Regards,

Lukas

0 Kudos
Reply