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

Bugfix https://github.com/BSFrance/BSFrance-stm32/issues/2 #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 5 additions & 1 deletion stm32/platform.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand All @@ -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"
Expand Down