2023-10-06 12:07 AM
I made a PCB board with STM32WB5MMG, which receives the data of max30112 through external falling edge interrupt and sends it through BLE notify. However, once I add the execution task UTIL_SEQ_SetTask(1<<CFG_TASK_SPO2_EVT_ID,CFG_SCH_PRIO_0); in HAL_GPIO_EXTI_Callback;
My program just fails.The interrupt callback function is shown in the figure below:
At present, I guess that the EXTI and BLE notify features will conflict, or there is some problem between EXTI and UTIL_SEQ_SetTask. How can I verify it?
Thanks in advance.
Solved! Go to Solution.
2023-10-07 06:06 AM
I made a PCB board using STM32WB5MMG, max30112 (sensor chip) and max30001 (sensor chip). I collected the signal by triggering an interrupt on the external falling edge and sent it through BLE notify. Max30112 has an interrupt pin MAX30112_INTB_Pin (PD0), max30001 There are two interrupt pins MAX30001_INTB and INT2B (PC10 and PC11). Task CFG_TASK_DDD_EVT_ID just notifies two uint8_t data with value 0.
I would like to ask how to find out where my program is stuck. Or will EXTI0 (PD0) and EXTI15_10 (PC10 and PC11) produce different results from the task CFG_TASK_DDD_EVT_ID? HAL_GPIO_EXTI_Callback() is shown in the figure below:
I will attach the current URL of this problem to the previous two similar questions raised, and show that it has been solved in the reply.
2023-10-06 05:18 PM
Why did you created a duplicate topic? And why are you systematically tagging topics with a wrong tag?
2023-10-06 07:41 PM
The last question I asked was too redundant and didn't explain the problem well. I want to delete the previous question but can't find the delete button.:face_with_tears_of_joy:
2023-10-07 06:06 AM
I made a PCB board using STM32WB5MMG, max30112 (sensor chip) and max30001 (sensor chip). I collected the signal by triggering an interrupt on the external falling edge and sent it through BLE notify. Max30112 has an interrupt pin MAX30112_INTB_Pin (PD0), max30001 There are two interrupt pins MAX30001_INTB and INT2B (PC10 and PC11). Task CFG_TASK_DDD_EVT_ID just notifies two uint8_t data with value 0.
I would like to ask how to find out where my program is stuck. Or will EXTI0 (PD0) and EXTI15_10 (PC10 and PC11) produce different results from the task CFG_TASK_DDD_EVT_ID? HAL_GPIO_EXTI_Callback() is shown in the figure below:
I will attach the current URL of this problem to the previous two similar questions raised, and show that it has been solved in the reply.
2023-10-07 06:07 AM
I found my final problem, this is the URL
Difference between EXTI0 and EXTI15_10 lies in int... - STMicroelectronics Community