OK, I need to use the RESET pin (PTA20) as a GPIO, so I saw I need to change the RESET_PIN_CFG field in the FTFA_FOPT.
For what I have read I need to configure the FLASH with these new parameters in the linker file (.icf).
My question is, how do I configure the linker file to set these fields so I can use the RESET pin as a GPIO?
--
I'm working with IAR 7.5, and apparently its necessary to enable writing on theses protected areas, as saw in Using IAR EWARM to program flash configuration field. This procedure is still correct?
--
Attached is my linker file.
Thanks in advance,
-------------
EDIT: OK, I've found this piece of assembly code in 'startup_MKW01Z4.s', which I believe its related:
But I'm kind of afraid to change to wrong values and mess up my board. Anyone could confirm this?
Thanks.
Solved! Go to Solution.
Well, now I found out. Following this post (https://community.nxp.com/message/945721 ) I could see the bits needed to disable the RESET function. Here's the change in 'startup_MKW01Z4.s':
And for IAR its necessary to enable writing on theses bits, using the flag --enable_config_write (Using IAR EWARM to program flash configuration field ).
Now it works fine.
Well, now I found out. Following this post (https://community.nxp.com/message/945721 ) I could see the bits needed to disable the RESET function. Here's the change in 'startup_MKW01Z4.s':
And for IAR its necessary to enable writing on theses bits, using the flag --enable_config_write (Using IAR EWARM to program flash configuration field ).
Now it works fine.