Hello! I try to build example ported rom Kail project for STM32F407ZGT6 devboard.
my ini file is:
[env:black_f407zg]
platform = ststm32
board = black_f407zg
framework = cmsis
board_build.mcu = stm32f407zgt6
board_build.f_cpu = 168000000L
debug_tool = stlink
upload_port = stlink
build_flags =
-DHSE_VALUE=8000000
-DUSE_STDPERIPH_DRIVER
-DSTM32F40XX
-DSTM32F40_41xxx
-DSTM32F407xx
-O0
-Wl,-Map,output.map
build_type = debug
I have given from example files:
startup_stm32f407xx.s system_stm32f4xx.c stm32f4xx.h e.t.c
I found how to force PlatformIO use my stm32f4xx.h but files startup_stm32f407xx.s system_stm32f4xx.c always takes from framework folders .platformio\packages\framework-cmsis-stm32f4 and I got not functional project.
How I can force PlatformIO use my startup files?
PS
I see in the latest version system_stm32f4xx.c in framefork missnig core clock init routine.
I try use self routine but it take wrong clocking freq…