Midnight Sun Firmware
Loading...
Searching...
No Matches
fota_memory_map.h
1#pragma once
2
3/************************************************************************************************
4 * @file fota_memory_map.h
5 *
6 * @brief Fota Memory Map Header File
7 *
8 * @date 2025-04-30
9 * @author Midnight Sun Team #24 - MSXVI
10 ************************************************************************************************/
11
12/* Standard library Headers */
13#include <stdbool.h>
14#include <stdint.h>
15
16/* Inter-component Headers */
17
18/* Intra-component Headers */
19#include "fota_packet.h"
20
27extern uint32_t _flash_start;
28extern uint32_t _flash_size;
29extern uint32_t _flash_page_size;
30extern uint32_t _application_start;
31extern uint32_t _application_size;
32extern uint32_t _bootloader_start;
33extern uint32_t _bootloader_size;
34extern uint32_t _sram_start;
35extern uint32_t _sram_size;
36
38#define FLASH_START_ADDRESS_LINKERSCRIPT ((uint32_t) & _flash_start)
39
41#define FLASH_SIZE_LINKERSCRIPT ((size_t) & _flash_size)
42
44#define FLASH_PAGE_SIZE_LINKERSCRIPT ((size_t) & _flash_page_size)
45
47#define APPLICATION_START_ADDRESS ((uint32_t) & _application_start)
48
50#define APPLICATION_SIZE ((size_t) & _application_size)
51
53#define BOOTLOADER_START_ADDRESS ((uint32_t) & _bootloader_start)
54
56#define BOOTLOADER_SIZE ((size_t) & _bootloader_size)
57
59#define SRAM_START_ADDRESS ((uint32_t) & _sram_start)
60
62#define SRAM_SIZE ((size_t) & _sram_size)
63