MCUXpresso_LPC55S69/boards/lpcxpresso55s69/sdmmc_examples/sdcard_interrupt/cm33_core0
Yilin Sun 6e8d03ec0a Updated to SDK v2.15.000
Signed-off-by: Yilin Sun <imi415@imi.moe>
2024-04-12 21:21:49 +08:00
..
armgcc Updated to SDK v2.15.000 2024-04-12 21:21:49 +08:00
board.c Stock SDK v2.11.0 2022-04-08 22:42:47 +08:00
board.h Stock SDK v2.11.0 2022-04-08 22:42:47 +08:00
clock_config.c Stock SDK v2.11.0 2022-04-08 22:42:47 +08:00
clock_config.h Stock SDK v2.11.0 2022-04-08 22:42:47 +08:00
pin_mux.c Stock SDK v2.11.0 2022-04-08 22:42:47 +08:00
pin_mux.h Stock SDK v2.11.0 2022-04-08 22:42:47 +08:00
readme.md Updated to SDK v2.15.000 2024-04-12 21:21:49 +08:00
sdcard_interrupt.c Stock SDK v2.11.0 2022-04-08 22:42:47 +08:00
sdcard_interrupt_v3_14.xml Updated to SDK v2.15.000 2024-04-12 21:21:49 +08:00
sdmmc_config.c Stock SDK v2.11.0 2022-04-08 22:42:47 +08:00
sdmmc_config.h Updated to SDK v2.15.000 2024-04-12 21:21:49 +08:00

readme.md

Overview

The SDCARD Interrupt project is a demonstration program that uses the SDK software. It reads/writes /erases the SD card continusly. The purpose of this example is to show how to use SDCARD driver and show how to use interrupt based transfer API in SDHC driver in SDK software to access SD card. Note: If DATA3 is used as the card detect PIN, please make sure DATA3 is pull down, no matter internal or external, at the same time, make sure the card can pull DATA3 up, then host can detect card through DATA3.And SDHC do not support detect card through CD by host, card can be detected through DATA3 or GPIO.No matter detect card through host or gpio, make sure the pinmux configuration is correct.

SDK version

  • Version: 2.15.000

Toolchain supported

  • IAR embedded Workbench 9.40.1
  • Keil MDK 5.38.1
  • GCC ARM Embedded 12.2
  • MCUXpresso 11.8.0

Hardware requirements

  • Micro USB cable
  • LPCXpresso55s69 board
  • Personal Computer

Board settings

Insert the card into card slot

Prepare the Demo

Note: MCUXpresso IDE project default debug console is semihost

  1. Connect a micro USB cable between the PC host and the LPC-Link USB port (P6) on the 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. Reset the SoC and run the project. Note:Do not try to use DATA3 to detect card, the demo board pull up the DATA3 pin, but DATA3 should be pull down when used as card detect pin.

Running the demo

When the demo runs successfully, the log would be seen on the terminal like:


SDCARD interrupt example.

Please insert a card into board.

SDCARD interrupt example.

Please insert a card into board.

SDCARD interrupt example.

Please insert a card into board.

SDCARD interrupt example.

Please insert a card into board.

Card inserted.

Card size 15523840 * 512 bytes

Working condition:

  Voltage : 3.3V

  Timing mode: High Speed

  Freq : 48000000 HZ

Read/Write/Erase the card continuously until encounter error......

Write/read one data block......
Compare the read/write content......
The read/write content is consistent.
Write/read multiple data blocks......
Compare the read/write content......
The read/write content is consistent.
Erase multiple data blocks......

Input 'q' to quit read/write/erase process.                
Input other char to read/write/erase data blocks again.