The tutorial shows how to toggle LED with KSDK 1.1.0 in KDS 2.0 and Processor Expert using a Timer Output for FRDM-KL03Z.
Guide is prepared for red LED which is connected to Timer/PWM Module 0 (TPM0), channel 1.
Create new project
Create new project in KDS 2.0 with KSDK 1.1.0
Type the project name, choose board. e.g. FRDM-KL03Z, mark off options Kinetis SDK and Processor Expert
Now, the structure looks like this:
Set Processor Expert Settings
Now, go to Components Library, find fsl_tpm component and by double click add the component to Component View.
Rename the component tpmTmr:fsl_tpm to e.g. RedLed.
Double click on RedLed:fsl_tpm in Components View and see Component Inspector
Follow these steps:
Set frequency and duty cycle.
Debug configuration
DONE!
I try to repeat the project building for FRDM-K64Z and adding fsl_tpm component is rejected with error.
Could it be that this component is not supported by this device ?
Hello shaul dorf:
As explained by the errors the K64 does not have TPM module. Instead it has the FTM (FlexTimer), which is similar but with more advanced features. You can use it with fsl_ftm component.
The disadvantage is that none of the FTM channel output pins are connected to the RGB LEDs in the FRDM-K64F, so you cannot replicate the example of this post. Instead you can use a timer an toggle LED from the interrupt routine.
This video could also be useful:
Regards!
Jorge Gonzalez
Hello Jorge thanks,
Your video is exceled, and I used it :smileyhappy:
My intention was to use another component.
So I conclude that the only way to know which component are supported
for specific board is by error report am I right?
Shaul
Hi Shaul:
No, actually you should have the components filter activated for "Applicable to project", see the picture:
This way only the supported components are available.
Regards!
Jorge Gonzalez