[coldfire-gnu-discuss] MCF52233 access error exception.
    Mats Blide 
    matsblide at hotmail.com
       
    Fri Jan 19 11:07:59 UTC 2007
    
    
  
Yes, I had noticed that the stack pointer was wrong, stupid mistake :-). But 
it realy did no difference. Obviously there is something that I have not 
understood here newbie to GNU tools as well as coldfire. It seams to be no 
problem accessing the memory in the way you described. But there is 
something basically wrong in what I am doing. If I make changes in 
assembler code in the startup most of the time I can't run it at all. I do:
hb start
jump start
and when I do the first:
nexti
sometimes it runs the next instruction and sometimes just crashes. And the 
most of the time the pc is suddenly 0x40000000. I have a feeling that it has 
something to do with alignment because adding or removing 'dummy' 
instructions gives different result.
I must admit that I have only browsed the manuals for coldfire and GNU tools 
on this matter. But I have tried to copy the start up code from a software 
built in CodeWarrior, and that runs fine ion the board I have. But it 
crashes as soon as I try to run it the GNU environment.
I'am basicly lost here, so any hints about whats wrong would be highly 
appreciated. I am running a M52233DEMO board with a MCF52233 chip on it.
/Mats
_________________________________________________________________
Börja ett nyttigt liv med våra hälsotips http://e-health.msn.se/
    
    
More information about the coldfire-gnu-discuss
mailing list