Bootloader Configuration Area (BCA)

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

Bootloader Configuration Area (BCA)

1,268 Views
DanielePagani
Contributor II

    Dear sirs,

according to Chapter 2.3 of MCU Bootloader v2.5.0 Reference Manual:

The MCU bootloader reads data from the Bootloader Configuration Area (BCA) to configure various features of the bootloader. The BCA resides in flash memory at offset 0x3C0 from the beginning of the user application, and provides all of the parameters needed to configure the MCU bootloader operation. For uninitialized flash, the MCU bootloader uses a predefined default configuration..."

However, the evkmimxrt1060_flashloader project from SDK bootloader_examples->flashloader has a function (property_imx.c) :

// See property.h for documentation on this function.

status_t bootloader_property_load_user_config(void)

{

    bootloader_configuration_data_t *config = &g_bootloaderContext.propertyInterface->store->configurationData;

    memset(config, 0xff, sizeof(bootloader_configuration_data_t));

    // copy from User Application's BootloaderConfigurationData at 0x3c0 to Sram

    memcpy(config,(void*)kBootloaderConfigAreaAddress,sizeof(bootloader_configuration_data_t)); // <-- new code

    // Update available peripherals based on specific chips

    update_available_peripherals();

    return kStatus_Success;

}

We guess adding "new code" line is correct in order to copy data from User Application's BCA to local structure.

Otherwise the structure remains always initialized to all 0xFF.

We're wondering if this solution is correct or if there are other solutions.

BR

Daniele

Labels (1)
0 Kudos
Reply
1 Reply

1,164 Views
jeremyzhou
NXP Employee
NXP Employee

Hi Daniele Pagani ,

Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
1) We're wondering if this solution is correct or if there are other solutions.
-- It's not necessary to add below code in the
bootloader_property_load_user_config() function, because the BCA feature hasn't be supported in the RT series.

Have a great day,
TIC

 

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos
Reply