Skip to main content
Associate III
April 3, 2025
Solved

how to use variable in across different cores? how to debug FreeRTOS ?

  • April 3, 2025
  • 2 replies
  • 499 views

Now, I am using the NUCLEO-H755ZI-Q board,  Could you share how to solve the issue of using the same (shared) variable in across different cores?

when I try to debug the code of freertos ,It is not going to debug after it enter this line  osKernelStart(); how to debug further. how to know my code is correctly working or not. (i am useing stm32cubeIDE)

Best answer by kavyamm

Thank you for the response. For shared variable, I used hardware semaphore it is working .

for debugging the freertos ,I put a breakpoint for where I need.

2 replies

Andrew Neil
Super User
April 3, 2025

Welcome to the forum.

That sounds like two separate questions. Best to keep to one question per thread.

How to write your question to maximize your chances to find a solution.

 


@kavyamm wrote:

how to solve the issue of using the same (shared) variable in across different cores?


You've already seen STM32H755Zi-Q~How to share data between cores - which was answered here.

Have you studied that Application Note?

 


@kavyamm wrote:

debug the code of freertos


How to set up FreeRTOS debugging using STM32CubeIDE

https://www.youtube.com/watch?v=KTsrP28Gh6E

 

AndrewNeil_0-1743672088128.png

https://www.st.com/resource/en/user_manual/dm00629856.pdf#page=209

 

 

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
kavyammAuthorAnswer
Associate III
April 24, 2025

Thank you for the response. For shared variable, I used hardware semaphore it is working .

for debugging the freertos ,I put a breakpoint for where I need.

Andrew Neil
Super User
April 25, 2025
A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.