mirror of
https://github.com/IcedRooibos/py32f0-template.git
synced 2025-10-28 16:32:05 -07:00
fix: suppress firmware update dialog
This commit is contained in:
parent
a8e40581ac
commit
98ead6d41a
14
Misc/jlink-script
Normal file
14
Misc/jlink-script
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
int InitEMU(void) {
|
||||||
|
JLINK_SYS_Report("--InitEMU()--");
|
||||||
|
// Silence confirm updating firmware dialog boxes that appear when uploading
|
||||||
|
JLINK_ExecCommand("SuppressInfoUpdateFW");
|
||||||
|
JLINK_ExecCommand("DisableAutoUpdateFW");
|
||||||
|
// Uncomment to hide flash windows
|
||||||
|
//JLINK_ExecCommand("DisableInfoWinFlashDL");
|
||||||
|
//JLINK_ExecCommand("DisableInfoWinFlashBPs");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
int ConfigTargetSettings(void) {
|
||||||
|
JLINK_SYS_Report("--ConfigTargetSettings()--");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
2
rules.mk
2
rules.mk
@ -107,7 +107,7 @@ clean:
|
|||||||
|
|
||||||
flash:
|
flash:
|
||||||
ifeq ($(FLASH_PROGRM),jlink)
|
ifeq ($(FLASH_PROGRM),jlink)
|
||||||
$(JLINKEXE) -device $(JLINK_DEVICE) -if swd -speed 4000 -CommanderScript $(TOP)/Misc/flash.jlink
|
$(JLINKEXE) -device $(JLINK_DEVICE) -if swd -speed 4000 -JLinkScriptFile $(TOP)/Misc/jlink-script -CommanderScript $(TOP)/Misc/jlink-command
|
||||||
else ifeq ($(FLASH_PROGRM),pyocd)
|
else ifeq ($(FLASH_PROGRM),pyocd)
|
||||||
$(PYOCD_EXE) erase -t $(PYOCD_DEVICE) --chip --config $(TOP)/Misc/pyocd.yaml
|
$(PYOCD_EXE) erase -t $(PYOCD_DEVICE) --chip --config $(TOP)/Misc/pyocd.yaml
|
||||||
$(PYOCD_EXE) load $(BDIR)/$(PROJECT).hex -t $(PYOCD_DEVICE) --config $(TOP)/Misc/pyocd.yaml
|
$(PYOCD_EXE) load $(BDIR)/$(PROJECT).hex -t $(PYOCD_DEVICE) --config $(TOP)/Misc/pyocd.yaml
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user