run Gpt_example_S32G247A_M7 from SD card

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

run Gpt_example_S32G247A_M7 from SD card

跳至解决方案
755 次查看
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 项奖励
1 解答
703 次查看
won0020
Contributor III

Hello,
commenting out this line worked for me:

won0020_0-1686695207852.png

 

在原帖中查看解决方案

0 项奖励
3 回复数
729 次查看
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.

704 次查看
won0020
Contributor III

Hello,
commenting out this line worked for me:

won0020_0-1686695207852.png

 

0 项奖励
741 次查看
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 项奖励