Thanks, David for your efforts to put something together. I was doing the same thing in parallel, hoping that in the end the code would be portable over to my MQX project. I've got a lot of things in my head right now that I'm going to try to express in the post. Hopefully, you'll be able to bring me some clarity. :smileyhappy:
In my current test project, I'm not using PWM_LDD since it's not readily available; I am using fsl_ftm instead. This brings up a question / concern / complaint I have about the current state of development using KDS in general, and hopefully you can point me in the right direction. In the Freescale development ecosystem, it looks like we have several software packages to work with. At least in my case, the ones of interest include:
From experimentation and reading the forums, it sure seems like there are combinations of components that do not work together, or might be expected to work together. It's all very fuzzy to me, and I'd love to see a definitive answer as to what a Freescale developer should be able to expect as far as integration goes. The fact that some PEx components disappear depending upon the project configuration implies to me that there are some combinations that are not allowed or expected to work together. Is there a matrix around that shows which combinations work together, and for a given combination, which peripherals actually work?
Since PWM_LDD wasn't an option, I did move forward with fsl_ftm. I would port this code over to my MQX-enabled project (that does *not* use PEx), but I recently learned that there is a bug in the KSDK that prevents multiple PWM channels on the same FlexTimer from working simultaneously. I have also found that I cannot specify a different pin for a FTM PWM channel, which complicates things for me when I don't have the flexibility to use the pre-defined pin in the Component Inspector. I was going to work around this bug by using a PWM channel on a different FTM since I'm using a K64 which has 4 FTMs.
And a last random question -- what does the FSL in "fsl_" components represent? I was thinking that it stood for something that I could then remember to clue me in on where those components are applicable/compatible, but I have a feeling it just stands for Freescale. :smileyhappy:
Thanks, David!