- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I try to use ble api in bootloadable, but CyBle_Start always return failed.
apiResult = CyBle_Start(EventHandler);
if(apiResult != CYBLE_ERROR_OK)
{
LED_1_Write(0);
/* BLE stack initialization failed, check your configuration */
CYASSERT(0);
}
If I comment out CyBle_Start and only run BootloaderSwitch(), device can enter into bootloader and OTA is workable.
Please help me use ble api correctly in bootloadable.
- Tags:
- bootloadable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello:
Would you please share the steps of how the ble was added to the bootloader?
Assumely, you are move all the ble source files and include file into bootloader project, then try to call the init API on M0 in the bootloader stage.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Zhengbao,
I fixed the issue after added this api in front of CyBle_Start(AppCallBack).
#if !defined(__ARMCC_VERSION)
InitializeBootloaderSRAM();
#endif
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hello:
that is great, thanks a lot for the share.