Advertisement

Quick Links

.
NOEL-PF-EX
Quick Start Guide
2020 User's Manual
The most important thing we build is trust
NOEL-PF-EX-QSG
December 2020, Version 1.2
NOEL-PF-EX Quick Start Guide
1
www.cobhamaes.com/gaisler

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the NOEL-PF-EX and is the answer not in the manual?

Questions and answers

Summary of Contents for COBHAM NOEL-PF-EX

  • Page 1 NOEL-PF-EX Quick Start Guide 2020 User's Manual The most important thing we build is trust NOEL-PF-EX Quick Start Guide NOEL-PF-EX-QSG www.cobhamaes.com/gaisler December 2020, Version 1.2...
  • Page 2: Table Of Contents

    5.6.3. Exceptions ..................... 5.6.4. NOEL-V BSP variants ..................5.6.5. Console driver ....................5.6.6. Memory layout ....................5.6.7. Work area ...................... 5.7. Device tree ....................... 5.7.1. Background ....................5.7.2. GRMON ......................5.8. Compiler options ....................... NOEL-PF-EX-QSG www.cobhamaes.com/gaisler December 2020, Version 1.2...
  • Page 3 8.1.4. coremark ....................8.1.5. Creating a custom application ................8.2. Driver manager examples .................... 8.2.1. Introduction ....................8.2.2. Requirements ....................8.2.3. Build ......................8.2.4. Targets ......................8.2.5. Comments ...................... 8.2.6. Limitations ..................... 9. Support ..........................NOEL-PF-EX-QSG www.cobhamaes.com/gaisler December 2020, Version 1.2...
  • Page 4: Introduction

    1. Introduction 1.1. Overview This document is a quick start guide for the NOEL-PF-EX design. The guide is mainly how-to oriented and does not go into many technical details. For more in-depth information we refer to respective products User's Manual.
  • Page 5: Overview

    Linux 64-bit host operating systems. Chapter 5 describes how to use RTEMS with NOEL-PF-EX. The recommended method to load software onto NOEL-PF-EX is by connecting to a debug interface of the board through the GRMON hardware debugger (Chapter 4).
  • Page 6: Linux

    Buildroot can be used to easily create a bootable Linux image for NOEL-V [RD-6]. It automatically creates a toolchain and supports a large number of useful userspace applications which can be included in the generated root file system. Included in the software development environment is a NOEL-PF-EX BSP for Buildroot which provides the necessary driver support.
  • Page 7: Board Configuration

    3. Board Configuration This chapter describes boards items as used by the NOEL-PF-EX design. Please see MPF300-SPLASH-KIT User Guide for a detailed legend of the reference designators. 3.1. Debug connectors • J1: USB JTAG/UART interface via FTDI with mini-USB connector. See (Chapter 4).
  • Page 8: Grmon Hardware Debugger

    The first step is to set up a debug link in order to connect to the board. The following section outlines which debug interfaces are available and how to use them on the NOEL-PF-EX design. After that, a basic first inspection of the board is exemplified.
  • Page 9: Debug-Link Alternatives

    The previous sections have described which debug-links are available and how to start using them with GRMON. The subsections below assume that GRMON, the host computer and the NOEL-PF-EX board have been set up so that GRMON can connect to the board.
  • Page 10: Get System Information

    JTAG chain (1): MPF300T Device ID: 0x291 GRLIB build version: 4261 Detected frequency: 50.0 MHz Component Vendor NOEL-V RISC-V Processor Cobham Gaisler AHB Debug UART Cobham Gaisler JTAG Debug Link Cobham Gaisler L2-Cache Controller Cobham Gaisler Generic AHB ROM Cobham Gaisler...
  • Page 11: Debugging With Gdb

    Loading section .rodata, size 0x120a0 lma 0x40013338 Loading section .sdata2, size 0x30 lma 0x400253d8 Loading section .eh_frame, size 0x4 lma 0x40025408 Loading section .init_array, size 0x8 lma 0x40025410 Loading section .fini_array, size 0x8 lma 0x40025418 NOEL-PF-EX-QSG www.cobhamaes.com/gaisler December 2020, Version 1.2...
  • Page 12 RTEMS tools: 9.3.0 20200312 (RTEMS 5, RSB 5 (3bd11fd4898b), Newlib 7947581) executing thread ID: 0x08a010001 executing thread name: UI1 Program received signal SIGTRAP, Trace/breakpoint trap. _CPU_Fatal_halt (source=source@entry=5, error=error@entry=0) at /home/user/riscv/leon-rtems/build/../c/src/lib/libbsp/riscv/riscv/ ../../../../../../bsps/riscv/riscv/start/bsp_fatal_halt.c:43 asm ("ebreak"); (gdb) NOEL-PF-EX-QSG www.cobhamaes.com/gaisler December 2020, Version 1.2...
  • Page 13: Rtems Real Time Operating System

    RTEMS toolchain for NOEL-V. This section gives the reader a brief introduction on how to use RTEMS together with the NOEL-PF-EX design. It will be demonstrated how to install the toolchain and build an existing sample RTEMS project and run it on the board using GRMON.
  • Page 14 593728 00000118 addi sp, sp, -16 [0000000000029D70] Init+0x0 593729 0000011a s0, 0(sp) [0000000000029D70] Init+0x2 grmon3> reg a0: 0000000040023128 t0: 7F7F7F7FFFFFFFFF s0: 0000000040021A48 a1: 0000000000000000 t1: 0000000040000118 s1: 0000000000000000 a2: 000000004001ECC8 t2: FFFFFFFFFFFFFFFF s2: 0000000000000000 NOEL-PF-EX-QSG www.cobhamaes.com/gaisler December 2020, Version 1.2...
  • Page 15: Risc-V And Noel-V Integration With Rtems

    The full list of BSP variants provided with the tool chain is: • noel32i • noel32im • noel32imafd • noel32imafd_smp • noel32ima_smp • noel64im • noel64imafd NOEL-PF-EX-QSG www.cobhamaes.com/gaisler December 2020, Version 1.2...
  • Page 16: Console Driver

    • The below procedure may change or may not be needed in future versions of GRMON or the RTEMS BSP. Use the device tree compiler (dtc) to generate a device tree blob (.dtb) from a device tree source file (). NOEL-PF-EX-QSG www.cobhamaes.com/gaisler...
  • Page 17: Compiler Options

    Giving the kernel configure option --enable-tests will build the RTEMS kernel test suite, consisting of over 600 tests, together with the kernel. Most tests run correctly on NOEL-V. Cobham Gaisler is currently analyzing if failing tests can be explained by general RTEMS issues, RISC-V issues in RTEMS, or because of the NOEL- V integration.
  • Page 18 Example 5.4. export THE_PREFIX=/opt/my-rtems-noel export THE_RSB_REPO="git://git.rtems.org/rtems-source-builder.git" export THE_RSB_COMMIT=5.1 export THE_RSB_PATCHES=/opt/rtems-noel-1.0.4/0001-noel-multilibs-for-gcc-9.3.0.patch git clone $THE_RSB_REPO rsb pushd rsb git checkout -b noel $THE_RSB_COMMIT git apply $THE_RSB_PATCHES --check git am $THE_RSB_PATCHES popd pushd rsb/rtems ../source-builder/sb-set-builder --prefix=$THE_PREFIX 5/rtems-riscv popd NOEL-PF-EX-QSG www.cobhamaes.com/gaisler December 2020, Version 1.2...
  • Page 19: Bare-Metal Cross-Compiler

    C and C++ single-threaded applications. This section gives the reader a brief introduction on how to use NCC together with the NOEL-PF-EX design. It will be demonstrated how to build an an example program and run it on the NOEL-PF-EX using GRMON.
  • Page 20: Running And Debugging With Grmon

    6.6. Running and debugging with GRMON Once your application is compiled, connect to your NOEL-PF-EX with GRMON. The following log shows how to load and run an application. Note that the console output is redirected to GRMON by the use of the -u command line switch, so that the application standard output is forwarded to the GRMON console.
  • Page 21: Linux

    Buildroot and how to load and execute a Linux image on hardware using GRMON. Cobham Gaisler provides a BSP for NOEL-PF-EX which is included in the Buildroot version downloadable from https://www.gaisler.com/NOEL-PF. The Buildroot BSP contains additional driver support for Linux.
  • Page 22 40200000 .payload 12.7MB / 12.7MB [===============>] 100% Total size: 12.80MB (97.78Mbit/s) Entry point 0x40000000 Image noelv-buildroot/output/images/fw_payload.elf loaded Load the DTB using the dtb command: grmon3> dtb noel-pf.dtb DTB will be loaded to the stack NOEL-PF-EX-QSG www.cobhamaes.com/gaisler December 2020, Version 1.2...
  • Page 23 0.005332] Calibrating delay loop (skipped), value calculated using timer frequency.. 100.00 BogoMIPS (lpj=200000) 0.008901] pid_max: default: 32768 minimum: 301 0.012378] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes, linear) 0.015177] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes, linear) NOEL-PF-EX-QSG www.cobhamaes.com/gaisler December 2020, Version 1.2...
  • Page 24 12.229148] random: crng init done Starting syslogd: OK Starting klogd: OK Running sysctl: OK Saving random seed: OK Starting network: OK Welcome to Buildroot buildroot login: You can now log into the system using root as username. NOEL-PF-EX-QSG www.cobhamaes.com/gaisler December 2020, Version 1.2...
  • Page 25: Rtems Example Applications

    8.1.4. coremark The CoreMark benchmark program from EEMBC. See the file coremark/README.NOEL-V for information on how to set the build parameters. Build for NOEL-V by entering the coremark directory and run the script named build.sh: NOEL-PF-EX-QSG www.cobhamaes.com/gaisler December 2020, Version 1.2...
  • Page 26: Creating A Custom Application

    The example binaries will be placed inside the bin directory. 8.2.4. Targets Examples will be built automatically for the following BSP variants: • Single processor BSP variants • noel32i • noel32im • noel32imafd • noel64im NOEL-PF-EX-QSG www.cobhamaes.com/gaisler December 2020, Version 1.2...
  • Page 27: Comments

    RTEMS shell. Type help at the prompt to see the available commands. config.c onfigures driver resources, initializes the Driver Manager and BSP Networking Stack. config_*.c is the subsystem configurations. 8.2.6. Limitations The RTEMS TCP/IP network stack provided is considered experimental for 64-bit NOEL-V. NOEL-PF-EX-QSG www.cobhamaes.com/gaisler December 2020, Version 1.2...
  • Page 28: Support

    9. Support For support contact the Cobham Gaisler support team at support@gaisler.com. When contacting support, please identify yourself in full, including company affiliation and site name and address. Please identify exactly what product that is used, specifying if it is an IP core (with full name of the library distribution archive file), component, software version, compiler version, operating system version, debug tool version, simulator tool version, board version, etc.
  • Page 29 Cobham convey a license under any patent rights, copyrights, trademark rights, or any other of the intellectual rights of Cobham or of third parties. All information is provided as is. There is no warranty that it is correct or suitable for any purpose, neither implicit nor explicit.

Table of Contents