This document belongs to :
Milo Koson, Clément Le Goffic, Thibault Malary, Alfred Vrignaud, Marin Bonsergent, Jean-Théophane Deschard, Loris Bousquet
Material :
- Discovery kit STM32MP157C-DK2 from STMicroelectronics
- LiDAR : RPLIDAR A1M8 from Slamtec
- USB A to Micro USB B Cable
- USB C to USB A Cable and USB C to USB C to make sure you can connect to the board depending on your situation
- 5V/3A Power supply
- Android Smartphone (Developed on and for a Samsung Galaxy A20e under Android 9 et with kernel v4.4.111)
Software :
- Install OpenSTLinux on the MP1 (STM32MP157C-DK2) with this video
- Download STM32MP1 Starter Package Image
- The MP1 must start on OpenSTLinux before trying the next steps
-
Then Modify rebuild and reload the kernel :
- Folow 1,2 and 3 steps
⚠️ Don’t do the 4 step for the moment !⚠️
-
Configure the kernel for the CP210x driver :
-
In the linux source folder : 1.
$> make ARCH=arm menuconfig -
Make sure at the top left corner you see Linux/arm and not (x86) (If it is the case go on else source the sdk and retry)
- Go to Device Driver > USB Support
- Go to USB Serial Convert and enable it by setting a star with the space bar
- Enable “CP210x family of UART Bridge Controllers”
- Save with the name .config and leave
- Then you can follow the 4 and 5 steps on the tutorial
- Restart the MP1
- To make sure you made a good job :
- Check if the interface /dev/ttyUSB0 exists on the board when the LiDAR is connected
If it is ok you can go to the next step
- If needed change the qwerty setup to azerty
-
⚠️ You must use VI :⚠️ Mini tutorial :
Hit i to enter in insert mode
Change what you want
When you finished hit escape then type :x to leave while saving changes
-
-
Hit the icon NetDataPerfMonitor on the default MP1 screen
-
Enable the “netdata over wifi” switch
-
In /lib/systemd/network/hostpad.network
Add :
[Netwwork] Address=192.168.72.1/24
As shown here
-
Save and exit
-
Check the changes
cat /lib/systemd/network/hostpad.network
-
Add SSID and Password :
In /etc/hostapd.conf
Add :
ssid=MP1SERVER
and
wpa_passphrase=stm32mp1
As shown in the picture :
-
Save and exit
-
In /lib/systemd/system/hostpas.service add :
ExecStartPre=/sbin/ip link set wlan0 upAs shown here :
-
Save and exit
-
Enable Access Point
$>systemctl enable hostapd
And reboot
$>reboot -
Now you can connect to the access point using the SSID and the password you set up. If not troubleshoot
Make the screen in portrait mode :
-
In /etc/xdg/weston/weston.ini
Remove the lines
transform=270 #LTDC connector [output] name=DPI-1 mode=preferredAdd the following line in DSI connector part after “mode=preferred”
transform=0
-
To change the background, in the same file change the line
background-image=<PATH>
With the path of your wanted background (screen size 480x800px)
-
In the home repository
$> make help
And follow instructions !
-
Launch on the MP1
$> make all TARGET=mp1 -
Connect your PC to the wifi network generated by the MP1
-
Send the binary
$> scp bin/ACDSoft root@192.168.72.1: -
Connect to the MP1 and launch it
$> ssh root@192.168.72.1 $> ./ACDSoft
- Launch Android Studio
- Open the Android project
File>Open>NirvanApp(the folder) - Branch the Android phone to your PC in debug mode with file transfer activated
- Launch the transfer of the app by hiting Run (or Maj+F10)
- Launch NirvanApp on the phone






