The first step is the installation of a Linux distribution. Usually I prefer a Debian distro (stable or testing).
It is possible to download a net iso from the Debian webpage and put it on a USB stick (using for axample "dd")
At the end of the installation I usually choose in addition to the proposed software the XFCE4 window manager and the SSH-Server option.
After reboot of the PC we have to perform the following tasks:
$ su (+root password)
$ apt-get install sudo
$ apt-get install linux-image-rt-amd64
$ apt-get install linux-headers-rt-amd64
$ apt-get install make
$ /usr/bin/addgroup <user> sudo
$ reboot
Now it is possible to install all the additional packages using the provided Makefile
Attention: Some operations require the user password.
$ mkdir Develop
$ cd Develop
$ make packages
$ make pysimcoder
$ make Shv
The next step is to compile the Linux files with the SHV add-ons
$ cd pysimCoder/CodeGen/LinuxRT/devices
$ make SHV=1
$ make nuttx
$ make f7
The last command creates a tar.gz file in the NUTTX/nuttx folder and move the nuttx-export folder under pysimCoder/CodeGen/nuttx.
This last command set SHV for the nuttx F7 environment.
$ cd devices
$ make SHV=1
There are 2 scipts that can be copied under /usr/local/bin which can be used to handle some operations:
- shv can be used to launch the Silicon Heaven programs to interact with the RT application and change parameters on the fly during the execution
- flash_f7 that can be used to flash the generated code for the nucleo-F746ZG board
The shv applcation must be fitted with the name of the folder where the 2 gits are installed!
It is important to set the right user and passwor in the shvspy window. Smply open the application and with the rigt mouse button, select the server (usually "test") and in the pull-down menu click on "Server properties.
Set the two fields:
- user: admin
- password: admin!123