Skip to main content
Visitor II
November 15, 2023
Question

About the M7 and M4 core switching in STM32H747i-DISC0

  • November 15, 2023
  • 3 replies
  • 1346 views

I am working with STM32H747i-DISCO discovery board, is it possible to switch between M7 and M4 core? like if I configure UART peripheral with M7 core and can I able to switch that peripheral to work with M4 core? 

    This topic has been closed for replies.

    3 replies

    Technical Moderator
    November 15, 2023

    Hello @Pavankumar1_ 

    Using CubeMX, you can simply switch the peripheral context between cores.

     

    FBelaid_1-1700046807743.png

     

    Visitor II
    November 15, 2023

    Thank for the replay @FBL 

    By using CubeMX we can switch between the cores, But after code generation can we able to switch between cores dynamically as per the requirement.

    Graduate II
    November 15, 2023

    The peripherals are accessible from both cores, you'd have to manage the transition of control between them.

    Technical Moderator
    November 15, 2023

    Indeed, you can switch using HSEM semaphore. You can try the example from cube firmware to share resources for instance USART1 between cores STM32Cube\Repository\STM32Cube_FW_H7_V1.11.1\Projects\STM32H747I-DISCO\Applications\ResourcesManager\ResourcesManager_SharedResources

    While debugging try to enable multiple core debug.