Hi Jennie
I created a small demo program to recreate the error. Was tough to create
the error in cValue = caValues[ucPtr]; but after a while I found out it's a
macro that remove the CLRH in the assembler code.
I attached the demo project as a zip file and it have to be installed in
C:\Battery manager or you can just add the main.c, corrtable.c, corrtable.h
and the linker file Project.prm to you own project.
By comment out the macro the compiler generate correct code but with the
macro the compiler generate wrong code. Check it in the list file main.lst.
Can be fixed by adding asm CLRH; before cValue = caValues[ucPtr];.
Real weird.
Good luck and best regards
Per Højfeldt
On Thu, May 10, 2018 at 11:49 AM, ZhangJennie <admin@community.nxp.com>