在向Flash擦除和写入大约550K以内的bin的情况下,采用同步的方式(使用INT_SYS_DisableIRQGlobal)大概会用时25秒左右。采取异步的方式(用INT_SYS_DisableIRQGlobal)大概会用时80秒左右。请教下NXP的技术大佬,是什么原因导致的?有没有办法让异步方式缩短时间?
Hi @vurtual
how do you call MainInterface function or Fls_MainFunction? Is there any code executed in between?
Anyway, a lot of additional code is executed if asynchronous method is used. This is supposed to be used when other operations need to be done in parallel and when longer programming time is not a problem.
If you do not need to run other operations in parallel and if programming time is important, use synchronous method.
Regards,
Lukas