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

Some memory problems on RTX-full?

Hi all. Can anyone help with the following strange problem?
I have a target with T89C51RD2 and external (on board) SRAM and parallel EEPROM. I also use the RTX51-full OS. For the past few days my code start to run very strange. I pass a variable to a function (void func(char ch)) and use it there. Somewhere in this function I send this variable to other function and the variable value change before he gets to the other function. In some cases I solved the problem by declaring local variable in each function and pass the coming variable to the local one.
For example:
Void func(char _ch)
{
char ch = _ch;
:
}

This is NOT a solution for this case. Can anyone know what's the problem here?

Thanks a lot,
Reuven

Parents
  • Just out of my curiosity, are you using EEPROM as part of your XDATA? If this is the case, you need special functions to write to EEPROM locations and prevent BL51 from locating relocatable data segments into this memory area. You can check this by looking into your .m51 file.

Reply
  • Just out of my curiosity, are you using EEPROM as part of your XDATA? If this is the case, you need special functions to write to EEPROM locations and prevent BL51 from locating relocatable data segments into this memory area. You can check this by looking into your .m51 file.

Children
No data