> On 21 Jul 2023, at 19:02, Tomas Vanek <tom_...@users.sourceforge.net> wrote:
> 
>> Can you provide more details on what "cortex_m maskisr on" does? How long 
>> are the interrupts masked?
> 
> Is it so difficult to search it in the manual?

Command: cortex_m maskisr (auto|on|off|steponly)

Control masking (disabling) interrupts during target step/resume.

The auto option handles interrupts during stepping in a way that they get 
served but don’t disturb the program flow. The step command first allows 
pending interrupt handlers to execute, then disables interrupts and steps over 
the next instruction where the core was halted. After the step interrupts are 
enabled again. If the interrupt handlers don’t complete within 500ms, the step 
command leaves with the core running.

The steponly option disables interrupts during single-stepping but enables them 
during normal execution. This can be used as a partial workaround for 702596 
erratum in Cortex-M7 r0p1. See "Cortex-M7 (AT610) and Cortex-M7 with FPU 
(AT611) Software Developer Errata Notice" from ARM for further details.

Note that a free hardware (FPB) breakpoint is required for the auto option. If 
no breakpoint is available at the time of the step, then the step is taken with 
interrupts enabled, i.e. the same way the off option does.

Default is auto.

---

Not an easy read. :-(

Liviu


Reply via email to