MCUXpresso_MIMXRT1052xxxxB/boards/evkbimxrt1050/ota_examples/mcuboot_opensource/flash_partitioning.c
Yilin Sun 75f32185d2
Updated to v2.14.0
Signed-off-by: Yilin Sun <imi415@imi.moe>
2023-11-30 20:55:00 +08:00

30 lines
911 B
C

/*
* Copyright 2022 NXP
* All rights reserved.
*
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "flash_partitioning.h"
#include "flash_map.h"
#include "mcuboot_config.h"
#include "sysflash/sysflash.h"
const char *boot_image_names[MCUBOOT_IMAGE_NUMBER] = {"APP"};
struct flash_area boot_flash_map[MCUBOOT_IMAGE_SLOT_NUMBER] = {
/* Image 0; slot 0 - Main Application Active Image */
{.fa_id = 0,
.fa_device_id = FLASH_DEVICE_ID,
.fa_off = BOOT_FLASH_ACT_APP - BOOT_FLASH_BASE,
.fa_size = BOOT_FLASH_CAND_APP - BOOT_FLASH_ACT_APP,
.fa_name = "APP_PRIMARY"},
/* Image 0; slot 1 - Main Application Candidate Image */
{.fa_id = 1,
.fa_device_id = FLASH_DEVICE_ID,
.fa_off = BOOT_FLASH_CAND_APP - BOOT_FLASH_BASE,
.fa_size = BOOT_FLASH_CAND_APP - BOOT_FLASH_ACT_APP,
.fa_name = "APP_SECONDARY"}};