reset usb when init for max32650/66. change hil max32 to use pico (cmsis dap2), change metro m4 flasher
This commit is contained in:
@@ -94,6 +94,7 @@ void board_init(void) {
|
||||
}
|
||||
|
||||
MXC_SYS_ClockEnable(MXC_SYS_PERIPH_CLOCK_USB);
|
||||
MXC_SYS_Reset_Periph(MXC_SYS_RESET_USB);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
|
@@ -148,10 +148,10 @@ function(family_configure_example TARGET RTOS)
|
||||
|
||||
# Flashing
|
||||
family_flash_jlink(${TARGET})
|
||||
family_flash_openocd_adi(${TARGET})
|
||||
|
||||
# Add the optional MSDK OpenOCD flashing
|
||||
family_flash_msdk(${TARGET})
|
||||
family_flash_openocd_adi(${TARGET})
|
||||
endfunction()
|
||||
|
||||
function(family_flash_msdk TARGET)
|
||||
|
@@ -93,6 +93,7 @@ void board_init(void) {
|
||||
}
|
||||
|
||||
MXC_SYS_ClockEnable(MXC_SYS_PERIPH_CLOCK_USB);
|
||||
MXC_SYS_Reset_Periph(MXC_SYS_RESET_USB);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
|
Reference in New Issue
Block a user