Lucian Firan

MKW30Z OTAP demo gUseBootloaderLink_d=1 issue

Discussion created by Lucian Firan on Feb 13, 2017
Latest reply on Feb 24, 2017 by Lucian Firan
IAR 7.50;  KW40Z_Connectivity_Software_1.0.1 (KSDK_1.3.0)
The issue is generated when gUseBootloaderLink_d=1 is present in Linker section.
The leds don't flash; callback functions on timers are not executed (on LED.c LED_FlashTimeout not triggered).
The advertising works, but no BT connection is possible (BleApp_ConnectionCallback is not triggered)
When that setting is removed - timers works,callbacks work, leds flash as they should,
but no chip update at end of file upload.
Inline image
I can connect to Kinetis BLE Toolbox - OTAP, I can upload a file to the MKW30Z.
Te phone confirms transfer complete.
Inline image
The code exit clean via ResetMCU (breakpoint on it), but that's all, the MKW30Z is not updated with new image !
(either bootloader does not kick in or  OTA_SetNewImageFlag does not work properly, or ...)
static void OtapClient_ContinueImageDownload (deviceId_t deviceId)
{
...........
    case mOtapClientStateImageDownloadComplete_c:
        /*! If the image download is complete try to set the new image flag
         *  and reset the MCU for the bootloader ot kick in. */
        Gap_Disconnect (deviceId);
        OTA_SetNewImageFlag ();
        ResetMCU ();
        break;
    default:

Outcomes