Hi,
Thank you for your response CrasyCat.
Yes I want to affect a global variable located in paged RAM (@ 0xFC116C) with a constant value stored in 0x7E26.
I have a reset and I think its cause is this affectation.
In the code generated from this affectation I have the function
When reading the datapage.c I have:
_FAR_COPY_GLOBAL_GLOBAL_RC:
_FAR_COPY_GLOBAL_LOGICAL_RC:
_FAR_COPY_LOGICAL_GLOBAL_RC:
_FAR_COPY_LOGICAL_LOGICAL_RC:
_FAR_COPY_NEAR_GLOBAL_RC:
_FAR_COPY_NEAR_LOGICAL_RC:
_FAR_COPY_GLOBAL_NEAR_RC:
_FAR_COPY_LOGICAL_NEAR_RC:
HCS12X specific far copy routine. The name describes what the src/dest address format are.
All near srcarguments are passed in X, all 24 bit src in X/B.
All near destarguments are passed in Y, all 24 bit src in Y/A.
(Note: HC12 _FAR_COPY_RC is using X/A as src and Y/B as dest, so the register usage is not the same!)
Do you think that there is no problem with the compiler?if so what can be?
Thank you very much.
Waiting for your response.
Klaud.