Hello.
I am pretty much stucked here. I want to disable the RESET_PIN on my MKL03Z as i want to use it as GPIO.
I do not have access to Processor Expert in my project, so i need to do this the "hard" way. In the documentation it is stated that i can disable it by setting RESET_PIN_CFG option bit to 0. But I can't figure out how to do this using the Kinetis SDK.
According to this document it is a part of the NV_FOPT field. But I can't find a way to configure this in the SDK.
https://community.nxp.com/servlet/JiveServlet/download/457218-1-283909/Reset_pin_redefinition.pdf
Please help me figure this out. I am a bit lost
Best regards.
Rene Jespersen
Hi Rene,
Below is my configuration to disable the RESET pin:
/* Flash Configuration */
.section .FlashConfig, "a"
.long 0xFFFFFFFF
.long 0xFFFFFFFF
.long 0xFFFFFFFF
.long 0xFFFF35FE /* //DES was 0xFFFF3DFE ...disable RESET pin */
Regards,
David
I have tried to edit the Flash Configuration in startup_MKL03Z4.s. The reset button still works. From section 6.3.2 FOPT boot options in the documentation the RESET_PIN_CFG is on bit number 3. As I can figure out it FOPT should be at 0x040D and if i set it to disable RESET_PIN_CFG and boot from flash i get 00110111 = 0x37 which i put on 0x040D as below. Now it works :smileyhappy:
/* Flash Configuration */
.section .FlashConfig, "a"
.long 0xFFFFFFFF
.long 0xFFFFFFFF
.long 0xFFFFFFFF
.long 0xFFFF37FE
.text
.thumb