Download Firmware development kit User manual
Transcript
Triskan TS8 Firmware Development Kit User Manual 8. Developing Applications This section refers to system interfaces and API required to develop a user application for Triskan TS8 mobile data terminal. The following table contains a list of related files and directories on the provided DVD. Name Description doc/ Contains development kit documentation – libspatha-doc.tar.gz Package containing documentation for libspatha library – libexynthoo-doc.tar.gz Package containing documentation for eXynth Objects library In order to simplify the application development process, Artec provides a hardware support library called libspatha. The library documentation is available separately, located on the FDK DVD and packaged in libspatha-doc.tar.gz. Libspatha library encapsulates a number of C++ classes that support most of the hardware interfaces available to Triskan TS8 applications. The library source code is provided under the LGPL license and is located under applications/libspatha/ within the main firmware build tree. 8.1. Storage Media 8.1.1. NOR Flash Nor flash is available as MTD device. Use mtdparts command line option to specify partition start addresses and lengths. The flash can be accessed via /dev/mtdX as character device or via /dev/mtdblockX as a block device via mtdblock flash to block device wrapper (where X is partitions number). Refer to the Flash Memory Layout section for more information on available flash partitions. Usage of a regular readwrite filesystem on mtdblock device is discouraged as it will wear out the flash very fast with unoptimized access patterns. For NOR flashes, there are no bad blocks on new flash chips and the flash blocks will last for a number of writes. For a rarely written partition (i. e. bootloader, kernel), the data can reside on the partition itself and no bad block handling is needed. Usage: For raw flash access without bad block handling use /dev/mtdX interfaces. The utility flash_erase or flash_eraseall has to be used to erase the corresponding flash area before writing to it. Flash area can be read and written like a regular character device (i. e. with dd utility). © Artec Group, 2010 Teaduspargi 6/2, 12618, Tallinn, Estonia Phone: +372 671 8550 Fax: +372 671 8555 Page 35 of 47