BSFrance / BSFrance-stm32

Arduino core for BSFrance STM32 boards
MIT License
6 stars 4 forks source link

Arduino Linux support missing #2

Open Gruenstreifen-eV opened 5 years ago

Gruenstreifen-eV commented 5 years ago

I installed the Arduino 1.8.8 IDE for Linux (Debian scratch, 64 Bit) and installed the https://github.com/BSFrance/BSFrance-stm32/archive/master.zip as mentioned in the Readme.

The gcc-arm-none-eabi was missing, so I installed it from Debian.

I seleced my Board (LoraMx Board) and LoraM3 D F103. The example Code wont compile. Can not find {compiler.path}arm-....

In the platform.txt (/hardware/BSFrance-stm32/stm32/) some settings for linux are missing: compiler.path.linux64=/usr/bin/

With this setting the example will compile but the upload fails using dfu. java.io.IOException: Cannot run program "{path}/dfu-util": Adding: tools.dfu-utilc.path.linux64={runtime.hardware.path}/stm32/tools/linux64/dfu-util tools.dfu-utilc.path.linux={runtime.hardware.path}/stm32/tools/linux/dfu-util to the platform.txt

will guide the IDE to the right tools but than: dfu-util 0.8 dfu-util: Invalid DFU suffix signature dfu-util: A valid DFU suffix will be required in a future dfu-util release!!! No DFU capable USB device available

I am not able to upload the sketch with dfu.

sudo dfu-util -l will not show the board. Switching manually to the dfu mode (pressing reset twice) will change the display and the LED is blinking fast but the board will not be recognised as dfu device.

Any hints are appreciated.

Gruenstreifen-eV commented 5 years ago

Got it. The board will not be recognized at the USB2 ports at my Thinkpad W510. Only the USB3 port at the rear is working. lsusb -v and dfu-util -l is showing the device and the upload is working.

But the changes at platform.txt are still needed for Linux.