Question on increase in App flash size for slot 1 and slot 2 in i.mx RT1052.

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Question on increase in App flash size for slot 1 and slot 2 in i.mx RT1052.

1,535件の閲覧回数
SwapnaBaviskar
Contributor I

We are using the MCU   i.MX RT 1052 . For Bootloader , the NXP bootloader is used https://github.com/nxp-mcuxpresso/sbl in the project.

We would like to confirm our understanding regarding whether changes in Bootloader sbl project are required for increasing the application image size 

Please find herewith the attachment of the current memory map - flash_memory_map.xls.

Currently, the App1 and App2 image start address is as follows :

App 1 : 0x60267000

App 2 : 0x604CE000

 

Total

SBL and (SFW)

 

 

 

 

Starting Block Index

 

 

Boot Loader + Boot Config + Boot Images

0x60000000

SBL

74KB

32

131072

0

0x0

0x60000000

App 1

0x60100000

SFW 

2093KB

615

2519040

615

267000

0x60267000

App 2

0x60200000

SFW 

 

615

2519040

1230

4CE000

0x604CE000

FlashFS

 

 

 

 

 

 

 

0x607E0000

 

Accordingly as per our understanding in the linker settings for the Application project are as follows:

BOOT_FLASH_ACT_APP=0x60267000

BOOT_FLASH_CAND_APP=0x604CE000

SwapnaBaviskar_0-1707246259930.png

 

 

Now as per our understanding, In the Bootloader project , File - sblconfig.h the following define would accordingly be based on the App1 and App2 image size as follows:

 

#define BOOT_FLASH_BASE        0x60000000

#define BOOT_FLASH_HEADER  0x60267000

#define BOOT_FLASH_ACT_APP 0x60267000

#define BOOT_FLASH_CAND_APP 0x604CE000

#define BOOT_FLASH_CUSTOMER 0x607E0000

Please confirm.

 

Now, if we want to increase the App 1 and App 2 image size  to 4MB , we will need to change the offset in linker setting in the application code as follows.

BOOT_FLASH_ACT_APP=0x60267000

BOOT_FLASH_CAND_APP=0x60667000

 

If we change the App image size to 4MB then do we also need to change the below defines in the Bootloader code sblconfig.h file if we are using the SWAP mode of OTA.

#define BOOT_FLASH_BASE        0x60000000

#define BOOT_FLASH_HEADER  0x60267000

#define BOOT_FLASH_ACT_APP 0x60267000

#define BOOT_FLASH_CAND_APP 0x604CE000

#define BOOT_FLASH_CUSTOMER 0x607E0000

 

Would the above constants need to be changed in the bootloader code if we want to increase the application image size from 615 sectors (2.4MB) to 1024 sectors (4MB) if we are using the SWAP mode for OTA .

Please provide your guidance.

Thanks and Regards,

Swapna.

0 件の賞賛
返信
7 返答(返信)

1,327件の閲覧回数
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello, sorry for the late response I have one question to continue your support, could you elaborate further about your Excel file?

Best regards,
Pavel

0 件の賞賛
返信

1,306件の閲覧回数
SwapnaBaviskar
Contributor I

Hello Pavel @Pavel_Hernandez ,

Thank you for looking into this.

Currently, the App1 and App2 image start address is as follows :

App 1 : 0x60267000

App 2 : 0x604CE000

In the .xls column M has the offsets above .

Please ignore column B,C,D and E in the .xls.

 

Just wanted to show the address offsets for the Bootloader and App 1 , App2 images in the .xls  in column M . Column K depicts that each image is of 615 sectors i.e 615 *4KB = 2460 KB.

Thanks and Regards,

Swapna.

0 件の賞賛
返信

1,216件の閲覧回数
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello, sorry for the long time this has taken, I did the test on my side, and I had some difficulty, but I ask more details from my team and there are comments from them.

Pavel_Hernandez_0-1710551153708.png

Have you ever add the header per chapter 7.2 guide? If you want to jump successfully, the header is necessary.

Except the flash allocation macros, this value also need to increase.

Best regards,
Pavel

0 件の賞賛
返信

1,066件の閲覧回数
SwapnaBaviskar
Contributor I

Hello Pavel @Pavel_Hernandez 

Thanks for checking and confirming that we would need to modify the flash allocation macros and increase the sector size as well in the Bootloader code if we want to increase the application image size. 

Since i am working on this for the first time, wanted to double check that there is no other way that we can increase the Application Image Size without changing the bootloader code. 

Please let me know.

Thanks and Regards,

Swapna

 

0 件の賞賛
返信

1,016件の閲覧回数
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello, sorry for the late response, I was asking for more information.

Not changing the code, just change the configuration in scons menu.

Yes, for now, there is no other way, cause the image size is a very important value for SBL to use.

Best regards,
Pavel

0 件の賞賛
返信

1,357件の閲覧回数
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello, I´m following your case, I apologize for the late response, I was researching information I had to do a test to understand more about this and had some troubles, let me do a test about swap mode FOTA.

Best regards,
Pavel

0 件の賞賛
返信

1,466件の閲覧回数
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello, my name is Pavel, and I will be supporting your case, let me get into your case and when I have more information, I will contact you.

Best regards,
Pavel

0 件の賞賛
返信