Renesas RZ/N1S-DB Quick Start Manual Download Page 2

1  INTRODUCTION 

This guide aims to quickly get U-Boot running on your Renesas RZ/N1S-DB board. 

There are several pieces of software that are used to load and run software on the RZ/N1, these 
are discussed below. Pre-built binaries are provided to get you up and running quicker. 

1.1  Renesas BootROM 

The BootROM is internal to the device and is always run on reset. The BootROM loads the first 
valid SPKG image from one of three sources, QSPI, NAND or USB DFU, the choice of which is 
done  via  boot  mode  pins,  and  starts  executing  it.  DFU  is  a  protocol  used  with  USB  to  update 
software on embedded products; the RZ/N1 device will act as USB Device and is attached to a 
USB Host, e.g. a PC. 

An  SPKG  is  a  Renesas  proprietary  format  that  includes  information  on  the  size  of  the  binary 
payload, the destination for the payload, and optional signature information. For the purposes of 
this document, we assume that the device allows SPKGs without a signature. 

Note:

 The BootROM will only allow an SPKG payload to be written to internal SRAM as writing to 

QSPI is board specific. 

Normally, on the RZ/N1S-DB board, when the board is reset the BootROM will load an SPKG from 
QSPI. Typically, this SPKG contains U-Boot or U-Boot/SPL. 

However,  by  changing  the  boot  mode  pins  state  by  holding  down  a  switch  when  resetting  the 
board, the BootROM will start in USB DFU mode and will wait for the host PC to upload an SPKG. 

1.2  U-Boot 

U-Boot is a boot loader that allows you to run commands that can read and write to/from QSPI or 
SD cards, load files from a TFTP server, program QSPI using USB DFU, start an OS and start the 
Cortex-M3 processor. 

Typically,  U-Boot  will  load  the  Device  Tree  Blob  (dtb)  and  OS  image  from  QSPI,  and  pass 
arguments to the kernel. 

 

Summary of Contents for RZ/N1S-DB

Page 1: ...on and is subject to change by Renesas Electronics Corp without notice Please review the latest information published by Renesas Electronics Corp through various means including the Renesas Technology Corp website http www renesas com www renesas com RZ N1S DB Board U Boot System on Chip Target Device RZ N1S R01QS0008EG0104 June 8 2018 Quick Start Guide ...

Page 2: ...of the binary payload the destination for the payload and optional signature information For the purposes of this document we assume that the device allows SPKGs without a signature Note The BootROM will only allow an SPKG payload to be written to internal SRAM as writing to QSPI is board specific Normally on the RZ N1S DB board when the board is reset the BootROM will load an SPKG from QSPI Typic...

Page 3: ...e board are shown below CN3 USB Function SW2 Boot Mode SW9 Soft Reset CN14 Power via USB CN7 Debug Connector SW5 Multiplexer Setup SW4 SW Dip Switch CN5 ETH5 CN1 ETH4 CN6 FTDI serial over USB FTDI JTAG over USB Power Connector SW3 SW1 RXCLK4 SW7 RXCLK5 SW12 SW10 SW11 ...

Page 4: ... Not used OFF Other switches Switch SW ON white bar SW OFF Default Setting SW3 JTAG Mode ARM Coresight Mode OFF SW10 Boot from NAND Boot from QSPI OFF SW11 LCD pull up LCD pull down ON SW12 LCD pull up LCD pull down ON SW1 RXCLK4 from PHY RXCLK4 from GPIO61 ON SW7 RXCLK5 from PHY RXCLK5 from GPIO61 ON Extension Board The relevant switches of the Extension Board are shown below CN15 CN16 PHY2 3 MDI...

Page 5: ...ports will exist The board uses the 3rd port for UART output at 115200 8 n 1 On Linux PCs if you have no other serial over USB devices attached this is accessed using dev ttyUSB2 If the board is powered by USB press switch SW9 to perform a soft reset If you wish to use Ethernet but do not have an Extension Board you can connect CN1 on the board to a dedicated Network Interface Card NIC on your PC ...

Page 6: ...oad U Boot to SRAM On your host PC run sudo dfu util D u boot rzn1s324 db bin spkg 4 U Boot should run and the RZ N1 serial port presents you with a console similar to this U Boot 2017 01 Model RZ N1S DB board DRAM 4 MiB MMC sdhci 0x40100000 0 SF Detected mx25l25635f with page size 256 Bytes erase size 64 KiB total 32 MiB mapped at 10000000 In serial 0x40060000 Out serial 0x40060000 Err serial 0x4...

Page 7: ...showing the following output on the terminal BOOTLOADER STAGE0 for RZN1 Boot source QSPI 00 BOOTLOADER STAGE0 Success Bootloader stage0 END Execute 2nd Stage Bootloader which has been loaded and verified U Boot 2017 01 Model RZ N1S DB board DRAM 4 MiB MMC sdhci 0x40100000 0 SF Detected mx25l25635f with page size 256 Bytes erase size 64 KiB total 32 MiB mapped at 10000000 In serial 0x40060000 Out s...

Page 8: ... Ensure switch SW5 6 is OFF and switch SW3 is OFF i e away from the white bar Below we show basic commands to get you started with GDB Further details on using OpenOCD with GDB can be found at http openocd org doc html GDB and OpenOCD html Connect to the board using the configuration file provided by Renesas This starts a GDBServer which you can connect to from gdb or any other debugger that suppo...

Page 9: ...RZ N1S DB Board U Boot ...

Reviews: