|
34 | 34 | #define FLASH_DESC_STR "@Internal Flash 2MB /0x08000000/01*128Ka,15*128Kg"
|
35 | 35 | //#define BOOTLOADER_DESC_STR "@Option Bits /0x52002000/01*1Ka"
|
36 | 36 | #define QSPI_FLASH_DESC_STR "@Ext RAW Flash 16MB /0x90000000/4096*4Kg"
|
37 |
| -#define FILE_FLASH_DESC_STR "@Ext File Flash 16MB /0xA0000000/4096*4Kg" |
38 | 37 |
|
39 | 38 | #define FLASH_ERASE_TIME (uint16_t)0
|
40 | 39 | #define FLASH_PROGRAM_TIME (uint16_t)0
|
|
43 | 42 | /* Private variables --------------------------------------------------------- */
|
44 | 43 | /* Private function prototypes ----------------------------------------------- */
|
45 | 44 | char BOOTLOADER_DESC_STR[48];
|
| 45 | +char FILE_FLASH_DESC_STR[48] = "@Ext File Flash 16MB /0xA0000000/4096*4Kg"; |
46 | 46 |
|
47 | 47 |
|
48 | 48 | /* Extern function prototypes ------------------------------------------------ */
|
@@ -82,8 +82,11 @@ void init_Memories() {
|
82 | 82 | qspi_flash->init();
|
83 | 83 | if (dfu_secondary_bd != nullptr) {
|
84 | 84 | dfu_secondary_bd->init();
|
85 |
| - } |
86 |
| - snprintf(BOOTLOADER_DESC_STR, sizeof(BOOTLOADER_DESC_STR), "@MCUBoot version %d /0x00000000/0*4Kg", BOOTLOADER_VERSION); |
| 85 | + snprintf(BOOTLOADER_DESC_STR, sizeof(BOOTLOADER_DESC_STR), "@MCUboot v.%02d /0x00000000/0*4Kg", BOOTLOADER_VERSION); |
| 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 | + } |
87 | 90 | }
|
88 | 91 |
|
89 | 92 | Thread writeThread(osPriorityHigh);
|
|
0 commit comments