MKE02Z64VLC2 gpio pin is always high

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

MKE02Z64VLC2 gpio pin is always high

ソリューションへジャンプ
743件の閲覧回数
gcastro
Contributor I

I am experiencing a weird problem with the MKE02Z64VLC2. The port pin PTB4 (pin 10 on the LQFP package) is always high, except after programming the device.

Even out of the package, without any firmware on it, as soon as the device is powered, the aforementioned pin is high (tested on 5 devices with and without firmware).

I mounted a fresh, un-programmed chip by itself (with only the clock circuit and decoupling caps) on an empty board, bent the pin upwards so i would not touch anything, and the pin was set to vcc.

No other gpio pins have the same behavior, i can program the device normally, and the device otherwise functions just fine, with i2c, TIM, gpios and other peripherals.

I tried to set the pin as an input, then later as output, tried disabling internal pull up (it wasn't set to high in the first place, but i tried anyways) and no go.

The only thing that seems to get the pin working normally as an gpio output is right after programming it. But on power cycle, it goes back to being set to high full time.

I would appreciate any insight with regards to this problem.

ラベル(1)
0 件の賞賛
返信
1 解決策
724件の閲覧回数
Omar_Anguiano
NXP TechSupport
NXP TechSupport

Hello gcastro

Thank you for your interest in NXP Semiconductor products and the opportunity to serve you. My name is Omar and I will gladly help you with this.

The default state of the PTB4 is in NMI. To change the state of this pin, first, you need to clear the NMIE field in the SIM_SOPT register.
This write-once field can be written after any reset. If this field is set an internal pullup device on NMI is enabled.

 

Let me know if this is helpful, if you have more questions do not hesitate to ask me.
Best regards,
Omar

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
725件の閲覧回数
Omar_Anguiano
NXP TechSupport
NXP TechSupport

Hello gcastro

Thank you for your interest in NXP Semiconductor products and the opportunity to serve you. My name is Omar and I will gladly help you with this.

The default state of the PTB4 is in NMI. To change the state of this pin, first, you need to clear the NMIE field in the SIM_SOPT register.
This write-once field can be written after any reset. If this field is set an internal pullup device on NMI is enabled.

 

Let me know if this is helpful, if you have more questions do not hesitate to ask me.
Best regards,
Omar

0 件の賞賛
返信
714件の閲覧回数
gcastro
Contributor I

Thanks, changing the NMI pin function seemed to solve the issue. I misinterpreted the reference manual and thought that the pin had to be specifically set to be NMI, and i was thinking it was some weird pull-up issue.

 

Thanks for the help

0 件の賞賛
返信