fsl_gpio Best Practice?

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

fsl_gpio Best Practice?

ソリューションへジャンプ
1,499件の閲覧回数
audi_mcavoy
Contributor IV

Using PE, it seems I should add one copy of fsl_gpio for each port I want to use.  In fact, the tabs view of the Component Inspector has a drop-down list where I can pick a port.

 

22275_22275.pngfsl_gpio.png

But, it doesn't seem to work this way.  Adding a second fsl_gpio component causes errors (which seems to be directly related to the Device selection).

 

Turning off the tabs view doesn't help -- it just hides the Device option.

 

So for right now, I have all of my GPIO configured in one instance of fsl_gpio.  It can be a little awkward, the pins are scattered around multiple ports.  Some of the pins are accessed individually.  Some are accessed in groups.

 

Is this the best approach?  Is there a better way?

 

How are you handling your GPIO?

ラベル(1)
タグ(2)
0 件の賞賛
返信
1 解決策
1,122件の閲覧回数
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello Audi McAvoy:

Short answer: You only need one fsl_gpio component.

The drop down list should not be there, this will be fixed, we are sorry about this. For a detailed discussion check the next thread:

Re: GPIO in PEx is so bizarre...

And also a very short video I posted:

Video Link : 3195


Regards!,
Jorge Gonzalez

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
1,122件の閲覧回数
DavidS
NXP Employee
NXP Employee

I think the pull down shouldn't be there and as you have found it doesn't affect the code.

Will check to see if fixed for next revision.

Regards,

David

Sent from my iPhone

1,123件の閲覧回数
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello Audi McAvoy:

Short answer: You only need one fsl_gpio component.

The drop down list should not be there, this will be fixed, we are sorry about this. For a detailed discussion check the next thread:

Re: GPIO in PEx is so bizarre...

And also a very short video I posted:

Video Link : 3195


Regards!,
Jorge Gonzalez

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信
1,122件の閲覧回数
audi_mcavoy
Contributor IV

First, excellent video.  Thank you!

Second, my real problem is two-fold.  I didn't know there was a Processor Expert "space" in the community because, (on the welcome page) I never looked past the big shiny buttons on the "Community Spaces" section to notice there even was a "More Spaces" section!  So I was always looking in the Kinetis Microcontrollers space for answers.

Also, once inside the Kinetis Microcontrollers space I always searched in the big "Ask Kinetis Microcontrollers" box (where it says "type your question").  Not the tiny search bubble near the upper right.  If I type "fsl_gpio" in the big box, I get no results(!).  If I use the tiny bubble, I get multiple hits.

Lesson learned.  Don't even select a space from the home page.  Just use the tiny search bubble.

Thanks!

0 件の賞賛
返信