Hi,
I'm working on the simple datalogger using KwikStik board and CodeWarrior. I'd like to write some data from ADC on my microSD card (.txt or .dat format). Is there any simple way to implement this without using any RTOS (the simplest continous datalogging using SDLH_LDD) on KwikStik? I've tried to import Elm-Chan's FATFs to my barebord project and modify diskio.c by putting functions generated from SDHC_LDD component in it to provide low-drive handling for higher file layer. I don't know if it's enough to run SD card or if there is any simpler solution. It seems that I can't even mount the logical drive. I've tried Erich Styger's components but all of them require other components, such as FreeRTOS and it's difficult to configure the whole project. Any sugestions would be very helpful for me.
Regards,
Marcin
Solved! Go to Solution.
Hi Marcin
The uTasker project is based on a co-operative scheduler that takes up about 2k of code size (which is a fraction of the size required by FAT, for example).
If the scheduler is removed, different code, like a main super-loop, needs to be added that will eventually take up similar code size but lose features and make the project much more difficult to coordinate. Therefore the OS is not a disadvantage but instead allows modularity and reliability to be easily achieved with virtually no extra code overhead in the overall project.
The uTasker project is a single application that will run on most KEA, KE, KL, KV and K boards. It includes projects for the following IDEs/Compilers
and full source code so that it can be simply modified to suit the application in question.
CodeWarrior users can follow the simple guide linked by Freescale's CodeWarrior 10.x or follow the video: uTasker for Kinetis using CodeWarrior - YouTube
Regards
Mark
Kinetis: µTasker Kinetis support
K40: µTasker Kinetis KWIKSTIK support / µTasker Kinetis TWR-K40X256 support / µTasker Kinetis TWR-K40D100M support
ADC/DAC: http://www.utasker.com/docs/uTasker/uTaskerADC.pdf
USB User's Guide: http://www.utasker.com/docs/uTasker/USB_User_Guide.PDF
utFAT2.0: http://www.utasker.com/docs/uTasker/uTasker_utFAT.PDF
For the complete "out-of-the-box" Kinetis experience and faster time to market
Hello Marcin
Beware that if you have a KWIKSTIK with board revision less that Rev. 5 the SD card cannot be used because it is incorrectly wired to the processor.
You need Rev. 5.
You can also look at µTasker Kinetis KWIKSTIK support
This contains ready to run SD card / FAT (utFAT2.0 which has more features that FATFS) as well as USB-MSD for data retrieval via USB. It has ADC support included which will save the ADC samples to the SD card as WAV format, or will generate a delay line to the DAC output. That is, it contains a complete data logging solution which has been proven in industrial projects.
http://www.utasker.com/docs/uTasker/uTaskerADC.pdf
Application note on DMA driven ADC and DAC, using PDB as timebase
It builds with CW 10.x and requires no porting since all components are fully integrated.
Regards
Mark
Kinetis: µTasker Kinetis support
K40: µTasker Kinetis KWIKSTIK support / µTasker Kinetis TWR-K40X256 support / µTasker Kinetis TWR-K40D100M support
ADC/DAC: http://www.utasker.com/docs/uTasker/uTaskerADC.pdf
USB User's Guide: http://www.utasker.com/docs/uTasker/USB_User_Guide.PDF
utFAT2.0: http://www.utasker.com/docs/uTasker/uTasker_utFAT.PDF
For the complete "out-of-the-box" Kinetis experience and faster time to market
Hi Mark,
thanks for your Interesting suggestions. But it seems to me that the whole uTasker project is based on the operation system and I'd like to avoid this because of code size limitation which I have to consider. Is it ready to upload fully-developed solution or is it possible to modify this as a CodeWarrior project. Sorry if those questions are infantile but I'm just a beginner.
Regards,
Marcin
Hi Marcin
The uTasker project is based on a co-operative scheduler that takes up about 2k of code size (which is a fraction of the size required by FAT, for example).
If the scheduler is removed, different code, like a main super-loop, needs to be added that will eventually take up similar code size but lose features and make the project much more difficult to coordinate. Therefore the OS is not a disadvantage but instead allows modularity and reliability to be easily achieved with virtually no extra code overhead in the overall project.
The uTasker project is a single application that will run on most KEA, KE, KL, KV and K boards. It includes projects for the following IDEs/Compilers
and full source code so that it can be simply modified to suit the application in question.
CodeWarrior users can follow the simple guide linked by Freescale's CodeWarrior 10.x or follow the video: uTasker for Kinetis using CodeWarrior - YouTube
Regards
Mark
Kinetis: µTasker Kinetis support
K40: µTasker Kinetis KWIKSTIK support / µTasker Kinetis TWR-K40X256 support / µTasker Kinetis TWR-K40D100M support
ADC/DAC: http://www.utasker.com/docs/uTasker/uTaskerADC.pdf
USB User's Guide: http://www.utasker.com/docs/uTasker/USB_User_Guide.PDF
utFAT2.0: http://www.utasker.com/docs/uTasker/uTasker_utFAT.PDF
For the complete "out-of-the-box" Kinetis experience and faster time to market