Why do I receive an error about the "program entry point" when I try to use Embedded Target for Motorola MPC555 1.0.1 (R13)?

1 view (last 30 days)
After a successful build using Embedded Target for Motorola MPC555 with the "Debug_via_BDM" option to RAM, I get the Metrowerks CodeWarrior error message:
Couldn't locate the program entry point, program will not stop on launch.
After selecting OK, the code is downloaded and starts running on the development board. The code does not stop after downloading.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
Make sure that you have selected Optimize compiler for debug. This can be done with the following steps:
1. In the Simulink model, choose Simulation -- > Simulation Parameters, then select the Real-Time Workshop tab.
2. Select the category MPC555-DK (real-time) options.
3. Select Optimize compiler for debug.
4. Check that the compiler optimization switches include '-g'.
5. Re-build and download the model.
This should allow debugging of the main application. If it is desired to debug driver code also, then it is necessary to do the following:
1. Open the MPC555 Target Preferences (accessible via the MATLAB start menu)
2. Check the field "DebuggerSwitches" and make sure that the -g option is specified; the full set of switches should look something like " -g -r - -p LPT1=1"
3. Run the command mpc555_build_drivers from the MATLAB command line and press 'Clean' to remove all the existing driver
4. Run the command mpc555_build_drivers again and press 'Debug'; this will re-build the drivers and startup code with debug enabled.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!