|
28 | 28 | #include "FlashSimBlockDevice.h"
|
29 | 29 | #include "flash_map_backend/secondary_bd.h"
|
30 | 30 | #include "bootutil/bootutil.h"
|
31 |
| -#include "bootutil/bootutil_extra.h" |
32 | 31 |
|
33 | 32 | /* Private typedef ----------------------------------------------------------- */
|
34 | 33 | /* Private define ------------------------------------------------------------ */
|
35 | 34 | #define FLASH_DESC_STR "@Internal Flash 2MB /0x08000000/01*128Ka,15*128Kg"
|
36 | 35 | //#define BOOTLOADER_DESC_STR "@Option Bits /0x52002000/01*1Ka"
|
37 | 36 | #define QSPI_FLASH_DESC_STR "@Ext RAW Flash 16MB /0x90000000/4096*4Kg"
|
38 |
| -#define FILE_FLASH_DESC_STR "@Ext File Flash 16MB /0xA0000000/4096*4Kg" |
39 | 37 |
|
40 | 38 | #define FLASH_ERASE_TIME (uint16_t)0
|
41 | 39 | #define FLASH_PROGRAM_TIME (uint16_t)0
|
|
44 | 42 | /* Private variables --------------------------------------------------------- */
|
45 | 43 | /* Private function prototypes ----------------------------------------------- */
|
46 | 44 | char BOOTLOADER_DESC_STR[48];
|
| 45 | +char FILE_FLASH_DESC_STR[48] = "@Ext File Flash 16MB /0xA0000000/4096*4Kg"; |
47 | 46 |
|
48 | 47 |
|
49 | 48 | /* Extern function prototypes ------------------------------------------------ */
|
@@ -83,12 +82,11 @@ void init_Memories() {
|
83 | 82 | qspi_flash->init();
|
84 | 83 | if (dfu_secondary_bd != nullptr) {
|
85 | 84 | dfu_secondary_bd->init();
|
86 |
| - } |
87 |
| - if(boot_empty_keys()) { |
88 |
| - snprintf(BOOTLOADER_DESC_STR, sizeof(BOOTLOADER_DESC_STR), "@Arduino boot v.%02d /0x00000000/0*4Kg", BOOTLOADER_VERSION); |
89 |
| - } else { |
90 | 85 | snprintf(BOOTLOADER_DESC_STR, sizeof(BOOTLOADER_DESC_STR), "@MCUboot v.%02d /0x00000000/0*4Kg", BOOTLOADER_VERSION);
|
91 |
| - } |
| 86 | + } else { |
| 87 | + snprintf(BOOTLOADER_DESC_STR, sizeof(BOOTLOADER_DESC_STR), "@Arduino boot v.%02d /0x00000000/0*4Kg", BOOTLOADER_VERSION); |
| 88 | + snprintf(FILE_FLASH_DESC_STR, sizeof(FILE_FLASH_DESC_STR), "@Ext File Flash 0MB /0x00000000/0*4Kg"); |
| 89 | + } |
92 | 90 | }
|
93 | 91 |
|
94 | 92 | Thread writeThread(osPriorityHigh);
|
|
0 commit comments