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.