I have a custom board where I need both NMI and reset pin.
I use KDS 3.0.0 and I am not using processorexpert. Debugger is Jlink. Everything else is working fine as long as these pins stays inactive.
I tried the following code in an header file:
|typedef struct stKINETIS_FLASH_CONFIGURATION||// loaded from FLASH 0x00000400 at reset|
unsigned char ucBackdoorComparisonKey;
unsigned char ucProgramFlashProtection;
unsigned char reserved1;
unsigned char reserved2;
unsigned char ucNonvolatileOption;
unsigned char ucDataFlashSecurity;
const KINETIS_FLASH_CONFIGURATION __attribute__((section(".f_config"))) __flash_config
|0b11110011, //disable nmi and reset|
This does not seem to have any effect, reading memory location 0x040D gives 0xFF and pins are still active.
Is there something that owerrides this or what have I missed?