Missing GPIO options in PE for Kinetis L

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

Missing GPIO options in PE for Kinetis L

1,837 Views
admin
Specialist II

Hello,

I'm setting up a project for the Kinetis KL25 (currently on the FRDM-KL25Z board, but afterwards on a custom board), I recently upgraded PE to 10.2, and it looks as if the GPIO initialization is missing a lot of options: drive strength and pulldown resistor selection (up/down) in particular. They were all there before. Does anybody know how can I get them back?

Thanks,

Eyal Doron

Tags (1)
0 Kudos
Reply
6 Replies

1,520 Views
BlackNight
NXP Employee
NXP Employee

Hi Eyal,

these options are in the Init_GPIO component.

See chapter "Init GPIO" here:

http://mcuoneclipse.com/2012/11/12/tutorial-bits-and-pins-with-kinetis/

Best regards,

Erich

0 Kudos
Reply

1,520 Views
admin
Specialist II

Hello Erich,

Thank you for your quick answer. However, I'm already using the Init_GPIO component. In this project, for some reason, it does not display these options. Instead, I get this:

If I start a totally new project, its different. Is it possible something in the definitions is mixed up?

Thanks,

Eyal

0 Kudos
Reply

1,520 Views
BlackNight
NXP Employee
NXP Employee

Hi Eyal,

not sure what you mean with 'different'?

But what i see is that the options depend on the device (port used), as not every feature is implemented for every pin group.

E.g. for PortB on the KL25Z I have this:

Erich

0 Kudos
Reply

1,520 Views
admin
Specialist II

Hi Erich,

You are right in general, and indeed I see that e.g. Port D has settings for interrupts, while Port C does not since it does not support interrupts. However, the component does not display properties which do exist. As an example, see the screenshot below for an older project, developed for the same board:

As you can see, I have options for pull resistor selection (up/down), drive strength, slew rate and filter, which I don't have for the same port and device in the other project.

Thanks,

Eyal

0 Kudos
Reply

1,520 Views
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello Eyal:

I'm seeing the same as Erich.

But you are right according to your last image. What PE version is that?. Is it in CodeWarrior or the Standalone Driver Suite? I'm guessing that older version was mistaken, maybe.

If you check reference manual, specifically for PTB0, it counts with Drive Strength control and Pull Enable control, but not with Pull Select/Slew Rate/Passive Filter/Open Drain.

GPIO.png

That is why you cannot see those options in your current PE version.

Hope this helps!

Jorge Gonzalez

0 Kudos
Reply

1,520 Views
eyaldoron
Contributor II

Hello Jorge and Erich,

I finally figured out what happened, thanks guys.

You are right about the available options in the reference manual, I didn't notice that. My screenshots were from the integrated CW 10.4. I briefly used the new CW 10.5, and then went back to version 10.4 because of stability issues with 10.5 . Apparently, the workspace somehow remembered the 10.5 version even when I was using version 10.4, and gave me the new (and apparently correct) PE options. When I erased the workspace and created a new one, with a new project, I got back the old (and apparently incorrect) options.

Thanks,

Eyal Doron

0 Kudos
Reply