Renesas RZ Series Quick Start Manual Download Page 1

 
 
 
 
 

 

 

 
 

RZ/N1D Group 
RZ/N1S Group 
RZ/N1L Group 
 
 

 
 

Application Note: 

PROFINET Quick Start Guide 

 

 

RZ Family 

RZ/N1 Series 

 
 

Preliminary

 

 
 
 
 
 

All  information  contained  in  these  materials,  including  products  and  product  specifications, 
represent  information  on  the  product  at  the  time  of  publication  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  Electronics  Corp. 
website (http://www.renesas.com). 

 

 

Renesas Electronics 

 

 

www.renesas.com 

 

Rev. 1.4.3  January 07, 2019 

Applic

ati
on Note

 

 

Summary of Contents for RZ Series

Page 1: ...ct specifications represent information on the product at the time of publication 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 Electronics Corp website http www renesas com Renesas Electronics www renesas com Rev 1 4 3 January 07 2019 Application Note ...

Page 2: ...tage range heat radiation characteristics installation and other product characteristics Renesas Electronics shall have no liability for malfunctions or damages arising out of the use of Renesas Electronics products beyond such specified ranges 7 Although Renesas Electronics endeavors to improve the quality and reliability of its products semiconductor products have specific characteristics such a...

Page 3: ... expansion of functions Do not access these addresses the correct operation of LSI is not guaranteed if they are accessed 4 Clock Signals After applying a reset only release the reset line after the operating clock signal has become stable When switching the clock signal during program execution wait until the target clock signal has stabilized When the clock signal is generated with an external r...

Page 4: ...ration 19 4 2 Setting up PLC 19 5 Revision History 24 Figures Figure 3 1 Serial Terminal settings RZ N1 9 Figure 3 2 Code example for setting User device MAC Address 10 Figure 3 3 IAR Configurations RAM and ROM for RZ N1L 12 Figure 3 4 IAR Workbench Busy Window 13 Figure 3 5 Changing Reset mode of RZ N1L in Debug ROM configuration 13 Figure 3 6 Multicore Debug Option 16 Figure 3 7 Multicore Debug ...

Page 5: ...Table 3 2 PINs for SPI usage 18 Table 3 3 GPIOs for SPI usage 18 ...

Page 6: ... network protocol is located at the CM3 core in both the standalone and the Core To Core variant Its task is the communication with other operators therefore the alias name of the CM3 core is communication core CC in this document It contains also a DLR stack that allows to run the RZ N1 as a Beacon based Ring Node In the Core To Core variant the user application is executed on the Linux based CA7...

Page 7: ...s about 3 hours Using the SNMP stack Conformance Class B is also possible It contains but is not restricted to the following features Alarms Diagnosis Cyclic data exchange up to 1 ms cycle time depending on the application Acyclic data Unrestricted record data access depending on the application Neighbourhood detection support DCP support station name IP configuration factory reset LLDP support Ex...

Page 8: ...from the 4 installed devices must be tried 3 2 Hardware Please take care to follow the setup guidelines for the RZ N1 Demo Board from the Linux and U boot documentation RZN1x Quick Start Guide pdf Please follow these initial steps to setup the UART and DFU connection 1 Connect the board to a PC via the UART and the DFU interface After the driver for the device has been installed additional serial ...

Page 9: ...dules Dynamic module demonstration 09_busy_records Demo for postponing record handling 10_led_demo DCP signal on LED demo 11_multiple_write Process a multiple write request 13_pnio_snmp Simple I O data mirror example incl SNMP 14_info_set Set the device information data 15_config_set Set the PROFINET config data 16_device_name Set device name in application 17_process_alert Cyclically process alar...

Page 10: ...zation of the device by re defining the weak function goal_tgtBoardEthMacGet This function is called by the Ethernet driver during its initialization to directly fetch an individual and non default User MAC Address Like shown in the following example the User MAC Address must only be copied to the address of the corresponding function parameter Figure 3 2 Code example for setting User device MAC A...

Page 11: ... 1 1 Loading application into RAM via IAR Embedded Workbench To compile a project follow these steps 1 Start the IAR Workbench IDE 2 Open a project via File Open Workspace 3 Go to the workspace folder and open it In case the CPU board is used together with the extension board please ensure to select the correct IAR project 4 Compile the project via Project Compile or Project Rebuild all 5 Power up...

Page 12: ... 8 If the autoboot command was already configured go to step 10 9 Set the autoboot command in the U Boot setenv bootcmd sf probe sf read 0x4000000 d0000 90000 rzn1_start_cm3 loop 0 1 10 Save the command to the flash saveenv 11 Reset the device Standalone Variant RZ N1L The RZ N1L does not use any bootloaders If any application is stored in flash it will be started automatically Both loading into R...

Page 13: ...and press Make Restart Debugger c Check if the reset mode is still on Hardware If not repeat the previous step Figure 3 5 Changing Reset mode of RZ N1L in Debug ROM configuration After the Debug view opened click on the Go button 3 5 3 Core To Core variant RZ N1D Communication Core The binary file for the CM3 core is located at the board type related IAR Embedded Workbench folder goal projects goa...

Page 14: ...artet 3 5 4 Core To Core variant RZ N1D Application Core The user application runs on the Linux system of the CA7 Its binary must be created by GCC and downloaded to the RZ N board manually Note It is recommended to maintain a consistent boot order of the communication and the application core Therefore it is advised to always start the R IN engine Cortex M3 communication core first and boot the C...

Page 15: ...oard bin and its library is placed at home root Disabling the start script is possible by adding the boot argument GOAL_APPL_LINUX_PREV 1 Power up the board 2 Hit any key to stop the autoboot of the U Boot 3 Add the boot argument for preventing the application autoboot by setenv bootargs bootargs GOAL_APPL_LINUX_PREV 4 Save the command to the flash by saveenv 5 Reset the device Reenabling the star...

Page 16: ...e IO example please perform the following steps 1 Power up the board 2 Open the corresponding AC IAR project workspace e g projects goal_pnio_rpc 01_simple_io iar renesas rzn1s_a7_threadx rzn1s_a7_threadx eww 3 Open the project options and navigate to the subcategory Multicore in the category Debugger 4 Enable Multicore master mode and select the slave workspace to use Please note that the slave p...

Page 17: ...ded to the board and the IDE switches in the debug mode an additional dialog for multicore debugging is available giving the following options start all cores at once stop all cores at once toggle execution mode Figure 3 7 Multicore Debug Interface Core To Core variant RZ N1L Communication Core The binary file for the CM3 core is located in the board type related IAR Embedded Workbench folder goal...

Page 18: ... CN20 4 MISO Blue J24 5 CN20 3 MOSI Yellow J24 4 CN20 2 SPI chip select Red J24 3 CN20 1 Table 3 2 PINs for SPI usage Please note the synergy quick start guide for setup the named core By default the RZ N1L uses the SPI channel 5 and the following GPIOs GPIO Usage 62 SPI clock 63 MOSI 64 MISO 65 SPI chip select Table 3 3 GPIOs for SPI usage Note The board supports only SPI mode 1 and 3 Please set ...

Page 19: ...to a private network address e g 192 168 0 30 4 2 Setting up PLC 1 Open the Siemens tool TIA and create a new project 2 Switch to the Project view 3 Load the GSDML file Menu Options Manage GSD and install it o The GSDML file can be found in goal protos pnio gsdml 4 Add the RZ N device to the project Figure 4 1 o Double click on Devices networks o Open Network view o Drag drop the device Standard f...

Page 20: ...Portal with S7 1500 R11QS0010ED0143 Rev 1 4 3 Page 20 of 26 July 09 2019 Figure 4 2 Add I O modules 6 Add the PLC to the project Figure 4 3 o Double click on Add new device o Choose the device and the firmware version 1 7 Figure 4 3 Add the PLC to the project 7 Connect the devices Figure 4 4 o Change to Network view o Connect the green marked Ethernet ports of the devices drag drop ...

Page 21: ... 8 Check the IP address of the PLC Figure 4 5 o Change to Device view o Choose the PLC device o Click on the PLC in the Device view o The IP address in the General window must be the same as set in the PLC Figure 4 5 Check the IP address 9 Set the name of RZ N1 Figure 4 6 o Double click on your network interface card in Project tree Online access o Open Online diagnostics of the RZ N1 device o Go ...

Page 22: ... R11QS0010ED0143 Rev 1 4 3 Page 22 of 26 July 09 2019 Figure 4 6 Set device name 10 Load the settings to the hardware o Right click on the PLC at the Project tree left hand side o In the right click context menu Download to device Hardware configuration Popup of a new window Figure 4 7 o Select your interfaces and connection o Click Start search to find your device o Select the PLC line o Press Lo...

Page 23: ...gure 4 7 Configuration of the connection Finish PLC configuration Figure 4 8 Figure 4 8 Finish configuration Now the PLC should connect to the device and exchange cyclic data with it As the data is mirrored in the 01_simple_io example the PLC can be also programmed to send cyclic over the output module which should be mirrored on the input module Watching and changing the cyclic data can also be e...

Page 24: ...Minor text updates 1 3 2017 08 07 Marcus Züche Review Renesas 1 4 2017 12 15 Marcus Züche Add description for autostart the CA7 application Minor updates 1 5 2018 05 28 Martin Herberg Add description project variants and all RZ N1 derivatives Minor Updates 1 6 2018 07 04 Martin Ehlert Added interface usb0 as parameter to start command in chapter 3 5 4 1 1 7 2018 06 22 Marcus Züche 24 08 2018 Marti...

Page 25: ...679 Renesas Electronics Shanghai Co Ltd Unit 204 205 AZIA Center No 1233 Lujiazui Ring Rd Pudong District Shanghai 200120 China Tel 86 21 5877 1818 Fax 86 21 6887 7858 7898 Renesas Electronics Hong Kong Limited Unit 1601 1613 16 F Tower 2 Grand Century Place 193 Prince Edward Road West Mongkok Kowloon Hong Kong Tel 852 2886 9318 Fax 852 2886 9022 9044 Renesas Electronics Taiwan Co Ltd 7F No 363 Fu...

Page 26: ...RZ N1 Group ...

Reviews: