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

LX51 Huge Code

I am trying out an application for the MX51 and I need HUGE code generation but it generates a combination of both.

As an example, in my routines it generates the proper ECALL and ERET but if I call a library function such as LSTXDATA, that library routine has RET instead of ERET which of course does not work.

My MAP file says the LX51 used
CPU MODE: PHILIPS 80C51MX (64KB CODE)
instead of HUGE code.

I have gone through the MX51 examples and they work fine. I have checked all my settings (everything is set HUGE), memory mapping, etc etc and I just cannot find the solution. Even set my memory mapping just like the "c linear rom" sample and still the problem exists.

What should I try next?