Tool/software:
It is found that some code is skip in a function. View in disassembly view. the code is skipped. I tried to use #pragma FUNCTION_OPTIONS(function_name, "--opt_level=off"). The problem is not fixed.
Below is 2 lines which is skipped
case:
ramSec1Addressptr = (uint32_t *) RAMSEC1START_ADDRESS;
ramSec1AddressNextptr = (uint32_t *) RAMSEC1START_NEXTADDRESS;
I moved the lines out of the function. It is not problem.
Any idea about the problem