MBDT ,The application is not running properly

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

MBDT ,The application is not running properly

Jump to solution
1,496 Views
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

Labels (1)
0 Kudos
Reply
1 Solution
1,270 Views
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.

View solution in original post

0 Kudos
Reply
2 Replies
1,271 Views
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 Kudos
Reply
1,270 Views
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 Kudos
Reply