Where is error

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

Where is error

850 Views
zj66
Contributor I

I use MPC8315ERDB, when I running a small program , something is happening. The program is running to the function __start(),  not go.

asm void __start(register int argc, register char **argv, register char **envp)
{
 nofralloc       /* MWERKS: explicitly no stack */
          /* frame allocation */  mr  r14, argc
 mr  r15, argv
 mr  r16, envp
The program is running here, not move. I run this program in bought borad, and compare these. the argc, argv, envp are wrong.Why and how to correct.

Labels (1)
0 Kudos
1 Reply

245 Views
ronco
NXP Employee
NXP Employee

Suggestion: Enable the "Verify Memory Writes" option in your CodeWarrior project's 'EPPC Debugger Settings' panel and try again.  My guess is that your code is not getting loaded properly to your MPC8315ERDB and that you'll get a Memory Verify failure.  If so then you'll need to try using a different Target Initialization File and/or use the 8315_HRCW_jtag.txt JTAG Configuration File to overwrite the Reset Config Word data on your board.  Please refer to your Pro & Linux App Edition Targeting Manual for details.

 

-Ron

0 Kudos