My MPC5200 board is crazy!

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

My MPC5200 board is crazy!

1,550件の閲覧回数
czs
Contributor I
    I make the "hello world" demo program in cw8.7 for mpc5200, add some code in main loop for access local plus bus, it is ok in all debug mode,but  burn in flash,boot from high, it has rise a "InterruptHandler: 0x200 exception". i access CS0 is ok in same way,but CS1...
what is wrong with my code?
main()
{
...
  p = (U32L *)(0xfef00000);
  printf("Addr=%x, Value=%x \r\n", x, *x);
...
}
help me!
ラベル(1)
0 件の賞賛
返信
1 返信

790件の閲覧回数
fslaficionado
Contributor I
Are you making a ROM image or a bootloader image? If you're doing a bootloader image, following the instructions on App Note 2757, then you should put it at the bottom of flash (0x0000), and boot low. From reading the App Note, it looks like that's what it assumes.

Also, make sure you put it at 0x0000, not 0x0100. The image created already has the boot offset built in (same thing if you're putting it high, if you're creating an image that can boot high).
0 件の賞賛
返信