Hello,
as the topic.
I dont want to use the SDK library (files are so big - to big for my ke04z board) so I looking for some simple example (with interrupt and without) .
Regards and have a nice weekend!
Thank you very much!
Hi Tomasz
I have attached a binary for the FRDM-KE04Z board which includes operating system, UART, FlexTimer PWM operation and FlexTimer interrupt operation, plus memory usage monitoring (on the UART output).
The Flex Timer interface (and thus examples that you search) are described in the HW timer document (below) and included in the uTasker project.
This is 6.69k code which operates in the 1k RAM but the resources can be fine tuned in the configuration and so allow comfortable operation in a low resource environment or to serve as reference for locating the driver code in a more simplified environment.
The memory usage monitoring is especially important in such small devices to ensure reliable operation as features are added and resource utilisation tuned.
Code is available in the uTasker project and also is interesting due to the fact that it allows simulation of the chip and scaleability of the solution - for example, one can develop a project for the KE04 but move to say a KL25 due to the need to add USB - and the same code will operate there too - or even run the same code on a K70 (saving the cost of managing different projects for different processors and needing to redevelop parts due to different libraries needing to be used).
This is the output when the code is run (terminal on OpenSDA VCO at 115'200 Baud). Hit enter key to get each update of RAM use.
Regards
Mark
Kinetis: http://www.utasker.com/kinetis.html
Kinetis KE:
- http://www.utasker.com/kinetis/FRDM-KE02Z.html
- http://www.utasker.com/kinetis/FRDM-KE02Z40M.html
- http://www.utasker.com/kinetis/FRDM-KE04Z.html
- http://www.utasker.com/kinetis/FRDM-KE06Z.html
- http://www.utasker.com/kinetis/FRDM-KE15Z.html
HW Timers: http://www.utasker.com/docs/uTasker/uTaskerHWTimers.PDF
Free Open Source solution: https://github.com/uTasker/uTasker-Kinetis
Working project in 15 minutes video: https://youtu.be/K8ScSgpgQ6M
For better, faster, cheaper product developments consider the uTasker developer's version, professional Kinetis support, one-on-one training and complete fast-track project solutions to set you apart from the herd : http://www.utasker.com/support.html
Hello!
Could You tell me how start it by using MCUXpresso?
I would be grateful!
Hi Tomasz
There is a MCUXpresso guide at http://www.utasker.com/kinetis/compilers.html#MCUXpresso
Regards
Mark