Solved: K22 GPIOs not reflecting internal registers

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

Solved: K22 GPIOs not reflecting internal registers

720件の閲覧回数
khlo
Contributor I

Solved:
Pin Control Register (PORTx_PCRn) was not set correctly and pins ended up disabled.

---
Hi there.

I have developed code for a project using the Freedom K22 eval board for testing.
As the production HW is using the K22F128xxx10 MCU (as opposed to the K22F512xxx12 on the FRDM) I changed the clock-setup and -init to FLL and got the production HW up and running.

But... the GPIOs does not work (and probably neither do other peripherals but I'm not that far yet).
Debugging a simple main-loop setting and resetting a port pin sets the direction- and output-registers (PDOR & PDDR) correctly but the state is not reflected on the pin. Tried several ports and pins but same result.


I have checked and double checked the pinmux and setup.

What am I missing?

BR
Kim

ラベル(1)
0 件の賞賛
返信
0 返答(返信)