Where is error

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Where is error

1,334件の閲覧回数
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.

ラベル(1)
タグ(1)
0 件の賞賛
返信
1 返信

729件の閲覧回数
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 件の賞賛
返信