- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Solved! Go to Solution.
- Labels:
-
BLE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Anpm,
I have added the above code ,Still in the same state, it is not working.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
deepamalagi_2509881 Do you remember what you found was the issue? I'm guessing maybe heap or stack size?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You said "Attached is the modified working project" but there is no attachment. The link leads to an app note, but not a project.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content