File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed
Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -142,15 +142,13 @@ int target_init(void) {
142142 DigitalIn boot_sel (PI_8,PullDown);
143143
144144 int magic = RTCGetBKPRegister (RTC_BKP_DR0);
145- BOOT_LOG_DBG (" Envie magic 0x%x" , magic);
146145
147146 // in case we have been reset let's wait 500 ms to see if user is trying to stay in bootloader
148147 if (ResetReason::get () == RESET_REASON_PIN_RESET) {
149148 // now that we've been reset let's set magic. resetting with this set will
150149 // flag we need to stay in bootloader.
151150 RTCSetBKPRegister (RTC_BKP_DR0, 0xDF59 );
152151 HAL_Delay (500 );
153- BOOT_LOG_DBG (" Envie magic set 0x%x" , RTCGetBKPRegister ( RTC_BKP_DR0));
154152 }
155153
156154 DigitalOut usb_reset (PJ_4, 0 );
@@ -250,12 +248,10 @@ int target_init(void) {
250248 BOOT_LOG_INF (" Booting firmware image at 0x%x\n " , USBD_DFU_APP_DEFAULT_ADD);
251249 mbed_start_application (USBD_DFU_APP_DEFAULT_ADD);
252250 }
253- BOOT_LOG_DBG (" Envie app magic 0x%x" , RTCGetBKPRegister (RTC_BKP_DR0));
254251 swap_ticker.attach (&swap_feedback, 250ms);
255252 return 0 ;
256253
257254 } else {
258- BOOT_LOG_DBG (" Envie loop magic 0x%x" , RTCGetBKPRegister (RTC_BKP_DR0));
259255 if (boot_sel) {
260256 return 1 ;
261257 } else {
You can’t perform that action at this time.
0 commit comments