How do I create firmware using STM32 Arduino framework that is usable with bootloader? As far as I understand, I need to tell linker to shift the firmware to higher addresses. How can I do that? Should I just pass some flag to linker, or there’s some option that can be added to platformio.ini? Perhaps any examples?
I’ve noticed there’s upload_protocol = dfu option that, according to builder\frameworks\arduino\maple\stm32f1.py sets appropriate linker script to offset the application to 0x8002000 address.
It apparently can be used with any bootloader, including custom. The only requirement is to fit the bootloader code in the freed ROM region. If it doesn’t fit, that file and bootloader script can be edited, though.
Does anyone know how to supply custom .ld file path to the linker to avoid editing the files supplied with PlatformIO?
I can put it into variant’s ld subfolder inside Arduino STM32 framework, but what about a subfolder inside a project folder?
Добрый день…
Я правда на 401 и тоже из Ардуино попытался прыгнуть!
.
Потом в PlatformIO перешёл в Кубе.
Не помогло , похоже вектор прерывания не устанавливается!
Как его настроить?
Начал разбираться в Путоновских скриптах, но я больше С++ иАрдуино… пока не понял…
Спасибо…если прочитаете!