cancel
Showing results for 
Search instead for 
Did you mean: 

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

kavyamm
Associate II

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)

1 ACCEPTED SOLUTION

Accepted Solutions
kavyamm
Associate II

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.

View solution in original post

3 REPLIES 3
Andrew Neil
Super User

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.
kavyamm
Associate II

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.

Great - please mark that as the solution:

https://community.st.com/t5/community-guidelines/help-others-to-solve-their-issues/ta-p/575256

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.