How to use SDRAM in secure FOTA function of Secure Bootloader(SBL)?

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

How to use SDRAM in secure FOTA function of Secure Bootloader(SBL)?

Jump to solution
300 Views
CainePark
Contributor II

I'm trying to implement secure FOTA using Secure Bootloader(SBL) & Secure Firmware(SFW).

I referenced '7.4 Secure FOTA' in MCUOTASBLSFWUG.pdf.

In the guide, when I check 'Enable ROM to verify sbl' , 'XIP_BOOT_HEADER_ENABLE' value is set to 0.

So I can't use SDRAM function.

I don't know the reason why the 'Secure FOTA' function disable the SDRAM function.

Please let me know how to use SDRAM function in 'Secure FOTA'.

 

0 Kudos
1 Solution
215 Views
CainePark
Contributor II

I applied the example you provided and confirmed that SDRAM access worked normally after secure booting.

Thank you for your help!

View solution in original post

0 Kudos
2 Replies
264 Views
GottiLuca
Contributor IV

 

Hi,

I've faced the same situation and the simplest solution I've found was to initialize the SDRAM "manually" by a function.

You can use as a reference the code in NXP SDK : i.e. : <sdk_root>\boards\evkmimxrt1064\driver_examples\semc\sdram .

In particular see the function BOARD_InitSEMC() in file semc_sdram.c . 

 

0 Kudos
216 Views
CainePark
Contributor II

I applied the example you provided and confirmed that SDRAM access worked normally after secure booting.

Thank you for your help!

0 Kudos