File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -243,8 +243,8 @@ int target_init(void) {
243243 HAL_FLASH_Lock ();
244244 if (valid_application () && empty_keys ()) {
245245 BOOT_LOG_INF (" MCUboot not configured, but valid image found." );
246- BOOT_LOG_INF (" Booting firmware image at 0x%x\n " , USBD_DFU_APP_DEFAULT_ADD );
247- mbed_start_application (USBD_DFU_APP_DEFAULT_ADD );
246+ BOOT_LOG_INF (" Booting firmware image at 0x%x\n " , APP_DEFAULT_ADD );
247+ mbed_start_application (APP_DEFAULT_ADD );
248248 }
249249 swap_ticker.attach (&swap_feedback, 250ms);
250250 return 0 ;
Original file line number Diff line number Diff line change 2929#include "usbd_dfu_flash.h"
3030#endif
3131
32+ #if MCUBOOT_APPLICATION_DFU
33+ #define APP_DEFAULT_ADD USBD_DFU_APP_DEFAULT_ADD
34+ #else
35+ #define APP_DEFAULT_ADD 0x08040000
36+ #endif
37+
3238#define BOOTLOADER_CONFIG_MAGIC 0xA0
3339#define BOOTLOADER_VERSION 2
3440
You can’t perform that action at this time.
0 commit comments