STM32U575Zi Errors on GPIO Configuration
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-07-04 10:49 AM
Greetings,
I'm struggling to get GPIO configuration to work without hitting the HardFault_Handler. If I configure a single GPIO, like this:
__HAL_RCC_GPIOB_CLK_ENABLE();
GPIO_InitStruct.Pin = GPIO_PIN_7;
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
GPIO_InitStruct.Pull = GPIO_NOPULL;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
HAL_GPIO_WritePin(GPIOB, GPIO_PIN_7, GPIO_PIN_RESET);
There is no issue; I can toggle the GPIO at-will inside a loop.
However, if I add more GPIO pins to the setup, I end up landing in a fault handler:
__HAL_RCC_GPIOB_CLK_ENABLE();
{
return HAL_TIMEOUT;
}
Solved! Go to Solution.
- Labels:
-
STM32U5 series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-07-04 03:55 PM
This turned out to be an RTOS issue - it is now resolved, happily. Thanks, Rick
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-07-04 03:55 PM
This turned out to be an RTOS issue - it is now resolved, happily. Thanks, Rick
