Escalation issues using BAM

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

Escalation issues using BAM

832 次查看
KAIH1
Contributor II

Hi, I am using BAM and am having problems upgrading my program with CAN communication.

When debugging my program with JTAG, there was no problem, but after upgrading through CAN, the program ran incorrectly. When I block a code( INTC.CPR.B.PRI = 0;). After this sentence, continue to use CAN upgrade, found that the program runs normally.
So I ask the following question:
When using CAN to upgrade my program, if I need to use interrupts, do I need to do some other initialization operations like this file(mpc5500_booke.mac) , and if so, how should I write my code?

 

33.png

 

0 项奖励
回复
1 回复

813 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hello,

When debugging my program with JTAG, there was no problem, but after upgrading through CAN, the program ran incorrectly.

It looks like you have issues with settings interrupt priorities correctly.

Debugger handles interrupts differently as there is a lot of time between execution of instructions due to stepping trough code.

Also debugger by default disable watchdog SWT.

 
 

Untitled.png

Best regards,
Peter

0 项奖励
回复