Loading...
 

STM32MP1 support available in SW4STM32

   With System Workbench for Linux, Embedded Linux on the STM32MP1 family of MPUs from ST was never as simple to build and maintain, even for newcomers in the Linux world.
And, if you install System Workbench for Linux in System Workbench for STM32 you can seamlessly develop and debug asymmetric applications running partly on Linux, partly on the Cortex-M4; you can download a short video showcasing this on the ac6-tools website (registration required).

System Workbench for STM32


openOCD with GDB: how to ignore interrupt and how to make openOCD FreeRTOS aware?

Hello,

In my application, I am using FreeRTOS underlying CMSIS-RTOS API. I am facing two issues related to RTOS and interrupts while debugging. whenever I start debuggig my application, debugger alaway go to interrupt hence I can not step in or step over other functions. I want to some how mask interrupt before step in and after stepping in, interrupt should be unmasked so that my application works properly. I read some post where it suggested to give a command

  cortex_m maskisr auto 


from openOCD DocumentationQuestion

but it gives me error while debudding.

 Error in final launch sequence
Failed to execute MI command:
cortex_m maskisr auto
Error message from debugger back end:
Undefined command: "cortex_m". 


I have written this command in Debug Configuration > Startups > Run Commands dialog box.

The second issue is, I want to make openOCD FreeRTOS aware. I have followed a blogpostQuestion and made a change in the script stm32f7xx.cfg. (this script is at location “C:\Ac6\SystemWorkbench\plugins\fr.ac6.mcu.debug_2.4.0.201902141520\resources\openocd\st_scripts\target”). So, I wrote in that script.

 $_TARGETNAME -rtos auto configure -work-area-phys 0x20000000 -work-area-size $_WORKAREASIZE -work-area-backup 0  


But I am getting an error

 Error: invalid subcommand "-rtos auto configure -work-area-phys 0x20000000 -work-area-size 0x8000 -work-area-backup 0"
in procedure 'script' 
at file "embedded:startup.tcl", line 60
at file "comm_card_2 Debug.cfg", line 29
in procedure 'STM32F746ZGTx.cpu' called at file "C:/Ac6/SystemWorkbench/plugins/fr.ac6.mcu.debug_2.4.0.201902141520/resources/openocd/st_scripts/target/stm32f7x.cfg", line 68 


can anyone please tell me how to resolve these issues?

I am using:

openOCD(for 32bits Windows) version: 1.22.0.xxx

System Workbench for STM32 - C/C++ Embedded Development Tools for MCU
Version: 2.8.1.201903050911

Eclipse GDB Hardware Debugging
Version: 9.2.1.201704050430

System Workbench for STM32 - C/C++ Debugging Tools for MCU
Version: 2.4.0.201902141520

MCU: STM32F746ZGTx (Arm Cortex-M7)
Board: NUCLEO-F746ZG 


Thanks in advance

Regards,
Fenil

 

Newest Forum Posts

  1. Build fails when running through command line by rangpava, 2019-05-17 19:29
  2. SWD option gone by dangermouse, 2019-05-17 17:22
  3. syscalls and STM32CubeMX by CHAABANI Ameny, 2019-05-17 17:11
  4. Problem verifing and downloading code by elvarliiv, 2019-05-17 12:05
  5. Problem verifing and downloading code by asierdo, 2019-05-17 11:50
  6. STM32 System Workbench File Opening as Text File. by ArjunSingh, 2019-05-17 08:02
  7. Issue snprintf floats by ArminOonk, 2019-05-16 16:15
  8. Issue snprintf floats by ArminOonk, 2019-05-16 16:01
  9. Adding new Include files by Mohd Tanveer, 2019-05-16 07:51
  10. UNPLUGGED TARGET DURING DEBUG SESSION , ERROR IN FINAL LAUNCH SEQUENCE by dbdb, 2019-05-16 06:44

Last-Modified Blogs