Fix broken Linux ECU A flashing script (dfu-util + .hex) - #68
Merged
Merged
Conversation
Note: This bug does not exist in ProgramECU_BCD.sh.
Contributor
🔨 Build & Macro Coverage ReportDefault Builds — Hex File Sizes
Macro Coverage Build Results
Source Code Compile Coverage
Full ENABLE_ Macro Coverage Table
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
scripts/STbootloader/linux/ProgramECU_A.shcurrently fails on everyrun with:
This regressed in e34ad5f, which switched the script to pass
ECUA.hexstraight to dfu-util (dropping
--dfuse-address) and removed theECUA.binthe previous, working version relied on. dfu-util has neverbeen able to parse Intel HEX for DfuSe devices — it needs either a raw
binary +
--dfuse-address, or a.dfu-wrapped file.Fix
Convert
ECUA.hexto a raw binary withobjcopyat flash time, thenpass
--dfuse-address 0x08000000:leaveas before e34ad5f. This avoidsre-adding a binary artifact to the repo and keeps
.hexas the singlesource of truth, matching the Windows script (
STM32_Programmer_CLI)which reads
.hexnatively via its own parser.Testing
Verified end-to-end on a fresh (never-flashed) RAMN board:
0483:df11in DFU modeserial device afterwards
ProgramECU_BCD.shthen completes normallyCloses #67