run Gpt_example_S32G247A_M7 from SD card

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

run Gpt_example_S32G247A_M7 from SD card

Jump to solution
1,091 Views
won0020
Contributor III

Hello, I cannot run the example "Gpt_example_S32G247A_M7" from the SD card according to the instructions "S32G-GOLDBOX-SW-UG.pdf". After editing the linker file according to the instructions, I am able to run "Can_Llce_DS_Loopback_S32G274A_M7" and "Fee_example_S32G274A_M7". While debugging "Gpt_Example", I found that after reducing "int_sram_no_cacheable" from 0x34500000 to a lower value, the example starts to throw "undefined_handler" exception. Thanks in advance for any idea.

0 Kudos
Reply
1 Solution
1,039 Views
won0020
Contributor III

Hello,
commenting out this line worked for me:

won0020_0-1686695207852.png

 

View solution in original post

0 Kudos
Reply
3 Replies
1,065 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

This could be related to the default MPU configuration. The image below provides this information:

DanielAguirre_0-1686679185999.png

If no configuration for the MPU is provided, the default will be used, hence the "undefined_handler" you might be seeing.

You could try and disable the MPU enabling, by comment the following lines under "project/Project_Settings/Startup_Code/system.c":

DanielAguirre_1-1686679506744.png

Please, let us know.

1,040 Views
won0020
Contributor III

Hello,
commenting out this line worked for me:

won0020_0-1686695207852.png

 

0 Kudos
Reply
1,077 Views
SSyb
Contributor III

I have not used the Goldbox examples yet, but "undefined handler" sounds like there is an interrupt raised, for which there is no handler. check in the NIVC (in a hardware debugger) which interrupt this is ?

0 Kudos
Reply