AnsweredAssumed Answered

Problem with pointer to unsigned long in S12XEP100 with Banked Memory model

Question asked by Sandeep Parvatikar on Sep 6, 2010
Latest reply on Sep 6, 2010 by Daniel Lundin

Hi,

 

I am using code warrior for S12XEP100 target.

 

I am having problem with pointers to unsigned long location, when I enable Banked Memory model.

 

Eg:

unsigned long * src, *dest;

  

Function_Copy (length)

{

src=(unsigned long *) 0x100000;

do

{

*dest = *src;

counter++;

} while( counter < length)

}

 

 

The SW works fine, in Large Memory Model. But once I switch to Banked Memory Model it doesn't.

Can anyone help me with this problem?

Outcomes