hi Julian,
Regarding to your questions
>>1. Do I need to disable interrupts during erase and program?
Yes, you do. Because erase/program can't be successfully if they are interrupted during the time.
>>2. Can I debug the FlashCmd with the USBDM?
yes. but please note we can't step over the FlashCmd code, it will destroy the erase/program time sequence.
Have a great day,
Jennie Zhang
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------