K82F FRDM PORTD gpio Configuration

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

K82F FRDM PORTD gpio Configuration

683 Views
vivek_kaushik
Contributor II

Hi 

I am configuring few pins as gpios for my K82F FRDM board.

I am able to successfully configure gpios and toggle them for PortA, PortB & PortC, but when I am trying to configure gpios of PortD I am getting error while executing, compilation is happening properly, no errors while compiling

I am getting error as below:

pastedImage_1.png

Kind Regards,

Vivek

Labels (1)
0 Kudos
3 Replies

602 Views
vivek_kaushik
Contributor II

Hi Mark,

Thanks for the input.

Can you please point me to file where this needs to be enabled.

Kind Regards

Vivek

0 Kudos

601 Views
vivek_kaushik
Contributor II

Hi Mark,

The issue is resolved, I have used below to enable portd clock:

CLOCK_EnableClock(kCLOCK_PortD);

Thanks! for your support.

Kind Regards

Vivek

0 Kudos

601 Views
mjbcswitzerland
Specialist V

Hi

Most probably you haven't enabled clocks to port D (see SIM_SCGC5)

Regards

Mark

Complete Kinetis solutions for professional needs, training and support: http://www.utasker.com/kinetis.html
Kinetis K82:
http://www.utasker.com/kinetis/FRDM-K82F.html

uTasker: supporting >1'000 registered Kinetis users get products faster and cheaper to market

Request Free emergency remote desk-top consulting at http://www.utasker.com/services.html

Open Source version at https://github.com/uTasker/uTasker-Kinetis