how to add binary file (picture) to flash

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

how to add binary file (picture) to flash

694 Views
Harman
Contributor II

Hello,

I'm designing web server with Kinetis and I need to add small images to http response. Is it possible to include that files to flash at flashing image?

Thanks

Jan

Labels (1)
0 Kudos
2 Replies

516 Views
DavidS
NXP Employee
NXP Employee

Hi Jan,

Zhang has good information for you.

Inside KSDK_1.3 there are other options to investigate too but not well documented (yet).

Please review this post for one alternative:

FRDM-K64F Ethernet

And another alternative:

C:\Freescale\KSDK_1.3.0\tools\tfs_generator

This is a command line tool that will take one parameter as a path to a folder that contains your image files.  It will process then into a TFS (trivial filesystem) file that you can then include in your project.

Example:

Open Windows Command Prompt to C:\Freescale\KSDK_1.3.0\tools\tfs_generator

Create a new folder (ex: mkdir test).

Copy several image files into the folder test.

Now while in the C:\Freescale\KSDK_1.3.0\tools\tfs_generator folder, type "mktfs.exe test" .

This will create a file nio_tfs_data.c that has your image files in it to be used in your project.

Regards,

David

516 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi,

Freescale provides graphical user interface (GUI) solutions for embedded devices. Freescale’s PEG Pro, PEG Plus and PEG Lite product offering includes a GUI library for embedded development that works elegantly with real-time operating systems.

PEG Graphics Software|Freescale

the generation option can read out Binary File Format and generate the corresponding C/C++ code.

pastedImage_2.png

IDE can add the generated library to user project, burning flash , show the picture to screen.

does this answer your question?


Have a great day,
Zhang Jun

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------