This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Why in data small everything works?

Hi guys,

I wrote a simple program using the data in small model and the code in large model, and the program worked perfectly, however, when I compiled the program with the data in large model, the program compiles, but it does not run!!!!

Does anyone have any clues about why this happen?

Thanks in advanced,

DB

Parents
  • Hi, I dont know if this will help but if your code space is the same as XDATA memory (von neumann) and you switch from small to large without setting the "off chip xdata memory" field on the Target tab of the "target options" dialog, then the xdata variables will overwrite the code and corrupt it.
    This would show up in simulation if you can set code = xdata but I dont know how to do that.

Reply
  • Hi, I dont know if this will help but if your code space is the same as XDATA memory (von neumann) and you switch from small to large without setting the "off chip xdata memory" field on the Target tab of the "target options" dialog, then the xdata variables will overwrite the code and corrupt it.
    This would show up in simulation if you can set code = xdata but I dont know how to do that.

Children
No data