Difference between revisions of "STM32 arduino setup"

From Tom's notes
Jump to navigation Jump to search
 
Line 10: Line 10:
  
 
Installing dfu-utils: sudo apt install dfu-util
 
Installing dfu-utils: sudo apt install dfu-util
 +
 +
Add /etc/udev/rules.d/45-maple.rules
 +
[code]
 +
ATTRS{idProduct}=="1001", ATTRS{idVendor}=="0110", MODE="664", GROUP="uucp"
 +
ATTRS{idProduct}=="1002", ATTRS{idVendor}=="0110", MODE="664", GROUP="uucp"
 +
ATTRS{idProduct}=="0003", ATTRS{idVendor}=="1eaf", MODE="664", GROUP="uucp" SYMLINK+="maple", ENV{ID_MM_DEVICE_IGNORE}="1"
 +
ATTRS{idProduct}=="0004", ATTRS{idVendor}=="1eaf", MODE="664", GROUP="uucp" SYMLINK+="maple", ENV{ID_MM_DEVICE_IGNORE}="1"
 +
[/code]
 +
 +
Upload command:
 +
./maple_upload maple 2 1EAF:0003 ./XmasTReeWS2812b.ino.bin
 +
 +
Modify maple_upload to set delay from 750ms to 1500ms for upload-reset

Latest revision as of 01:37, 28 January 2020

Github resources (board manager):

https://github.com/stm32duino/Arduino_Core_STM32

General github link: https://github.com/stm32duino/


Raspberry Pi stuff

https://github.com/koendv/stm32duino-raspberrypi

Installing dfu-utils: sudo apt install dfu-util

Add /etc/udev/rules.d/45-maple.rules [code] ATTRS{idProduct}=="1001", ATTRS{idVendor}=="0110", MODE="664", GROUP="uucp" ATTRS{idProduct}=="1002", ATTRS{idVendor}=="0110", MODE="664", GROUP="uucp" ATTRS{idProduct}=="0003", ATTRS{idVendor}=="1eaf", MODE="664", GROUP="uucp" SYMLINK+="maple", ENV{ID_MM_DEVICE_IGNORE}="1" ATTRS{idProduct}=="0004", ATTRS{idVendor}=="1eaf", MODE="664", GROUP="uucp" SYMLINK+="maple", ENV{ID_MM_DEVICE_IGNORE}="1" [/code]

Upload command: ./maple_upload maple 2 1EAF:0003 ./XmasTReeWS2812b.ino.bin

Modify maple_upload to set delay from 750ms to 1500ms for upload-reset