platformio.ini 965 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#
# Project Configuration File
#
# A detailed documentation with the EXAMPLES is located here:
# https://docs.platformio.org/en/latest/projectconf/index.html
#

[platformio]

default_envs = owntech_power_converter

extra_configs = src/owntech.ini

#### COMMON ENVIRONMENT DEFINITIONS ###########################################

[env]

framework = zephyr

platform = ststm32

# Serial monitor baud rate
monitor_speed = 115200

# Compiler settings
build_flags =
    -std=gnu++17
    -fsingle-precision-constant
    -Wl,-Map,memory.map

# Below flags are only valid for C++ and create warnings for C files, so we add them as
# CXXFLAGS in extra_script.
build_unflags = -Wno-register -fno-rtti
extra_scripts = zephyr/platformio-extra.py

#### BOARD-SPECIFIC DEFINITIONS ###############################################

[env:owntech_power_converter]
board = nucleo_g474re

# Supported upload protocols: mbed, stlink, jlink
upload_protocol = stlink

#debug_tool = jlink