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
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
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
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
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.
That is why you cannot see those options in your current PE version.
Hope this helps!
Jorge Gonzalez
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