> On 21 Jul 2023, at 17:09, Sergey A. Borshch <sb...@users.sourceforge.net> 
> wrote:
> 
> Try to insert "-c" "init" before this command.

The command was not recognised by "interface/stlink.cfg".

I changed to "interface/stlink-dap.cfg", execution started, but hang when 
trying to start the scheduler.

1: Test command: 
/Users/ilg/Work/xpack-dev-tools-build/openocd-0.12.0-2/darwin-x64/application/bin/openocd
 "-c" "gdb_port disabled" "-c" "tcl_port disabled" "-c" "telnet_port disabled" 
"-f" "interface/stlink-dap.cfg" "-f" "target/stm32f7x.cfg" "-c" "program 
rtos-apis-test.elf verify" "-c" "arm semihosting enable" "-c" "arm 
semihosting_cmdline rtos-apis-test" "-c" "reset halt" "-c" "cortex_m maskisr 
on" "-c" "resume"
1: Test timeout computed to be: 10000000
1: xPack Open On-Chip Debugger 0.12.0+dev-01276-g8e3e5b323-dirty 
(2023-07-21-16:29)
1: Licensed under GNU GPL v2
1: For bug reports, read
1:      http://openocd.org/doc/doxygen/bugs.html
...
1: µOS++ IIIe version 7.0.0
1: Copyright (c) 2007-2023 Liviu Ionescu
1: Scheduler: µOS++ Cortex-M7 FP, preemptive, BASEPRI(4), WFI
1: System clock: 16000000 Hz
1: Scheduler frequency: 1000 ticks/sec
1: Default stack size: 2048 bytes
1: Interrupts stack size: 3072 bytes
1: Built with GCC 12.2.1 20221205, with exceptions
1: 
1: scheduler::start() 
```

I don't know what "cortex_m maskisr on" does and how long are the interrupts 
masked, but the scheduler uses PendSV to switch between threads and cannot work 
if PendSV is masked.


Liviu


Reply via email to