My MPC5200 board is crazy!

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

My MPC5200 board is crazy!

1,435 Views
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!
Labels (1)
0 Kudos
1 Reply

675 Views
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 Kudos