> On 11 Jul 2023, at 13:21, Antonio Borneo <borneo.anto...@gmail.com> wrote:
> 
> It could be interesting to test with
> -c 'init;cortex_m maskisr on'
> on the command line.

I used the following:

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" "init;cortex_m 
maskisr on" "-c" "program rtos-apis-test.elf verify" "-c" "arm semihosting 
enable" "-c" "arm semihosting_cmdline rtos-apis-test" "-c" "reset"
1: Test timeout computed to be: 10000000
1: xPack Open On-Chip Debugger 0.12.0+dev-01252-g56fd04832-dirty 
(2023-07-10-11:36)
1: Licensed under GNU GPL v2
1: For bug reports, read
1:      http://openocd.org/doc/doxygen/bugs.html
1: Info : auto-selecting first available session transport "dapdirect_swd". To 
override use 'transport select <transport>'.
1: Info : STLINK V2J41M27 (API v2) VID:PID 0483:3752
1: Info : Target voltage: 3.238973

but it ended in the same loop:

1: Info : dap_port_read = 65535, addr =  0x4, value = 0xf8000040
1: Info : arm_semihosting is_armv7m target->debug_reason=1 (BREAKPOINT)
1: Info : stlink_usb_read_mem16 0x080003D6 0xB508
1: Info : dap_port_read = 65535, addr =  0x4, value = 0xf8000040
1: Info : arm_semihosting insn 0xB508 != 0xBEAB
1: [stm32f7x.cpu] halted due to breakpoint, current mode: Handler SysTick
1: xPSR: 0x010f000f pc: 0x080003d6 msp: 0x20080000, semihosting
1: Info : mem_ap_read_u32 0xE000EDF0 0x00030003
1: Info : stlink_usb_read_mem32 0xE000EDF0 0x00030003
1: Info : dap_port_read = 65535, addr =  0x4, value = 0xf8000040
1: Info : mem_ap_read_u32 0xE000EDF0 0x00030003
1: Info : stlink_usb_read_mem32 0xE000EDF0 0x00030003
1: Info : dap_port_read = 65535, addr =  0x4, value = 0xf8000040
1: Info : mem_ap_read_u32 0xE000EDF0 0x00030003


Liviu


Reply via email to