6.1.1. Overview ....................... 6.1.2. Compiling with BCC ..................6.1.3. Running and debugging with GRMON ..............10 7. Support ..........................LEON3-XCKU-NANDFC- Frontgrade Gaisler AB | Kungsgatan 12 | SE-411 19 | Göteborg | Sweden | frontgrade.com/gaisler TRL2-EX-QSG Sep 2023, Version 1.0...
This quick start guide does not contain many technical details and is instead how-to oriented. However, to make the most of the guide the user should have glanced through the LEON3-XCKU-NANDFCTRL2-EX User Manual and should ideally also be familiar with the GRMON debug monitor.
The bitstream comes together with a set of example applications available both in .c and .exe format. Those are located in the systest folder. The recommended method to load software onto LEON3-XCKU-NANDFCTRL2-EX is by connecting to a debug interface of the board through the GRMON hardware debugger (Chapter 5). The applications can be updated and rebuilt using BCC.
4. Open a terminal in the downloaded folder and issue the following command to launch Vivado: vivado -mode tcl -notrace -source doprog.tcl 5. To program the configuration memory, run in the Vivado console: doprog LEON3-XCKU-NANDFC- Frontgrade Gaisler AB | Kungsgatan 12 | SE-411 19 | Göteborg | Sweden | frontgrade.com/gaisler TRL2-EX-QSG Sep 2023, Version 1.0...
Page 6
GUI mode. Start vivado and Open the Hardware Manager, open the target, add configuration memory device mt25qu256-spi-x1_x2_x4 and program the configuration memory using the bitstream file (the *.mcs file). Close the hardware manager. LEON3-XCKU-NANDFC- Frontgrade Gaisler AB | Kungsgatan 12 | SE-411 19 | Göteborg | Sweden | frontgrade.com/gaisler TRL2-EX-QSG Sep 2023, Version 1.0...
4. Software Development Environment 4.1. Overview Frontgrade Gaisler provides a comprehensive set of software tools to run several different operating systems. For the latest status of NANDFCTRL2 drivers for the different operating systems, contact support@gaisler.com. LEON3 supports the following operating systems: the Bare C Cross-Compiler System is a toolchain to compile bare C or C++ applications di- rectly on top of the processor without the servises provided by an operating system.
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 LEON3-XCKU-NANDFCTRL2 example bitstream. After that, a basic first inspection of the board is exemplified.
1.6kB / 1.6kB [===============>] 100% Total size: 74.70kB (26.61Mbit/s) Entry point 0x40000000 systest.exe loaded grmon3> run INF : main enter LEON3-XCKU-NANDFC- Frontgrade Gaisler AB | Kungsgatan 12 | SE-411 19 | Göteborg | Sweden | frontgrade.com/gaisler TRL2-EX-QSG Sep 2023, Version 1.0...
C and C++ applications for LEON2, LEON3 and LEON4. This section gives the reader a brief introduction on how to use BCC together with the LEON3-XCKU-NANDFCTRL2 example bitstream. It will be demonstrated how to build an an example program and run it on the LEON3-XCKU-NANDFCTRL2-EX using GRMON.
Page 11
Alternatively you can run GRMON with the -gdb command line option and then attach a GDB session to it. For further information see Chapter 3 of [RD-4]. LEON3-XCKU-NANDFC- Frontgrade Gaisler AB | Kungsgatan 12 | SE-411 19 | Göteborg | Sweden | frontgrade.com/gaisler TRL2-EX-QSG...
There is also an open forum available at https://grlib.community. LEON3-XCKU-NANDFC- Frontgrade Gaisler AB | Kungsgatan 12 | SE-411 19 | Göteborg | Sweden | frontgrade.com/gaisler TRL2-EX-QSG Sep 2023, Version 1.0...
Page 13
F: +46 31 421407 Frontgrade Gaisler AB, reserves the right to make changes to any products and services described herein at any time without notice. Consult the company or an authorized sales representative to verify that the information in this document is current before using this product.
Need help?
Do you have a question about the LEON3-XCKU-NANDFCTRL2 and is the answer not in the manual?
Questions and answers