Charles Burfoot

M5282 and OpenTCP invalid stack

Discussion created by Charles Burfoot on Apr 19, 2010
Latest reply on May 1, 2010 by Marc Vandenhende

I'm trying to learn how to use the coldfire 5282 EVB and OpenTCP. The first source demo builds but I have a run time error about an invalid stack type exception. This occurs after calling mcf5xxx_wr_sr. This is called from C.

The source lives in an .s file in the project.




  move.l    4(sp),d0

  move.w  d0,sr



When call this we get to visit the _asm_exception

It would seem that the CW 7.2 convention for placing the data in a register instead of the stack is an issue.


So, how to change this code (assembly).

And where is the ColdFire V2 assembly manual. The UserManual doesn't have any reference codes.