CH559_CH558 USB+串口IAP远程升级实例中EraseBlock函数问题

Snipaste_2021-08-26_20-25-05.png

如图标红部分,请问这个函数中的这个判断是什么意思?

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中的操作流程。


只有登录才能回复,可以选择微信账号登录