S32K146 CSEc strict mode code size update

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

S32K146 CSEc strict mode code size update

Jump to solution
2,142 Views
sinixtek
Contributor I

Hi,

We are developing a solution in which we need to enable CSEc strict mode.

When we do, by using the boot flavor '00' in the command CMD_BOOT_DEFINE, everything works fine.

However, after rebooting, if we update our boot loader and we try to define a new BOOT_SIZE, the command fails with code 0x800.

Even if we try to update with the same BOOT_SIZE, the command fails, no matter the Boot Flavor we use in the command. If we ignore the error and reboot, the part is bricked (even using the same BOOT_SIZE and updating the MAC appropriately).

The same process works without issue if the Sequential Boot Method is selected. The documentation states that Strict mode is OTP, but that BOOT_SIZE can be changed.

How can we update BOOT_SIZE in Strict mode?

Thank you very much!

0 Kudos
Reply
1 Solution
2,068 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @sinixtek 

the result is that the SIZE cannot be updated. The sentence in the manual is confusing, I asked to update it.

Thanks for pointing this out.

Regards,

Lukas

View solution in original post

0 Kudos
Reply
4 Replies
2,112 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @sinixtek 

That's a good question, I have never tried this use-case. It looks like you are the first one who is trying to change the BOOT_SIZE in strict boot mode. Please give me more time to clarify this. I will probably need to discuss this with another team, so it may take some time. At a glance, my guess is that it's not supported even if the documentation says something different. But let's wait for the result.

Regards,

Lukas

0 Kudos
Reply
2,096 Views
sinixtek
Contributor I

Hi @lukaszadrapa ,

Thank you very much for your support, let's see what they say.

Best regards,

Carlos

0 Kudos
Reply
2,069 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @sinixtek 

the result is that the SIZE cannot be updated. The sentence in the manual is confusing, I asked to update it.

Thanks for pointing this out.

Regards,

Lukas

0 Kudos
Reply
2,058 Views
sinixtek
Contributor I

Thank you very much for clarifying this.

Best regards,

Carlos

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1949764%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32K146%20CSEc%20strict%20mode%20code%20size%20update%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1949764%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EWe%20are%20developing%20a%20solution%20in%20which%20we%20need%20to%20enable%20CSEc%20strict%20mode.%3C%2FP%3E%3CP%3EWhen%20we%20do%2C%20by%20using%20the%20boot%20flavor%20'00'%20in%20the%20command%20CMD_BOOT_DEFINE%2C%20everything%20works%20fine.%3C%2FP%3E%3CP%3EHowever%2C%20after%20rebooting%2C%20if%20we%20update%20our%20boot%20loader%20and%20we%20try%20to%20define%20a%20new%20BOOT_SIZE%2C%20the%20command%20fails%20with%20code%200x800.%3C%2FP%3E%3CP%3EEven%20if%20we%20try%20to%20update%20with%20the%20same%20BOOT_SIZE%2C%20the%20command%20fails%2C%20no%20matter%20the%20Boot%20Flavor%20we%20use%20in%20the%20command.%20If%20we%20ignore%20the%20error%20and%20reboot%2C%20the%20part%20is%20bricked%20(even%20using%20the%20same%20BOOT_SIZE%20and%20updating%20the%20MAC%20appropriately).%3C%2FP%3E%3CP%3EThe%20same%20process%20works%20without%20issue%20if%20the%20Sequential%20Boot%20Method%20is%20selected.%20The%20documentation%20states%20that%20Strict%20mode%20is%20OTP%2C%20but%20that%20BOOT_SIZE%20can%20be%20changed.%3C%2FP%3E%3CP%3EHow%20can%20we%20update%20BOOT_SIZE%20in%20Strict%20mode%3F%3C%2FP%3E%3CP%3EThank%20you%20very%20much!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1957353%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20S32K146%20CSEc%20strict%20mode%20code%20size%20update%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1957353%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThank%20you%20very%20much%20for%20clarifying%20this.%3C%2FP%3E%3CP%3EBest%20regards%2C%3C%2FP%3E%3CP%3ECarlos%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1956524%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20S32K146%20CSEc%20strict%20mode%20code%20size%20update%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1956524%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F181807%22%20target%3D%22_blank%22%3E%40sinixtek%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Ethe%20result%20is%20that%20the%20SIZE%20cannot%20be%20updated.%20The%20sentence%20in%20the%20manual%20is%20confusing%2C%20I%20asked%20to%20update%20it.%3C%2FP%3E%0A%3CP%3EThanks%20for%20pointing%20this%20out.%3C%2FP%3E%0A%3CP%3ERegards%2C%3C%2FP%3E%0A%3CP%3ELukas%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1953084%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20S32K146%20CSEc%20strict%20mode%20code%20size%20update%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1953084%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F37795%22%20target%3D%22_blank%22%3E%40lukaszadrapa%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%3CP%3EThank%20you%20very%20much%20for%20your%20support%2C%20let's%20see%20what%20they%20say.%3C%2FP%3E%3CP%3EBest%20regards%2C%3C%2FP%3E%3CP%3ECarlos%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1952048%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20S32K146%20CSEc%20strict%20mode%20code%20size%20update%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1952048%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F181807%22%20target%3D%22_blank%22%3E%40sinixtek%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThat's%20a%20good%20question%2C%20I%20have%20never%20tried%20this%20use-case.%20It%20looks%20like%20you%20are%20the%20first%20one%20who%20is%20trying%20to%20change%20the%20BOOT_SIZE%20in%20strict%20boot%20mode.%20Please%20give%20me%20more%20time%20to%20clarify%20this.%20I%20will%20probably%20need%20to%20discuss%20this%20with%20another%20team%2C%20so%20it%20may%20take%20some%20time.%20At%20a%20glance%2C%20my%20guess%20is%20that%20it's%20not%20supported%20even%20if%20the%20documentation%20says%20something%20different.%20But%20let's%20wait%20for%20the%20result.%3C%2FP%3E%0A%3CP%3ERegards%2C%3C%2FP%3E%0A%3CP%3ELukas%3C%2FP%3E%3C%2FLINGO-BODY%3E