AnsweredAssumed Answered

MCF52259EVB - Can run demo from SRAM but not FLASH

Question asked by FridgeFreezer on Nov 16, 2009
Latest reply on Nov 19, 2009 by martin wakely

Hi guys,

I am working on a project to port a system to the M52259 and have got myself a 52259EVB with the associated copy of Codewarrior (7.1.1a) .

 

I can load & compile the included demo (M52259EVB_example.mcp) and it runs on the board if you target the SRAM, but if I change the target to FLASH it fails with an illegal instruction:

 


20001D80: 4000            negx.b   d0

 

I'm quite rusty on the low-level stuff (all my recent C work has been on a pre-existing embedded environment) can anyone give me a nudge in the right direction?

 

Most confusing is that I'm using the copy of  CW supplied with the EVB, with the example project supplied on the CD, to build for a target defined as standard in the project, yet it doesn't work :smileysad:

Outcomes