如图标红部分,请问这个函数中的这个判断是什么意思?
well i asked the same question some time ago, did not get any proper answer.
it seems they try to place ROM_CRTL= ROM_CMD_ERASE; allways on odd or even address regardless the startaddress of that function. In my case it was always a odd address but this heavily compiler and optmize settings dependend.
I never found a reason for this construct. Erase works just fine on odd and even.
Strange code, possible error CH559 - Heng Heng microelectronics community (wch.cn)
您好,这部分的代码建议参考CH559EVT中的操作流程。