2019-04-15 07:57 AM
Hello,
I'm trying to get the advertising state from a new Cube MX project.
I followed the step by step, did all the initializations and compare with the P2Pserver exemple.
Everythings seem to be ok but I can't get this state work.
It seems that the program stay blocked (Program received signal SIGINT, Interrupt.) in infinite loop when it tries executing SCH_Run() for the first time .
The IRQ occurs just after the "SuperMask &= mask_bm;" line in SCH_Run()
Because of that, the program doesn't execute APP_BLE_Init( void ) and I can't get the advertising state, so the program doesn't go into the round_robin loop.
It is as if "SCH_RegTask( CFG_TASK_SYSTEM_HCI_ASYNCH_EVT_ID, shci_user_evt_proc );" in "appe_Tl_Init()" didn't register the task well.
Thanks you for helping me.
2019-04-17 06:26 AM
I didn't receive the ready event "VS_HCI_C2_Ready" from the CPU 2.
Any ideas ?
2019-04-23 04:12 AM
Hello,
Could you please check the availability of the following code in the file stm32wbxx_it.c
void IPCC_C1_TX_IRQHandler(void)
{
HW_IPCC_Tx_Handler();
return;
}
void IPCC_C1_RX_IRQHandler(void)
{
HW_IPCC_Rx_Handler();
return;
}
Basically, at startup, as soon as the Ble Stack wireless is started, you shall receive an event.
The flow is
From interrupt context
IPCC_C1_RX_IRQHandler()
shci_notify_asynch_evt() - This callback is used to move from the interrupt context to the back ground context
From background context
APPE_SysUserEvtRx()
Regards.
2019-07-18 06:45 AM
did this fix work for you? because I have a similar problem and still not able to advertise. Do I need to add more settings/ configuration. I followed the steps mentioned in application note 13.1 .
2019-07-23 12:18 AM
Hello,
it worked for me.
Please also make sure that the required sections are linked into SRAM2. Please see:
https://community.st.com/s/question/0D50X0000Az4HdhSQE/cant-get-the-advertising-state
2019-08-05 04:25 AM
Hello,
Is the issue still there ?
Regards
2020-09-16 02:19 AM
Hello,
I have sometimes same problem after a power on reset, i receive the APPE_SysUserEvtRx event but Advertising is not always started.
I do always receive shci_notify_asynch_evt, i followed p2p_ota_server_example.
Any idea?
Best regards
�?lvaro
2020-09-16 02:31 AM
Hi,
i receive APPE_SysUserEvtRx event, but not always Advertising is started, i followed p2p server example.
It seems that the adv_req function does not finish sequentially, it exits before executing every line in the function, and without any return instruction.
I think it's a problem with HSE oscillator, after Switching a signal the microcontroller stays stuck until reset, but not nmiHandler or other event is generated, even with the CSS protection enabled. Changing to internal oscillator before changing the signal value seems to make it work.
Any help?
Regards
�?lvaro