Hi guys, im starting a project with a MKL25Z128VLK board, and i want to be able to implement a onboard file system.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Hi guys, im starting a project with a MKL25Z128VLK board, and i want to be able to implement a onboard file system.

Jump to solution
1,234 Views
michaelanderson
Contributor I

My goal is to have  LCD screen hooked up that can display a text message across itself on a loop. I want the device to be able to be standalone off a coin battery while being possible to have up to 3 text files stored in the onboard flash i can swap out from a usb connection. Is this possible to do or should i just use the file system template and hook up a SD card port?

I have a general design schematic of HW and SW i will attach.

Labels (2)
Tags (1)
0 Kudos
Reply
1 Solution
1,053 Views
mjbcswitzerland
Specialist V

Michael

You haven't specified whether your LCD is a character LCD or a graphical LCD.

Take a look at:

http://www.utasker.com/kinetis/FRDM-KL25Z.html#LCD

You can complete your project within a couple of hours in the uTasker framework since it supplies graphical LCD and character LCD for the KL25 which can also be developed and simulated in real-time in VisualStudio (and then cross compiled with almost any compiler/IDE - such as KDS).

Enable graphical or character LCD and follow the user's guide: http://www.utasker.com/docs/uTasker/uTaskerLCD.PDF

Also the graphical LCD can be used in character mode if required (to make it look and behave like a character LCD)

For button control activate keyboard support (either single button or matrix) and follow the user's guide: http://www.utasker.com/docs/uTasker/uTaskerKeypad.PDF

Enable low power mode support for dynamic control between different modes to optimise power consumption and achieve lowest power in low leakage modes: see low leakage wakeup for more details: http://www.utasker.com/kinetis/LLWU.html

An SD card seems overkill for just a few lines of text but you look to definitely require USB-MSD. You can activate USB-MSD with either an SD card or in an area of internal Flash (internal flash drive also shown at the same link as above) - see http://www.utasker.com/docs/uTasker/uTasker_utFAT.PDF At the same time you can use the USB as a debug interface or as USB to UART bridge - just configure as composite according to http://www.utasker.com/kinetis/USB_Device.html

The complete project can be developed and tested in the Kinetis simulator (which also simulates SD card or internal flash, the buttons and LCD). All tools and SW are free for educational work and supported in this forum.

Regards

Mark

Kinetis: µTasker Kinetis support

KL25: µTasker Kinetis FRDM-KL25Z support / µTasker Kinetis TWR-KL25Z48M support

For the complete "out-of-the-box" Kinetis experience and faster time to market

View solution in original post

3 Replies
1,054 Views
mjbcswitzerland
Specialist V

Michael

You haven't specified whether your LCD is a character LCD or a graphical LCD.

Take a look at:

http://www.utasker.com/kinetis/FRDM-KL25Z.html#LCD

You can complete your project within a couple of hours in the uTasker framework since it supplies graphical LCD and character LCD for the KL25 which can also be developed and simulated in real-time in VisualStudio (and then cross compiled with almost any compiler/IDE - such as KDS).

Enable graphical or character LCD and follow the user's guide: http://www.utasker.com/docs/uTasker/uTaskerLCD.PDF

Also the graphical LCD can be used in character mode if required (to make it look and behave like a character LCD)

For button control activate keyboard support (either single button or matrix) and follow the user's guide: http://www.utasker.com/docs/uTasker/uTaskerKeypad.PDF

Enable low power mode support for dynamic control between different modes to optimise power consumption and achieve lowest power in low leakage modes: see low leakage wakeup for more details: http://www.utasker.com/kinetis/LLWU.html

An SD card seems overkill for just a few lines of text but you look to definitely require USB-MSD. You can activate USB-MSD with either an SD card or in an area of internal Flash (internal flash drive also shown at the same link as above) - see http://www.utasker.com/docs/uTasker/uTasker_utFAT.PDF At the same time you can use the USB as a debug interface or as USB to UART bridge - just configure as composite according to http://www.utasker.com/kinetis/USB_Device.html

The complete project can be developed and tested in the Kinetis simulator (which also simulates SD card or internal flash, the buttons and LCD). All tools and SW are free for educational work and supported in this forum.

Regards

Mark

Kinetis: µTasker Kinetis support

KL25: µTasker Kinetis FRDM-KL25Z support / µTasker Kinetis TWR-KL25Z48M support

For the complete "out-of-the-box" Kinetis experience and faster time to market

1,053 Views
michaelanderson
Contributor I

Mark,

I am trying to use the software components in Uvision for my MKL25Z board. Going off of your suggestions I want to select

Devices:

     USB:MSC (1 device)

Filesystem:

     NAND

CMSIS Driver

     NAND(API)

Is there any other components i should need to get a USB device storage to work on my internal flash?

Also any ideas about the "additional software required" warning below in the attached image, as far as i can see on the pack installer for my board i have everything up to date and installed.

Projectstartup.png

0 Kudos
Reply
1,053 Views
mjbcswitzerland
Specialist V

Michael

I don't think that you can use NAND flash because that is not the Flash that the K25 has internally (it is probably used with big Kinetis parts with NAND Flash controllers built in).

In order to use the Keil USB parts you will need to buy the MDK Pro extension - I think it costs around $9'000.

If you need to use Keil middle-ware software you may be able to get a student discount.

However I didn't recommend Keil since the uTasker project contains more than Keil offers for your requirements and is also free.

Regards

Mark

Kinetis: µTasker Kinetis support

KL25: µTasker Kinetis FRDM-KL25Z support / µTasker Kinetis TWR-KL25Z48M support

For the complete "out-of-the-box" Kinetis experience and faster time to market


0 Kudos
Reply