SmartSnippets DA1459x SDK
partition_table.h
Go to the documentation of this file.
1 
34 /*
35  * When partition_table is not overridden by adding a custom partition_table.h file to a project
36  * then this file is used to select partition table by macro definition.
37  *
38  * To use layout other than SDK one, add include path into the project settings that will point
39  * to a folder with the custom partition_table file.
40  */
41 
42 
43 # if defined(USE_PARTITION_TABLE_EFLASH_WITH_SUOTA)
45 # elif defined(USE_PARTITION_TABLE_1MB_WITH_SUOTA)
47 # elif defined(USE_PARTITION_TABLE_4MB_WITH_SUOTA)
49 # elif defined(USE_PARTITION_TABLE_1MB)
50 # include <1M/partition_table.h>
51 # else
52 # if (dg_configCODE_LOCATION == NON_VOLATILE_IS_EMBEDDED_FLASH) || \
53  (dg_configCODE_LOCATION == NON_VOLATILE_IS_NONE)
54 # include <EFLASH/partition_table.h>
55 # elif (dg_configCODE_LOCATION == NON_VOLATILE_IS_QSPI_FLASH)
56 # include <4M/partition_table.h>
57 # endif
58 # endif
59 
60 
61 /*
62  * Define a maximal size of the image which could be written to QSPI - based on the partition sizes.
63  */
64 #if defined(NVMS_FW_EXEC_PART_SIZE) && defined(NVMS_FW_UPDATE_PART_SIZE)
65 #if NVMS_FW_EXEC_PART_SIZE < NVMS_FW_UPDATE_PART_SIZE
66 #define IMAGE_PARTITION_SIZE NVMS_FW_EXEC_PART_SIZE
67 #else
68 #define IMAGE_PARTITION_SIZE NVMS_FW_UPDATE_PART_SIZE
69 #endif /* NVMS_FW_EXEC_PART_SIZE < NVMS_FW_UPDATE_PART_SIZE */
70 #elif defined(NVMS_FIRMWARE_PART_SIZE)
71 #define IMAGE_PARTITION_SIZE NVMS_FIRMWARE_PART_SIZE
72 #else
73 #error "At least one partition where application could be placed should be defined!"
74 #endif /* defined(NVMS_FW_EXEC_PART_SIZE) && defined(NVMS_FW_UPDATE_PART_SIZE) */
partition_table.h
partition_table.h
partition_table.h
partition_table.h
partition_table.h
partition_table.h