On 19/07/2023 22:14, Liviu Ionescu wrote:

On 17 Jul 2023, at 09:13, Tomas Vanek <tom_...@users.sourceforge.net> wrote:

Andreas sent me a hint:

On 15/07/2023 11:44, Andreas Bolsch wrote:
According to AN4891, table 7, STM32H72x/3x are r1p2, but RM0468 doesn't mention r/p for the CPU.
I'll ask ST for one...
Any estimated time when we'll know if the NUCLEO-H723ZB is functional or it is also affected by this issue?

If functional, I'll probably order one too and migrate my tests to it.


Liviu

Don't have any reply to my request, people are on holidays...

The errata is not documented so I would not expect it's fixed in C-M7 r1p2 - but who knows...

Regarding your unit tests: we found that J-Link and ST-Link GDB servers simply mask the interrupts. And you reported the test runs fine at least with J-Link, so handling the interrupts is not vital
for the test. Considering this, OpenOCD with masked interrupts should work.

On 11/07/2023 16:40, Liviu Ionescu wrote:
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"

I rechecked the command and run a similar one myself.
You probably missed the message
"target must be stopped for "maskisr" command"
and cut it out from the mailed part of the log as well.

The message wording unfortunately doesn't make clear that it means error (and ERROR_OK is erroneously returned!).
So 'cortex_m maskisr on' didn't work and interrupts was not masked.

Try:

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"

HTH

T



Reply via email to