Sun, 25 Oct 2020 17:02:53 +0100
Update the custom target HP34970_FP_303RD
update the platformio.ini:
remove unused flags, and configure so it uses includes from the project's root
directory (in TARGET_HP34970_FP_F303RD) so these .h/.c files do not conflict
when compiling for other targets.
Add a TARGET_HP34970_FR_F303RD/ for target specific headers/linker files.
Add a src/TARGET_HP34970_FR_F303RD/ for c files (protected by '#if defined'
statments).
# # 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 board = hp34970_fp_f303rd board_build.mbed.ldscript = $PROJECTSRC_DIR/../TARGET_HP34970_FP_F303RD/STM32F303XE.ld build_flags = -DHAVE_PC -I$PROJECTSRC_DIR/../TARGET_HP34970_FP_F303RD debug_tool = stlink upload_protocol = dfu