Hallo
I am working with S32K14x micro controlles.
I want to enable or disable the JTAG interface. So, want to manipulate the Flash section in start up file.
Is it possible to manipulate the start-up file based on the build configuration?
/* Flash Configuration */
.section .FlashConfig, "a"
.long 0x01234567 /* 8 bytes backdoor comparison key */
.long 0x89ABCDEF /* */
.long 0xFFFFFFFF /* 4 bytes program flash protection bytes */
//Only applicable for DEBUG configuration
#ifndef RELEASE_CONFIG
/* Flash Configuration */
.long 0xFFFF7FBF /* FDPROT:FEPROT:FOPT:FSEC(0xBF = backdoor active, MCU secured) */
#else //For DEBUG configuration
.long 0xFFFF7FFE /* FDPROT:FEPROT:FOPT:FSEC(0xFE = unsecured) */
#endif
Best Regards,
Saidhi reddy Sareddy