[MKW01] Reset Pin as GPIO

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

[MKW01] Reset Pin as GPIO

Jump to solution
1,346 Views
giancarlozanuz
Contributor III

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.

1.PNG

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:

3.PNG

But I'm kind of afraid to change to wrong values and mess up my board. Anyone could confirm this?

Thanks.

Labels (1)
Tags (2)
0 Kudos
Reply
1 Solution
936 Views
giancarlozanuz
Contributor III

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':

4.PNG

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.

View solution in original post

0 Kudos
Reply
1 Reply
937 Views
giancarlozanuz
Contributor III

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':

4.PNG

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.

0 Kudos
Reply