How to Write an Image to the microSD* Card for the Terasic DE10-Nano*

ID 662704
Updated 2/6/2017
Version Latest
Public

author-image

By

This tutorial explains how to write an image to the microSD* card (removable flash memory) on the Terasic DE10-Nano*. In the steps below, you'll learn where to download the latest image, how to write the image to the microSD card and what to look for (after powering on the board) to ensure you've correctly programmed the card.

Prerequisites:

  • Disk Imager
  • A microSD to SD card adapter (optional)

Contents of the SD Card

The microSD card contains the embedded software needed to boot and run the board.

These include the FPGA configuration bitstreams, Linux* kernel and device trees for the board, Angstrom* and U-Boot*.

Curious about the details of SD card contents? Find more information at the end of this tutorial page.

Download and Install the Image

Download the Image

  1. Get the desired image from DE10-Nano Downloads Page
  2. Unpack tarball file (filename with file extension .tgz) using WinZip*

    Note: remember where you saved this file, you\x92ll it for step 6.

    winzip
  3. For Windows\xAE users download Win32 Disk Imager*:
    For Linux* users, learn how to write an image here:
    How to write a disk image on Linux
  4. To program the microSD card from your host PC, insert the microSD card into the host PC.
    If a microSD card slot is not available, use a microSD to SD memory card adapter and then insert into a standard SD card slot.
  5. Open file explorer and check for the microSD card

    Note: The microSD card is recognized as a mass storage device

    file_explorer

Write the image to the microSD card

  1. Open Win32 Disk Imager
    • Image File: Select image file
    • Device: Point at target device (see step 5. above)

    winzip
  2. Click \x93Write\x94 to write image to the device (microSD card)
  3. Hit \x93Exit\x94 when write is successful.
    exit
  4. Remove microSD card from host PC and insert into microSD card slot on the board.

LED Indicators

Power on the Board

To power on the board:

  1. Connect the USB OTG cable to the DE10-Nano (Micro-B) and your host PC (Type-A).
  2. Then connect the power adapter and plug in the power cable (DC 5V) into a wall outlet.

Note: the board does not have a power button and powering on the board here means connecting the power plug to a wall outlet.

boot sequence

LED Boot Sequence

  • Blue LED: 3.3 V power LED lights up.
  • Amber LED: Indicates that the FPGA has been configured.
  • Green \x93Heartbeat\x94 LED: A pulsing or 'heartbeat' LED indicates that the Linux OS has been loaded.
  • Green user LEDs [7:0]: Counts down from LSB to MSB. Indicates that the device tree overlay has been loaded.
    What that means is that Linux now knows about the LEDs (so why not blink them!).

If you've made it this far, it means everything is working\x97hooray! You're now ready to connect to the board and start playing with the web demos.


Extra: Details of SD Card Contents by Partition

In case your interested, below are the contents of the SD card (factory default). Other SD card images contain other contents and could be partioned in other ways.

Partition 1

  • FPGA configuration bitstreams
  • Linux kernel and device trees for the board
  • extlinux.conf used for boot configuration by U-Boot

Partition 2

  • Angstrom* RootFS
    • Arm toolchain
    • XFCE Desktop
    • Examples/demos

Partition 3

  1. U-Boot SPL* and U-Boot*

More information on the Terasic DE10-Nano:

Terasic DE10-Nano