Skip to content

OpenAMP semaphore init before first use#19

Open
jernejp21 wants to merge 2 commits intoSTMicroelectronics:masterfrom
jernejp21:OpenAmp_sample_fix
Open

OpenAMP semaphore init before first use#19
jernejp21 wants to merge 2 commits intoSTMicroelectronics:masterfrom
jernejp21:OpenAmp_sample_fix

Conversation

@jernejp21
Copy link

HSEM clock was enabled after first use, resulting in endless loop without error exception. Moved HSEM clock enable before first use.

BSP_LED_Init() function uses BSP_ENTER_CRITICAL_SECTION() function. If you follow inside the function, HAL_HSEM_FastTake() is being called which reads HSEM_RLR register. Register reading was done before HSEM clock was enabled.

jernejp21 and others added 2 commits August 9, 2022 10:45
HSEM clock was enabled after first use, resulting in endless loop without error exception. Moved HSEM clock enable before first use.
Changed also on STM32MP157C-EV1 samples.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant