ProffieBoard Setup - profezzorn/ProffieOS GitHub Wiki
Arduino Plugin for Proffieboard
- Download and install the Arduino IDE (version v1.6.19 or later)
- Start the Arduino IDE
- Go into Preferences
- Add
https://profezzorn.github.io/arduino-proffieboard/package_proffieboard_index.json
as an "Additional Board Manager URL" - Open Arduino menu Tools->Board->Boards Manager and type "Proffie" in the search box. Install the latest version "Proffieboard Plugin"
- Select your board version from Arduino menu Tools->Board->Proffieboard-> menu
- Set Tools->DOSFS: to "SDCARD (SPI)". For Proffieboard V3, choose "SDCARD (SDIO High Speed)"
- Download Zadig
- Plugin the Proffieboard and check Arduino menu Tools->Port for a COM or that says (Proffieboard).
- If it's there, open Tools->Serial Monitor and type
RebootDFU
and hit return (or click the "Send" button). - If it's NOT there, you'll need to use the onboard buttons. Press and hold BOOT, press and release RESET, then release BOOT.
- Let Windows finish searching for drivers
- Start
Zadig
- Select
Options -> List All Devices
- Select
STM32 BOOTLOADER
from the device dropdown - Verify that the USB ID is
0483 df11
, if it is not, do not proceed! - Select
WinUSB (v6.1.7600.16385)
as new driver - Click
Install Driver
orReplace Driver
- At this point, you can either do step 11 below, or:
- just hit upload in Arduino with a known good config file declared (default_proffieboard_config.h is a good choice) even though the board does not show up on Arduino menu Tools>Port (it's still in Bootloader mode).
- After upload is successful (1-100% progress bar and "done uploading" showing) the board should appear under Tools->Port as (Proffieboard).
- Power off the board by unplugging USB and killing battery power. When reconnected, the board should appear under Tools->Port as (Proffieboard).
- Go to ~/AppData/Local/Arduino15/packages/profezzorn/hardware/stm32l4/
<VERSION>
/drivers/windows - Right-click on
dpinst_x86.exe
(32 bit Windows) ordpinst_amd64.exe
(64 bit Windows) and selectRun as administrator
- Click on
Install this driver software anyway
at theWindows Security
popup as the driver is unsigned
- Go to ~/.arduino15/packages/profezzorn/hardware/stm32l4/
<VERSION>
/drivers/linux/ - sudo cp *.rules /etc/udev/rules.d
- reboot
Look at the bottom secton of the arduino program. The progress of the upload will show in red text. Unfortunately arduino will not scroll down automatically as uploads are taking place, so if you want to see how it's doing you have to keep scrolling down while it's working.
Sometimes a faulty sketch can render the normal USB Serial based integration into the Arduindo IDE not working. In this case plugin the Proffieboard and toggle the RESET button while holding down the BOOT button and program a known to be working sketch to go ack to a working USB Serial setup.
Go to the control panel and click on Bluetooth & other devices. It should either show "Proffieboard" or "STM32 BOOTLOADER". If you hold BOOT and click RESET, it should show "STM32 BOOTLOADER". If neither show up, try a different USB port or cable.
Running sudo tail -f /var/log/kern.log
will show you when things connect and disconnect, the lsusb command is also helpful.