[MKW01] Reset Pin as GPIO

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

[MKW01] Reset Pin as GPIO

跳至解决方案
1,217 次查看
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.

标签 (1)
标记 (2)
0 项奖励
回复
1 解答
807 次查看
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 项奖励
回复
1 回复
808 次查看
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 项奖励
回复