CyBle_Start will return failed in the bootloadable with Fixed Stack OTA

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
LeonH
Level 4
Level 4
Distributor - Arrow(GC)
100 sign-ins First solution authored 50 sign-ins
Hello,
   

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);
}

 for(;;)
{
     BootloaderSwitch();

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.

0 Likes
1 Solution
LeonH
Level 4
Level 4
Distributor - Arrow(GC)
100 sign-ins First solution authored 50 sign-ins

Hi 

CyBle_Start(AppCallBack).

    #if !defined(__ARMCC_VERSION)

        InitializeBootloaderSRAM();

    #endif

View solution in original post

3 Replies
Zhengbao_Zhang
Moderator
Moderator
Moderator
250 sign-ins First comment on KBA 10 questions asked

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.

 

0 Likes
LeonH
Level 4
Level 4
Distributor - Arrow(GC)
100 sign-ins First solution authored 50 sign-ins

Hi 

CyBle_Start(AppCallBack).

    #if !defined(__ARMCC_VERSION)

        InitializeBootloaderSRAM();

    #endif

Zhengbao_Zhang
Moderator
Moderator
Moderator
250 sign-ins First comment on KBA 10 questions asked

hello:

  that is great, thanks a lot for the share.

0 Likes