MCUXpresso SDK Documentation

fatfs_ramdisk_freertos

fatfs_ramdisk_freertos#

Overview#

The fatfs_ramdisk_freertos project is showing creation and usage of RAM allocated filesystem in multitasking environment.

Running the demo#

After the board is flashed the Tera Term will print message on terminal.

Example output:

FatFs RAM disk FreeRTOS example.

READ_TASK created.
READ_TASK: Create an FAT volume on the RAM disk.
READ_TASK: Creating text file.
READ_TASK: File created.
READ_TASK: WRITE_TASK 0 created.
READ_TASK: WRITE_TASK 1 created.
READ_TASK: WRITE_TASK 2 created.
READ_TASK: Opening file for read.
READ_TASK: File opened.

READ_TASK: Closing file.

WRITE_TASK: 0: Opening for write.
WRITE_TASK: 0: File opened.
WRITE_TASK 0: Writing to text file.
AAAAA
WRITE_TASK 0: Writing finished.
WRITE_TASK 0: Closing file.

WRITE_TASK: 1: Opening for write.
WRITE_TASK: 1: File opened.
WRITE_TASK 1: Writing to text file.
BBBBB
WRITE_TASK 1: Writing finished.
WRITE_TASK 1: Closing file.

WRITE_TASK: 2: Opening for write.
WRITE_TASK: 2: File opened.
WRITE_TASK 2: Writing to text file.
CCCCC
WRITE_TASK 2: Writing finished.
WRITE_TASK 2: Closing file.

READ_TASK: Opening file for read.
READ_TASK: File opened.
AAAAABBBBBCCCCC
READ_TASK: Closing file.

WRITE_TASK: 0: Opening for write.
WRITE_TASK: 0: File opened.
WRITE_TASK 0: Writing to text file.
AAAAA
WRITE_TASK 0: Writing finished.
WRITE_TASK 0: Closing file.

WRITE_TASK: 1: Opening for write.
WRITE_TASK: 1: File opened.
WRITE_TASK 1: Writing to text file.
BBBBB
WRITE_TASK 1: Writing finished.
WRITE_TASK 1: Closing file.

WRITE_TASK: 2: Opening for write.
WRITE_TASK: 2: File opened.
WRITE_TASK 2: Writing to text file.
CCCCC
WRITE_TASK 2: Writing finished.
WRITE_TASK 2: Closing file.

READ_TASK: Opening file for read.
READ_TASK: File opened.
AAAAABBBBBCCCCCAAAAABBBBBCCCCC
READ_TASK: Closing file.

Supported Boards#

EVKB-IMXRT1050
Hardware requirements
  • Mini/micro USB cable

  • EVKB-IMXRT1050 board

  • Personal Computer

Board settings

No special settings are required.

Prepare the Demo
  1. Connect a USB cable between the host PC and the OpenSDA USB port on the target board.

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Download the program to the target board.

  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

LPCXpresso54S018M
Hardware requirements
  • Micro USB cable

  • LPCXpresso54S018M board

  • Personal Computer

Board settings

No special settings are required.

Prepare the Demo
  1. Connect a micro USB cable between the host PC and the LPC-Link USB port (J8) on the target board.

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Download the program to the target board.

  4. Launch the debugger in your IDE to begin running the demo.