Студопедия

КАТЕГОРИИ:

АстрономияБиологияГеографияДругие языкиДругоеИнформатикаИсторияКультураЛитератураЛогикаМатематикаМедицинаМеханикаОбразованиеОхрана трудаПедагогикаПолитикаПравоПсихологияРиторикаСоциологияСпортСтроительствоТехнологияФизикаФилософияФинансыХимияЧерчениеЭкологияЭкономикаЭлектроника


Using RAM Devices




Using RAM Devices explains how to create applications for RAM Flash devices.

Include into the project and configure the following source files:

  1. The library that matches the device core:
    FS_CM3.lib for Cortex-M devices.
    FS_ARM_L.lib for ARM7 or ARM9 devices.
  2. The configuration files:
    File_Config.c for configuring the device.
    Retarget.c for configuring the output.
  3. The main file for initializing and connecting the Flash device.

4. #include <RTL.h>

5.

6. int main (void) {

7. ...

8. finit (NULL); // initialize the device

9. fformat (""); // format the Flash File System

10.

11. while (1) {

12. ... // add the code

13. }

14. }

Applications can be created using existing µVision projects as templates.

  1. Copy all files from any folder \ARM\RL\FlashFS\Examples\File_ex1 to a new folder and open the project *.uvproj with µVision.
  2. Open the file File_Config.c and configure the RAM device using the Configuration Wizard.
  3. Enable RAM Drive and set the device characteristics.

  1. Modify the code to the application needs.

Note

  • Configuration options are explained in RAM Drive.
  • Additional program examples for RAM devices are located in the folder \ARM\Boards\vendor\board\RL\TCPnet\TFTP_demo.

Поделиться:

Дата добавления: 2015-09-15; просмотров: 61; Мы поможем в написании вашей работы!; Нарушение авторских прав





lektsii.com - Лекции.Ком - 2014-2024 год. (0.006 сек.) Все материалы представленные на сайте исключительно с целью ознакомления читателями и не преследуют коммерческих целей или нарушение авторских прав
Главная страница Случайная страница Контакты