SPMA080 April 2021 TM4C1292NCPDT , TM4C1292NCPDT , TM4C1292NCZAD , TM4C1292NCZAD , TM4C1294KCPDT , TM4C1294KCPDT , TM4C1294NCPDT , TM4C1294NCPDT , TM4C1294NCZAD , TM4C1294NCZAD , TM4C1299KCZAD , TM4C1299KCZAD , TM4C1299NCZAD , TM4C1299NCZAD , TM4C129DNCPDT , TM4C129DNCPDT , TM4C129DNCZAD , TM4C129DNCZAD , TM4C129EKCPDT , TM4C129EKCPDT , TM4C129ENCPDT , TM4C129ENCPDT , TM4C129ENCZAD , TM4C129ENCZAD , TM4C129LNCZAD , TM4C129LNCZAD , TM4C129XKCZAD , TM4C129XKCZAD , TM4C129XNCZAD , TM4C129XNCZAD
All the html pages for this example are stored in the “fs” directory of the project, see Figure 8-4. These html files form the web pages to be served by the web server.
Figure 8-4 File System Directory The html web pages must be first converted from their binary HTML files into data arrays declared in C. An MS-DOS utility “binsrc” is supplied in the NDK package to allow conversion of files to a C array. The binsrc utility can be found in <TI-RTOS Installation>\products\ndk_2_25_00_09\packages\ti\ndk\tools\binsrc\binsrc.exe.
The calling format for binsrc is:
>binsrc <input file name> <output file name> <identifier>
Parameters:
For example, to convert an HTML file index.html for use by EFS, the following command could be executed from the Windows command window:
>binsrc index.html index.h INDEX
The index.html after conversion to index.h would contain the following as shown in Figure 8-5.
Figure 8-5 Index.html Binary File
Content