Hello,
Our application requires NXP firmware to be updated through UART from another host controller. Our configuration has a bootloader flashed at location 0x000 and application image flashed at 0xA000. In normal configuration without Flash security OTA is working fine and when Flash security (FSEC = BF) is enabled OTA Fails.
Please find attached the flash configuration where OTA is successful without Flash security.
Flash configuration where Flash Security is enabled with Backdoor key access and OTA Fails.
Please refer the attached failure logs.
已解决! 转到解答。
Hello Eduardo,
Initially we received Negative Response with error code kStatus_SecurityViolation from the Bootloader when FlashEraseAll command was sent causing the OTA to fail. We modified the Host controller OTA code to send FlashSecurityDisable command while in Bootloader mode after the initial Ping Command and then proceed with regular OTA operation. OTA is successful with the modified implementation.
Thank you!
Hello @rao88,
Hope you are doing well.
Could you please provide more details about your development? Also, what KW36 SDK version are you using?
Can you try the image upgrade by using the Kinetis Flash Tool to confirm if a similar behavior is present? This tool can be downloaded from the MCU Bootloader webpage, Downloads section:
It should be included inside bin\Tools\KinetisFlashTool\win
Regards,
Eduardo.
Hello Eduardo,
Initially we received Negative Response with error code kStatus_SecurityViolation from the Bootloader when FlashEraseAll command was sent causing the OTA to fail. We modified the Host controller OTA code to send FlashSecurityDisable command while in Bootloader mode after the initial Ping Command and then proceed with regular OTA operation. OTA is successful with the modified implementation.
Thank you!