"Loader" is the part that actually reads the hex data and programs the flash
"Loadable" is the program that will be programmed into flash using the "Loader"
I understand that part where the "Loader" is the one that programs the flash.
But I think that the BLE stack is part of it. What I am confused is that there are 2 AppCallBack()
One in Loadable, "CyBle_Start(AppCallBack);" and another in Loader, in main.c
Which one is the actual one that is invoked by the BLE Stack that is part of the Loader.
CyBle_Start(AppCallBack) is the code that starts the BLE stack (radio BLESS).
Thus, the other one is what you are looking for I think.
Sorry to not understand correctly.
Which one are you referring to for CyBle_Start(AppCallBack);
In the Loader or the Loadable?
The CyBle_Start() in the Loader is the function call that will be executed when the project is loading a new image. The CyBle_Start() in the Loadable is the function call that will be executed when your application has been fully loaded and starts running.
Thus, the one in the Loader is the function being called by the update.