[MKW01] Reset Pin as GPIO

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

[MKW01] Reset Pin as GPIO

ソリューションへジャンプ
1,167件の閲覧回数
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 解決策
757件の閲覧回数
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 返信
758件の閲覧回数
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 件の賞賛