platformio.ini

Sun, 25 Oct 2020 16:58:38 +0100

author
David Douard <david.douard@sdf3.org>
date
Sun, 25 Oct 2020 16:58:38 +0100
changeset 29
276195d58a1d
parent 28
424d792fea4f
child 30
71be284c66b3
permissions
-rw-r--r--

Set custom_config for the F303RD

- remove "supported_form_factors": irrelevant
- rename as HP34970_FP_F303RD
- enforce HSE_XTAL clock source
- add USBDEVICE flag in device_had_add
- set ROM size to 384ko

#
# Project Configuration File
#
# A detailed documentation with the EXAMPLES is located here:
# http://docs.platformio.org/en/latest/projectconf.html
#

# A sign `#` at the beginning of the line indicates a comment
# Comment lines are ignored.

# Simple and base environment
# [env:mybaseenv]
# platform = %INSTALLED_PLATFORM_NAME_HERE%
# framework =
# board =
#
# Automatic targets - enable auto-uploading
# targets = upload

# stay on mbed 5.15 for now
[env:f446re]
platform = ststm32
framework = mbed
#platform_packages =
#    framework-mbed @ ~6.51504.0
board = nucleo_f446re
build_flags = -DHAVE_PC
#build_flags = -DHAVE_PC --verbose
#lib_compat_mode = 0
#build_flags = -DHAVE_PC -DPIO_FRAMEWORK_MBED_RTOS_PRESENT
#-DDEVICE_SPI_ASYNCH=

[env:f303re]
platform = ststm32
framework = mbed
board = nucleo_f303re

[env:fp]
platform = ststm32
framework = mbed
platform_packages = framework-mbed
board = hp34970_fp
#build_flags = -DHAVE_PC --verbose
#-DDEVICE_SPI_ASYNCH=1
board_build.mbed.ldscript = $PROJECTSRC_DIR/TARGET_STM32F303xE/device/TOOLCHAIN_GCC_ARM/STM32F303XE.ld
build_flags =
	-DHAVE_PC
    -I$PROJECTSRC_DIR/TARGET_STM32F303xE
    -I$PROJECTSRC_DIR/TARGET_STM32F303xE/device
    -I$PROJECTSRC_DIR/TARGET_STM32F303xE/TARGET_NUCLEO_F303RE

mercurial