STM32WB Getting Started Series WB15 issue
Hello, I am following this tutorial, but it is designed for the WB55 and I am using the WB15.
I have managed to get the LED task before this one working. However with this task I do not get an output to the App.
I have modified the code to have an LED on button press as shown below:
void myTask(void)
{
if(!HAL_GPIO_ReadPin(B2_GPIO_Port, B2_Pin))
{
UpdateCharData[0] ^= 0x1;
Custom_Mycharnotify_Update_Char();
HAL_GPIO_TogglePin(LD1_GPIO_Port, LD1_Pin);
}
UTIL_SEQ_SetTask(1 << CFG_TASK_MY_TASK, CFG_SCH_PRIO_0);
}
Am I correct in saying the routine works as it is able to re-enter the function (using LED as an indicator that it is) on button press and my issue is strictly these lines of code:
UpdateCharData[0] ^= 0x1;
Custom_Mycharnotify_Update_Char();
Thank you,
Shahin Haque
