Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arduino Linux support missing #2

Open
Gruenstreifen-eV opened this issue Feb 17, 2019 · 1 comment
Open

Arduino Linux support missing #2

Gruenstreifen-eV opened this issue Feb 17, 2019 · 1 comment

Comments

@Gruenstreifen-eV
Copy link

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 (<Arduino_Path>/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
Copy link
Author

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.

Gruenstreifen-eV pushed a commit to Gruenstreifen-eV/BSFrance-stm32 that referenced this issue Feb 18, 2019
Add Path for Linux. Addapt README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants