Skip to main content
Associate III
Solved

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

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)

    This topic has been closed for replies.
    kavyammBest answer
    Associate III

    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.

    3 replies

    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.
    kavyammAuthorBest answer
    Associate III

    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
    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.