2021-12-09 10:48:50 +01:00
|
|
|
/*********************************************************************
|
|
|
|
* SEGGER Microcontroller GmbH *
|
|
|
|
* Solutions for real time microcontroller applications *
|
|
|
|
**********************************************************************
|
|
|
|
* *
|
|
|
|
* (c) 1995 - 2018 SEGGER Microcontroller GmbH *
|
|
|
|
* *
|
|
|
|
* www.segger.com Support: support@segger.com *
|
|
|
|
* *
|
|
|
|
**********************************************************************
|
|
|
|
----------------------------------------------------------------------
|
|
|
|
File : JLinkSettings.JLinkScript
|
|
|
|
Purpose : J-Link target setup file for VORAGO VA416xx
|
|
|
|
---------------------------END-OF-HEADER------------------------------
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*********************************************************************
|
|
|
|
*
|
|
|
|
* AfterResetTarget
|
|
|
|
*/
|
|
|
|
int AfterResetTarget (void) {
|
|
|
|
JLINK_SYS_Report("AfterResetTarget()");
|
2024-06-11 23:26:32 +02:00
|
|
|
return JLINK_MEM_WriteU32(0x40010010, 0x1); // ROM_PROT = 0x1
|
2021-12-09 10:48:50 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/*********************************************************************
|
|
|
|
*
|
|
|
|
* BeforeTargetDownload
|
|
|
|
*/
|
|
|
|
int BeforeTargetDownload (void) {
|
|
|
|
JLINK_SYS_Report("BeforeTargetDownload()");
|
2024-06-11 23:26:32 +02:00
|
|
|
return JLINK_MEM_WriteU32(0x40010010, 0x1); // ROM_PROT = 0x1
|
2021-12-09 10:48:50 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/*********************************************************************
|
|
|
|
*
|
|
|
|
* AfterTargetDownload
|
|
|
|
*/
|
|
|
|
int AfterTargetDownload (void) {
|
|
|
|
JLINK_SYS_Report("AfterTargetDownload()");
|
2024-06-11 23:26:32 +02:00
|
|
|
return JLINK_MEM_WriteU32(0x40010010, 0x0); // ROM_PROT = 0x0
|
2021-12-09 10:48:50 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/*********************************************************************
|
|
|
|
*
|
|
|
|
* HandleBeforeFlashProg
|
|
|
|
*/
|
|
|
|
int HandleBeforeFlashProg(void) {
|
|
|
|
JLINK_SYS_Report("HandleBeforeFlashProg()");
|
2024-06-11 23:26:32 +02:00
|
|
|
return JLINK_MEM_WriteU32(0x40010010, 0x1); // ROM_PROT = 0x1
|
2021-12-09 10:48:50 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/*********************************************************************
|
|
|
|
*
|
|
|
|
* HandleAfterFlashProg
|
|
|
|
*/
|
|
|
|
int HandleAfterFlashProg(void) {
|
|
|
|
JLINK_SYS_Report("HandleAfterFlashProg()");
|
2024-06-11 23:26:32 +02:00
|
|
|
return JLINK_MEM_WriteU32(0x40010010, 0x0); // ROM_PROT = 0x0
|
2024-06-11 20:24:24 +02:00
|
|
|
}
|