J-link PRO: Interrupt setup problem??

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

J-link PRO: Interrupt setup problem??

160 Views
Andy_B
Contributor I

​I am using an NXP S32K344EVB-Q172 for firmware development, using primarily NXP RTD firmware plus my application code with IAR Embedded Workbench and configuration using Tresos. I can flash the code and run / debug using the on-board PEmicro debugger.

I am trying to switch over to the J-link PRO debugger we will use with our target board. I can connect the J-link PRO and download the code with no problems, but when the interrupt setup code is executed and I attempt to write to the NVIC to enable an interrupt (the first one is PIT_0) with the following line of code:

S32_NVIC->ISER[(uint32)(eIrqNumber) >> 5U] = (uint32)(1UL << ((uint32)(eIrqNumber) & (uint32)0x1FU));​

The processor goes to an undefined_handler routine:

void undefined_handler(void)

{

while(TRUE){};

}

This behavior occurs on the SDK I'm using, and I have also observed it with my target board.

​This does NOT occur when I use the on-board PEmicro debugger, so I suspect I've got something improperly set.​ The J-link PRO seems to be unable to properly set interrupts.

Any assistance would be greatly appreciated. Thank you in advance. ​

0 Kudos
0 Replies