Hello, We have a product controlled by a C8051F060, which among other tasks measures the internal temperature of the MCU, and if it exceeds some rate of temperature for more than a specified time the measurement is saved to a 'internal high temperature table'.
The Same task is done in our older product, which is controlled by a C8051F020, and works as expected, with no issues, i.e. can be read and reset by a protocol command.
At The product controlled by the C8051F060 when reading this table includes unreasonable values (negative, 65535 and others), which appear also when there is no high ambient temperature what so ever.
This table is located in the data memory, as appears in the map file(L. 129): www.mediafire.com/.../file
I found it hard to troubleshoot the problem, since the task of saving high temperature functions properly at the F020 product and the task in the F060 is taken from there. It seems that the wrong data source is a result of some memory issue as stack overflowing.
I would be glad for any guidance for solving this issue. Thanks, Amitai
Thanks, The product is synchronized by interrupts to a motor's rotation, includes communication waiting commands and measuring interrupts. It's a large code and is complex.
To start commenting lines and assigning dummy values is a long task which might change the behavior of the whole system and might also hide the source which causes the issue.
Aren't they any hints of memory for such issues? some place worth to check for wrong coding or wrong size calculation?