Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions app/dfu/usbd_dfu_flash.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
#define FLASH_DESC_STR "@Internal Flash 2MB /0x08000000/01*128Ka,15*128Kg"
//#define BOOTLOADER_DESC_STR "@Option Bits /0x52002000/01*1Ka"
#define QSPI_FLASH_DESC_STR "@Ext RAW Flash 16MB /0x90000000/4096*4Kg"
#define FILE_FLASH_DESC_STR "@Ext File Flash 16MB /0xA0000000/4096*4Kg"

#define FLASH_ERASE_TIME (uint16_t)0
#define FLASH_PROGRAM_TIME (uint16_t)0
Expand All @@ -43,6 +42,7 @@
/* Private variables --------------------------------------------------------- */
/* Private function prototypes ----------------------------------------------- */
char BOOTLOADER_DESC_STR[48];
char FILE_FLASH_DESC_STR[48] = "@Ext File Flash 16MB /0xA0000000/4096*4Kg";


/* Extern function prototypes ------------------------------------------------ */
Expand Down Expand Up @@ -82,8 +82,11 @@ void init_Memories() {
qspi_flash->init();
if (dfu_secondary_bd != nullptr) {
dfu_secondary_bd->init();
}
snprintf(BOOTLOADER_DESC_STR, sizeof(BOOTLOADER_DESC_STR), "@MCUBoot version %d /0x00000000/0*4Kg", BOOTLOADER_VERSION);
snprintf(BOOTLOADER_DESC_STR, sizeof(BOOTLOADER_DESC_STR), "@MCUboot v.%02d /0x00000000/0*4Kg", BOOTLOADER_VERSION);
} else {
snprintf(BOOTLOADER_DESC_STR, sizeof(BOOTLOADER_DESC_STR), "@Arduino boot v.%02d /0x00000000/0*4Kg", BOOTLOADER_VERSION);
snprintf(FILE_FLASH_DESC_STR, sizeof(FILE_FLASH_DESC_STR), "@Ext File Flash 0MB /0x00000000/0*4Kg");
}
}

Thread writeThread(osPriorityHigh);
Expand Down