Sensorik webapp gathering and displaying sensor data
- Make sure to have python3 with venv installed
- Run
source venv/bin/activate
andpip install -r requirements.txt
- Install the latest realease of dfu-util
- Install the ARM compiller
gcc-arm-none-eabi
if you are on Debian or install it from the sources - Create a
auth.py
file withSSID
andPASS
set as constants to properly configure the access point
The previous steps have to be actually reproduced on WSL in case you want to "freeze" your board on Windows:
In case you are running this one build tool on Windows, the following supplementary steps are necessary:
- Install WSL 2
- Setup your favourite distribution (that can run the setup section from above and preferably Debian)
- Install https://github.com/dorssel/usbipd-win/releases on your Windows client
- List all devices and find your H7 board's device ID (generally marked as a
COM
port) on Windows withusbipd list
on a priviledged prompt - Permantenly bind your device to your default running distro through
usbipd bind -f --busid $YOUR_DEVICE_ID
also on a priviledged prompt - Connect your device on an unpriviledged prompt (to be able to access the regular's user default distro) with
usbipd wsl attach -d $YOUR_DISTRO --busid $YOUR_DEVICE_ID
- Make sure
lsusb
is installed on your disto
If you have troubles connecting to your board, make sure your user is part of the ``ttyor
dialout` group or appropriate yourself the `/dev/ttyACMX` device with `# chown $USER:$USER /dev/ttyACMX`.
- run
deploy.sh
to deploy the current python code to your board - run
freeze.sh
to flash the latest firmware with your libraries
You may check whenever the board is properly connected by looking for the /dev/ttyACMX
device (whereby X is 0, 1 or something else lol)
- Download the latest firmware from (here)[https://docs.arduino.cc/micropython/]
- Flash the firmware as root with
dfu-util -a 0 -d 0x2341:0x035b -D {firmware.dfu}