MBDT ,The application is not running properly

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

MBDT ,The application is not running properly

跳至解决方案
1,403 次查看
742970882
Contributor I

dear NXP expert:

      I compile successfully MBDToolboxMPC574xPReleaseV2. 0.0 the example model, and through RAppID_Boot_Loader_Utility tools to complete the program download, but the application cannot run normally.

  • The program goes directly to the following location:

1533701581(1).jpg

thanks

标签 (1)
0 项奖励
回复
1 解答
1,177 次查看
constantinrazva
NXP Employee
NXP Employee

Hello 742970882@qq.com‌,

Depending on code optimization options used to build the executable file, you might not see exactly the flow that you have in your code. If you enable the Instruction Stepping Mode (up-left, blue circle in the picture) you can navigate through the disassembly of your code. You can see that in this example (the uart example from our toolbox), the code is generating the call to MC_MODE_INIT() and it is called. Furthermore, you can enter in the disassembly window an address/function name and it will navigate you to the desired function. You can also have breakpoints here, so you can search MC_MODE_INIT in the disassembly window, put a breakpoint there and see it get called.

pastedImage_5.jpg

Hope this helps,

Razvan.

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,178 次查看
constantinrazva
NXP Employee
NXP Employee

Hello 742970882@qq.com‌,

Depending on code optimization options used to build the executable file, you might not see exactly the flow that you have in your code. If you enable the Instruction Stepping Mode (up-left, blue circle in the picture) you can navigate through the disassembly of your code. You can see that in this example (the uart example from our toolbox), the code is generating the call to MC_MODE_INIT() and it is called. Furthermore, you can enter in the disassembly window an address/function name and it will navigate you to the desired function. You can also have breakpoints here, so you can search MC_MODE_INIT in the disassembly window, put a breakpoint there and see it get called.

pastedImage_5.jpg

Hope this helps,

Razvan.

0 项奖励
回复
1,177 次查看
constantinrazva
NXP Employee
NXP Employee

Side note: we recommend not using any optimizations in the development and testing phases, as it can change the order in which the various functions are called (or operations are being executed). This makes the debugging process harder and introduces a level of uncertainty for who's going through the code. 

Kind regards,

Razvan. 

0 项奖励
回复