For example adding a platform.local.txt with:
tools.stm32CubeProg.upload.pattern="{path}/{cmd}" 1{upload.protocol} "{build.path}/{build.project_name}.bin" {upload.options}
will allow to erase all sectors before download.
Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
* Update dfu-util to v0.8
Updating dfu-util and ensuring consistency across platforms.
Windows was v0.1, now is v0.8 - structure changed to match other platforms.
Linux was v0.8, no change needed.
Linux64 was v0.7, updated to v0.8.
OSX was v0.8, no change needed.
Previous update has replaced the 32 bits (PE32) version
by a 64 bits one (PE32+).
To avoid any issue for user running on 32 bits OS,
use the 32 bits version per default.
The 64 bits version can be used and is named "stm32flash64.exe"
Those binaries are now stored in "stm32flash/" directory
in order to be aligned with other host OS structure.
Serial upload has been updated and cleaned.
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
The same stm32flash source code was provided for each targeted host.
Source code is now provided here:
https://github.com/stm32duino/stm32flash
Tag: Arduino_STM32_0.9
Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
Depending of the board revision, mount point name could be different.
Ex for: STM32F030R8 with a rev 1 node name is : "NUCLEO"
while it is "NODE_F030R8" for rev c
Ex: in boards.txt we could have:
Nucleo_64.menu.Nucleo_64_board.NUCLEO_F030R8.node="NODE_F030R8,NUCLEO"
Fix#6
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>