Announcements

Robots are revolutionizing our lives in many ways. Join our webinar to learn about Infineon’s broad portfolio of robot building blocks.
Click here to register.

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

PSoC™ 4 Forum Discussions

LeonH
Level 3
Level 3
First like received 25 sign-ins 10 replies posted
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
3 Replies
Zhengbao_Zhang
Moderator
Moderator
Moderator
First comment on KBA 10 questions asked 5 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 3
Level 3
First like received 25 sign-ins 10 replies posted

Hi 

CyBle_Start(AppCallBack).

    #if !defined(__ARMCC_VERSION)

        InitializeBootloaderSRAM();

    #endif

Zhengbao_Zhang
Moderator
Moderator
Moderator
First comment on KBA 10 questions asked 5 questions asked

hello:

  that is great, thanks a lot for the share.

0 Likes
This widget could not be displayed.