|
|||||||||||
Technical Support On-Line Manuals RL-ARM User's Guide (MDK v4) RL-RTX RL-FlashFS Technical Data NAND Flash Translation Layer Embedded File System Memory Organization Allocation Information File Data Fragments Limitations Configuring RL-FlashFS Source Files Configuration Options File System Flash Drive SPI Flash Drive RAM Drive Memory Card Drive USB Flash Drive NAND Flash Drive Using RL-FlashFS Using Flash Devices Flash Driver Sector Layout Converting FlashPrg.c Converting FlashDev.c Limitations When Using Internal Flash Using SPI Flash Devices SPI Flash Driver SPI Sector Layout Using RAM Devices Using Memory Card Devices MCI Driver SPI Driver Using FlashFS with USB Devices FAT Driver Using NAND Devices NAND Driver NAND Page Data Layout Function Overview File I/O Routines File Maintenance Routines File Time Support Routines Flash Driver Routines FAT Driver Routines MCI Driver Routines SPI Driver Routines NAND Driver Routines IOC Interface Routines System Routines RL-TCPnet RL-CAN RL-USB Example Programs Library Reference Appendix |
Sector LayoutThe Sector Layout description file, FS_FlashDev.h, specifies the memory map of the device. Every device has its own description file located in the folder \ARM\RL\FlashFS\Flash\device_family. To generate a new description file, copy the flash sector layout information from the Flash device datasheet. Specify a sector size in bytes and a sector base address relative to a Flash device start address. The macro DFB converts this information into RL-FlashFS compatible sector descriptions.
The following example shows a Flash sector layout description for the Am29x800BT Flash device: #define FLASH_DEVICE \ DFB(0x10000, 0x000000), /* Sector Size 64kB */ \ DFB(0x10000, 0x010000), /* Sector Size 64kB */ \ DFB(0x10000, 0x020000), /* Sector Size 64kB */ \ DFB(0x10000, 0x030000), /* Sector Size 64kB */ \ DFB(0x10000, 0x040000), /* Sector Size 64kB */ \ DFB(0x10000, 0x050000), /* Sector Size 64kB */ \ DFB(0x10000, 0x060000), /* Sector Size 64kB */ \ DFB(0x10000, 0x070000), /* Sector Size 64kB */ \ DFB(0x10000, 0x080000), /* Sector Size 64kB */ \ DFB(0x10000, 0x090000), /* Sector Size 64kB */ \ DFB(0x10000, 0x0A0000), /* Sector Size 64kB */ \ DFB(0x10000, 0x0B0000), /* Sector Size 64kB */ \ DFB(0x10000, 0x0C0000), /* Sector Size 64kB */ \ DFB(0x10000, 0x0D0000), /* Sector Size 64kB */ \ DFB(0x04000, 0x0E0000), /* Sector Size 16kB */ \ DFB(0x08000, 0x0E4000), /* Sector Size 32kB */ \ DFB(0x02000, 0x0EC000), /* Sector Size 8kB */ \ DFB(0x02000, 0x0EE000), /* Sector Size 8kB */ \ DFB(0x02000, 0x0F0000), /* Sector Size 8kB */ \ DFB(0x02000, 0x0E2000), /* Sector Size 8kB */ \ DFB(0x08000, 0x0F4000), /* Sector Size 32kB */ \ DFB(0x04000, 0x0FC000), /* Sector Size 16kB */ \ #define FL_NSECT 22 Note
| ||||||||||
|
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.