2021-04-30 06:43 AM
I have a custom board with a STM32WB55 that is getting stuck in the sequencer and stops executing as soon as I start my code. I can't tell if it's a race condition and I don't have the ability to step through the code with a debugger. The code is basically just a slightly modified version of the Nucleo Heartbeat code example. Running stm32wb5x_BLE_Stack_full v1.11.1. Here's my main():
int main(void)
{
/* MCU Configuration--------------------------------------------------------*/
/* Reset of all peripherals, Initializes the Flash interface and the Systick. */
HAL_Init();
/* Initialize all configured peripherals */
MX_GPIO_Init();
/* Configure the system clock */
SystemClock_Config();
//Init_Exti();
MX_IPCC_Init();
MX_RTC_Init();
/* Init code for STM32_WPAN */
APPE_Init();
UTIL_SEQ_Init();
/* USER CODE BEGIN WHILE */
while (1)
{
/* USER CODE END WHILE */
UTIL_SEQ_Run( UTIL_SEQ_DEFAULT );
/* USER CODE END WHILE */
HAL_GPIO_WritePin(GPIOB, LED_RGB_G_Pin, GPIO_PIN_RESET);
/* USER CODE BEGIN 3 */
BlinkTimer++;
if (BlinkTimer < 40000)
{
/*Configure GPIO pin Output Level */
HAL_GPIO_WritePin(GPIOB, LED_GREEN1_Pin|LED_GREEN2_Pin, GPIO_PIN_RESET);
}
else
{
HAL_GPIO_WritePin(GPIOB, LED_GREEN1_Pin|LED_GREEN2_Pin, GPIO_PIN_SET);
}
if (BlinkTimer > 80000) BlinkTimer = 0;
}
}