Announcements

Help us improve the Power & Sensing Selection Guide. Share feedback

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.
Anonymous
Not applicable

Hi all,

   

T am trying for OTA fixed Stack bootloader in my custom profile BLE project,

   

In this project ,I am just toggling LED by reading a byte received from BLE.

   

and I am using example OTA fixed stack bootloader project to bootload through OTA,

   

But in this project when I call CyBle_processevent() function in main loop it is going in CY_ISR(IntDefaultHandler) while loop.

   

Please help me to solve this.

   

I am using CY8CKIT-042-BLE-A kit

   

Thanks in advance

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.
GyanC_36
Employee
Employee
250 replies posted 100 replies posted 50 replies posted

Hello,

  Additional to response#1, you have to add the custom linker script for your bootloadable project as well and have to give the correct path for same to Linker ( Build Setting).

Attached is the modified working project build with PSoC Creator 4.2 with GCC 5.4.1 toolchain.

The project is build for 128KB devices,for 256 K devices modify the linker script file as per this document - http://www.cypress.com/file/198301/download  page#47.

-Gyan

View solution in original post

0 Likes
6 Replies
AnjanaM_61
Moderator
Moderator
Moderator
10 questions asked 5 comments on KBA First comment on KBA

Hi ,

   

Please add the below code in the beginning of main.c of your application project.

   

#if !defined(__ARMCC_VERSION)
    InitializeBootloaderSRAM();
#endif

   

 

   

Eg:

   

int main(void)
{
    CYBLE_LP_MODE_T lpMode;
    CYBLE_BLESS_STATE_T blessState;
    
    #if !defined(__ARMCC_VERSION)
    InitializeBootloaderSRAM();
#endif

   

    mainTimer = 0u;
    
    CyGlobalIntEnable; /* Enable global interrupts. */

   

    PrintProjectHeader();

   

:

   

:

   

 

   

Now it should work.

   

Thanks,
Anjana
  

0 Likes
Anonymous
Not applicable

Hi Anpm,

I have added the above code ,Still in the same state, it is not working.

0 Likes

deepamalagi_2509881​ Do you remember what you found was the issue?  I'm guessing maybe heap or stack size?

0 Likes
lock attach
Attachments are accessible only for community members.
GyanC_36
Employee
Employee
250 replies posted 100 replies posted 50 replies posted

Hello,

  Additional to response#1, you have to add the custom linker script for your bootloadable project as well and have to give the correct path for same to Linker ( Build Setting).

Attached is the modified working project build with PSoC Creator 4.2 with GCC 5.4.1 toolchain.

The project is build for 128KB devices,for 256 K devices modify the linker script file as per this document - http://www.cypress.com/file/198301/download  page#47.

-Gyan

0 Likes

You said "Attached is the modified working project" but there is no attachment. The link leads to an app note, but not a project.

0 Likes
lock attach
Attachments are accessible only for community members.

It is attached in the thread #4.

Here , I have attached again.

-Gyan

0 Likes