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

add std=gnu99 pio build flag #4

Merged
merged 2 commits into from
Mar 29, 2018
Merged
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
6 changes: 4 additions & 2 deletions dBC_txshield_demo/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ env_default = stm32f303-dev
# Specify flags/variables commmon to all enviroments
# PlatfomIO common variables docs: http://docs.platformio.org/en/latest/projectconf/dynamic_variables.html
# PlatfomIO build_flags docs: http://docs.platformio.org/en/latest/projectconf/section_env_build.html
debug_flags = -D DEBUG=1
build_flags = -Wl,-u_printf_float
monitor_baud = 115200
debug_flags = -D DEBUG=1
build_flags =
-Wl,-u_printf_float
-D std=gnu99

# Dev build enviroment (default)
# $ pio run -t upload
Expand Down
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ To download this repo, compile and upload with platformIO:

git clone https://github.com/TrystanLea/STM32Dev.git
cd STM32Dev/STM02
sudo pio run -t upload
pio run -t upload

To view serial output:

pio device monitor
pio device monitor

## Option 2: Using makefile

Expand Down