kopia lustrzana https://github.com/meshtastic/firmware
				
				
				
			nrf52 soft device will watchdog if you use ICE while BT on... (#4189)
so have debugger disable bluetooth.pull/4199/head
							rodzic
							
								
									51f3ce5e60
								
							
						
					
					
						commit
						f86a0e5228
					
				|  | @ -63,7 +63,8 @@ static void initBrownout() | |||
|     // We don't bother with setting up brownout if soft device is disabled - because during production we always use softdevice
 | ||||
| } | ||||
| 
 | ||||
| static const bool useSoftDevice = true; // Set to false for easier debugging
 | ||||
| // This is a public global so that the debugger can set it to false automatically from our gdbinit
 | ||||
| bool useSoftDevice = true; // Set to false for easier debugging
 | ||||
| 
 | ||||
| #if !MESHTASTIC_EXCLUDE_BLUETOOTH | ||||
| void setBluetoothEnable(bool enable) | ||||
|  |  | |||
|  | @ -79,6 +79,7 @@ debug_extra_cmds = | |||
|   commands 1 | ||||
|   echo Breakpoint at setup() has semihosting console, connect to it with "telnet localhost 5555" | ||||
|   set wantSemihost = true | ||||
|   set useSoftDevice = false | ||||
|   end | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
|  | @ -15,5 +15,19 @@ build_src_filter = ${nrf52_base.build_src_filter} +<../variants/wio-sdk-wm1110> | |||
| lib_deps =  | ||||
|   ${nrf52840_base.lib_deps} | ||||
| debug_tool = jlink | ||||
| ;debug_tool = stlink | ||||
| ;debug_speed = 4000 | ||||
| ; No need to reflash if the binary hasn't changed | ||||
| debug_load_mode = modified | ||||
| ; If not set we will default to uploading over serial (first it forces bootloader entry by talking 1200bps to cdcacm) | ||||
| upload_protocol = jlink | ||||
| ;upload_protocol = stlink | ||||
| ; we prefer to stop in setup() because we are an 'ardiuno' app | ||||
| debug_init_break = tbreak setup | ||||
| 
 | ||||
| ; we need to turn off BLE/soft device if we are debugging otherwise it will watchdog reset us. | ||||
| debug_extra_cmds = | ||||
|   echo Running .gdbinit script | ||||
|   commands 1 | ||||
|   set useSoftDevice = false | ||||
|   end | ||||
		Ładowanie…
	
		Reference in New Issue
	
	 geeksville
						geeksville