diff --git a/README.md b/README.md index d8c8bd9..b4c7109 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,26 @@ You can now proceed with the Arduino core installation : *Note : Documents / Arduino is the default location of user fodlder set by Arduino IDE, if you use another location the principle is the same. If no Hardware folder is present in Documents / Arduino, create it, and move the BSFrance-stm32 repository inside. You might want to rename the unzipped directory BSFRance-stm32.* +### Cross compiler + +You have to install the gcc-arm-none-eabi cross compiler for your OS. + + - Linux: + + apt-get install gcc-arm-none-eabi libnewlib-arm-none-eabi + + - Windows: + +https://github.com/BSFrance/BSFrance-stm32/issues/1 + +> I copied the contents of gcc-arm-none-eabi-7-2017-q4-major-win32.zip from https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads to here: \hardware\BSFrance-stm32-master\stm32\tools\win\gcc + +> Next was about the dfu-util-static which was missing: +> Downloaded it: http://dfu-util.sourceforge.net/ and put the dfu-util-static.exe here: \hardware\BSFrance-stm32-master\stm32\tools\win + + - Mac: +> For Mac, I also had to replace the whole gcc folder with the content gcc-arm-none-eabi-7-2017-q4-major-mac.tar.bz2 and install the dfu-utils with brew : brew install libusb and then brew install dfu-util + ### USB serial port The LoRaMx boards are providing a serial port via the native USB interface, this serial port can be used for debug or communication purpose, it is also used by Arduino to provide automatic upload. diff --git a/stm32/platform.txt b/stm32/platform.txt index a9d1603..9800d81 100755 --- a/stm32/platform.txt +++ b/stm32/platform.txt @@ -15,7 +15,7 @@ compiler.warning_flags.all=-Wall -Wextra #compiler.path={runtime.tools.arm-none-eabi-gcc.path}/bin/ compiler.path.windows={runtime.hardware.path}/stm32/tools/win/gcc/bin/ compiler.path.macosx={runtime.hardware.path}/stm32/tools/macosx/gcc/bin/ - +compiler.path.linux64=/usr/bin/ compiler.S.cmd=arm-none-eabi-gcc compiler.c.cmd=arm-none-eabi-gcc @@ -128,6 +128,8 @@ tools.dfu-util.cmd=dfu-util tools.dfu-util.cmd.windows=dfu-util-static tools.dfu-util.path.macosx={runtime.hardware.path}/stm32/tools/macosx/dfu-util tools.dfu-util.path.windows={runtime.hardware.path}/stm32/tools/win/ +tools.dfu-util.path.linux64={runtime.hardware.path}/stm32/tools/linux64/dfu-util +tools.dfu-util.path.linux={runtime.hardware.path}/stm32/tools/linux64/dfu-util tools.dfu-util.upload.params.verbose=-v tools.dfu-util.upload.params.quiet=n #tools.dfu-util.upload.pattern="{path}/{cmd}" "{path}" {upload.usbID} {upload.altID} {upload.mem_start} "{build.path}/{build.project_name}.bin" @@ -138,6 +140,8 @@ tools.dfu-utilc.cmd=dfu-util tools.dfu-utilc.cmd.windows=dfu-util-static tools.dfu-utilc.path.macosx={runtime.hardware.path}/stm32/tools/macosx/dfu-util tools.dfu-utilc.path.windows={runtime.hardware.path}/stm32/tools/win/ +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 tools.dfu-utilc.upload.params.verbose=-v tools.dfu-utilc.upload.params.quiet=n #tools.dfu-utilc.upload.pattern="{path}/{cmd}" "{path}" {upload.usbID} {upload.altID} {upload.mem_start} "{build.path}/{build.project_name}.bin"