Dear All,
I am getting garbge value, in my xdata variable. I am using c8051f021 controller with internal xdata of 4K.I do not understood why such problem occurs suddenly. Whether this is because of interrupts clashing or any thing related to interrupts. Thanking you.
Does the internal xdata need to be activated first ? 1) it does 2) it need be done at the very beginning of startup.a51, doing it in "top of main" bypass the initialization.
The SILabs Config program, while quite good DO make the error of allowing certaing things done in C that MUST ne in assembler and inserted to the VERY start of startup.a51.
Now I have seen someone trying to call a C function at the start to Startup, just to avoid that awful assembly IT DOES NOT WORK, if you can not insert the necessary in assembly at this point, either learn how to or go buy a broom.
Erik