MKW36 UART OTA Fail when Flash security enabled

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MKW36 UART OTA Fail when Flash security enabled

Jump to solution
1,427 Views
rao88
Contributor I

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.

rao88_2-1702994693321.png

 

Flash configuration where Flash Security is enabled with Backdoor key access and OTA Fails.

rao88_3-1702994876071.png

 

Please refer the attached failure logs.

 

 

 

0 Kudos
Reply
1 Solution
1,372 Views
rao88
Contributor I

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!

View solution in original post

2 Replies
1,385 Views
EduardoZamora
NXP TechSupport
NXP TechSupport

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:

EduardoZamora_0-1703191139530.png

It should be included inside bin\Tools\KinetisFlashTool\win

Regards,
Eduardo.

0 Kudos
Reply
1,373 Views
rao88
Contributor I

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!