We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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
Sounds like something is overwriting your variable. Apart from a hardware fault, most likely causes are: * errant pointers; * OVERLAY problems; * Your variables are overlapping with the Stack