Skip to content

Commit

Permalink
OpenAMP semaphore init before first use
Browse files Browse the repository at this point in the history
HSEM clock was enabled after first use, resulting in endless loop without error exception. Moved HSEM clock enable before first use.
  • Loading branch information
jernejp21 committed Aug 9, 2022
1 parent e3be6d3 commit 4e96219
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,13 @@ int main(void)
((HAL_GetHalVersion() >> 24) & 0x000000FF),
((HAL_GetHalVersion() >> 16) & 0x000000FF),
((HAL_GetHalVersion() >> 8) & 0x000000FF));
/*HW semaphore Clock enable*/
__HAL_RCC_HSEM_CLK_ENABLE();

BSP_LED_Init(LED7);
BSP_LED_On(LED7);
/* USER CODE END Init */

/*HW semaphore Clock enable*/
__HAL_RCC_HSEM_CLK_ENABLE();
/* IPCC initialisation */
MX_IPCC_Init();
/* OpenAmp initialisation ---------------------------------*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,13 @@ int main(void)
((HAL_GetHalVersion() >> 24) & 0x000000FF),
((HAL_GetHalVersion() >> 16) & 0x000000FF),
((HAL_GetHalVersion() >> 8) & 0x000000FF));
/*HW semaphore Clock enable*/
__HAL_RCC_HSEM_CLK_ENABLE();

BSP_LED_Init(LED7);
BSP_LED_On(LED7);
/* USER CODE END Init */

/*HW semaphore Clock enable*/
__HAL_RCC_HSEM_CLK_ENABLE();

/* IPCC initialisation */
MX_IPCC_Init();
/* OpenAmp initialisation ---------------------------------*/
Expand Down

0 comments on commit 4e96219

Please sign in to comment.