ProPi configuration
This is the official PRO PI documentation, in addition to the PRO PI configuration guide, examples can be downloaded.
The reference image tested is version: 2021-03-04-raspios-buster-armhf-lite, which can be downloaded from this link.
To program the Pro Pi, proceed as follows:
- connect the programming cable to the audio jack of the Pro Pi and to the pc’s usb
CAUTION: Use only the official programming cable!
2) Feeding Pro Pi
3) Follow the instructions with reference to the CM3+ module found at RaspberryPi.com
After the programming procedure is completed, then modify the system by following the directions below:
– remove “console=serial0,nnnn” in the file /boot/cmdline.txt
– install sudo apt-get install i2c-tools
– In the file “/lib/udev/hwclock-set” comment out the following lines:
#if [ -e /run/systemd/system ] ; then
# exit 0
#fi
Then integrate the following parts into the indicated files:
# Rows to be added to the file /boot/config.txt for ProPI FULL setup.
# Some peripherals in the SuperLight and Light versions are not present
# I2C
# i2c0 -> hardware device
dtparam=i2c0=on
dtoverlay=i2c0,pins_28_29
# i2c1 -> camera and display.
dtparam=i2c0=on
dtoverlay=i2c0,pins_28_29
# SPI
dtparam=spi=on
# spi0 -> can bus
dtoverlay=spi0-cs,cs0_pin=8,cs1_pin=disable
# spi2 -> expansion cn12
dtoverlay=spi2-2cs
# UART
enable_uart=1
dtoverlay=pi3-disable-bt
dtoverlay=pi3-disable-wifi
core_freq=250
# uart0 MC60 pin 14,15 ttyAMA0
dtparam=uart0=on
# uart1 rs485 or rs232 pins 32 and 33 ttyS0
dtoverlay=uart1,txd1_pin=32,rxd1_pin=33
# CAN
dtoverlay=mcp2515-can0,oscillator=16000000,interrupt=5
# GPIO
# gpio4 MC60 DCD
gpio=4=ip
# gpio5 interrupt can
gpio=5=ip
# gpio6 – system reboot – Brought high resets the system
gpio=6=op,dl
# gpio7 MC60 DTR
gpio=7=ip
# gpio21 sw1 – Input button status – 0 = pressure
gpio=21=ip
# gpio22 – auxiliary output – Brought high activates n-mos.
gpio=22=op,dl
# gpio23 – green auxiliary led.
gpio=23=op,dh
# gpio24 – Power gsm disable – 0:on MC60 / 1:off MC60
gpio=24=op,dh
# gpio25 cfg hw2 – Input hw configuration.
gpio=25=ip
# gpio26 MC60 EINT
gpio=26=ip
# gpio27 cfg hw1 – Input hw configuration.
gpio=27=ip
# gpio31 enable RS485 line – Brought high enables transmission.
gpio=31=op,dl
# gpio34 pwrkey MC60 – Brought high brings the pwrkey = 0
gpio=34=op,dl
# gpio35 netlight MC60 – Input power status connection.
gpio=35=ip
# gpio36 pin3 cn12 connector
gpio=36=ip
# gpio37 pin5 cn12 connector
gpio=37=ip
# gpio38 pin7 cn12 connector
gpio=38=ip
# gpio39 pin9 cn12 connector
gpio=39=ip
# AUDIO
# Audio jack
dtoverlay=audremap,swap_lr,enable_jack
# Microphone
dtparam=i2s=on
# Rows to add to /etc/rc.local file for ProPI FULL setup.
# Adding rtc device
echo ds1672 0x68 > /sys/class/i2c-adapter/i2c-0/new_device
# Charge log check
regRead=”$(i2cget -y -f 0 0x68 0x05)”
regSet=”0xaa” # 0xaa=2k2+diode / 0xa6=2k2
if [ “$regRead” != “$regSet” ]; then
echo “RTC: set reg” $regSet
i2cset -y -f 0 0x68 0x05 $regSet
fi
# Rows to add to /etc/modules file for ProPI FULL setup.
i2c-bcm2708
i2c-dev
rtc-ds1672