Add bootloader

This commit is contained in:
Valentin Dabstep 2025-05-22 18:03:43 +03:00
parent 4f42094b0e
commit 6844ca9a8d
35 changed files with 27266 additions and 13 deletions

View file

@ -18,11 +18,17 @@ upload_protocol = stlink
debug_tool = stlink
monitor_speed = 19200
monitor_parity = N
build_flags =
-DSTM32F446xx
-D HAL_CAN_MODULE_ENABLED
-D SIMPLEFOC_PWM_LOWSIDE_ACTIVE_HIGH
-Wl,-T"${platformio.packages_dir}/framework-arduinoststm32/variants/STM32F4xx/F446R(C-E)T/ldscript.ld"
-Wl,--defsym=LD_FLASH_OFFSET=0x8000
-DAPP_OFFSET=0x8000
lib_deps =
askuric/Simple FOC@^2.3.4
pazi88/STM32_CAN@^1.1.2
extra_scripts = pre:gen_compile_commands.py
extra_scripts =
post:hex_compile.py
pre:gen_compile_commands.py