Proviewr On Raspberry Pi
Proviewr On Raspberry Pi
2018 11 05
Copyright © 2005-2018 SSAB EMEA AB
Development
There are two ways to develop a system for Raspberry PI. On way is to install the ProviewR
development package on an RPI board with raspbian installed. The installation and creation of a
projects follows the same procedure as for an ordinary debian system. It will work for small
projects but is not ideal for larger projects.
The other way is to use an ordinary pc with ubuntu or debian, and to install the rpi cross compiler to
generate code for the Raspberry PI. In this case you have to have access to the ProviewR runtime
archives, cross compiled for RPI, and they are available in the pwrrpi package. This document will
describe how to install the cross compiler, and configure a ProviewR project for Raspberry PI.
Install the cross compiler
On the development station, the cross compiler for RPI should be installed.
> sudo aptget install gcc6armlinuxgnueabihfbase
gcc6armlinuxgnueabihf
g++6armlinuxgnueabihf
Install ProviewR
Download and install the ProviewR development package, pwr51, and the corresponding ProviewR
RPI development package pwrrpi51.
Create a project
Log in as user pwrp and start the administrator to create an rpi project.
In this example the project name is set to rpi.
Open the new project by leaving edit mode and activate 'Open Project' in the popup menu for the
ProjectReg object.
Configure the project
Run the configurator wizard and apply the default configuration.
Before leaving the directory volume, make following modifications.
Change the OperatingSystem of the NodeConfig object for the Raspberry PI node to CustomBuild.
Also insert the IP Address if this is not previously done, and the node name of the RPI in
NodeName. Note that the default nodename in the raspbian distribution is 'raspberrypi', not rpi as in
the figure below. As BootNode you can also set the IP address if the nodename isn't known on the
development station.
Add a CustumBuild object below the NodeConfig object.
Set
- OperatingSystem to Linux on ARM
- Platform to arm_linux
- Relase to the current ProviewR release.
- cc= arm-linux-gnueabihf-gcc-6
- cxx= arm-linux-gnueabihf-g++-6
- ar= arm-linux-gnueabihf-ar
Open the root volume, in the example VolRpi, execute the basic configuration with the wizard, and
then open volume attributes from File/Volume Attributes in the menu. Set OperatingSystem to
CustomBuild.
Build the project
Build the RPI node by activating the build button in the configurator tool bar, and select the rpi
node in the list.
RPI installation
Install raspbian on the RPI board, and then download the pwrrt package in the raspbian folder from
the ProviewR download page. Install the pwrr package.
> cd Downloads
> sudo aptget install libdb5.3
> sudo dpkg i pwrrt_5.1.01_armhf.deb
Add user pwrp to sudoers by starting visudo and adding the line
pwrp ALL=NOPASSWD: ALL
Distribute the project
Distribute the RPI project from the development station to the RPI board from Functions/Distribute
in the configurator. Select the rpi node in the list. Note that the distributor will prompt for a
password in the terminal window for the configurator. Enter the password for user pwrp, pwrp, two
times.
Start ProviewR runtime
Login as user pwrp with password pwrp, on the RPI. Start ProviewR with
> pwr start
Start rt_xtt and checkout the runtime environment.
> rt_xtt