Dear All,
The configuration is as follows:
Development board: EVB9S12XF512E
Target Processor: MC9S12XF512MLM
Operating system: Windows 10
Debug Protocol: Full chip simulation Code warrior IDE
Please find attached two folders containing same code for hash function as follows:
1. Normal C: contains source and header file which can be compiled with any IDE (CLion or Visual studio), C90 compatible.
2. CodeWarrior project (Full - chip simulation )
Issue:
While debugging with Full Chip Simulation, the while statement in line number 485 in file 'picohash.h' is never evaluated to false, because a member of struct (s->bufferOffset) resets to zero. It seems the variable is overflowing and maybe it becomes zero. Hence the program does not come out of the while loop.
For convenience of testing by tech support, i have written a statement at line number 490 of 'picohash.h' to put a breakpoint while debugging in Full Chip simulation and monitor the status of (s->bufferOffset).
The same program (attached as Normal C) runs as required in other IDE. I understand the memory allocation for variables maybe dependent on IDE and machines, but I am not able to figure out what I am missing here.
Any help is much appreciated. Thank you for your time.
Best regards,
Rohit