Closed lefebvresam closed 4 years ago
Thank you for raising this detailed GitHub issue. I am now notifying our internal issue triagers. Internal Jira reference: https://jira.arm.com/browse/IOTBTOOL-869
See also my comments on: https://github.com/ARMmbed/mbed-os/pull/13011
My suggestion is to have a cli option to flash bin or hex for compatibility reasons between different boards.
Hi
Note that with the latest ST Link FW version available in https://www.st.com/en/development-tools/stsw-link007.html Hexadecimal drag and drop feature is now supported!
Regards,
I ran into this issue as well and wasted a good chunk of time figuring out why none of my changes were doing anything after updating from 6.1 on a Nucleo L432KC.
I've updated to the latest STLink FW and everything is fine now, however it would be nice if this was fixed to avoid wasting other peoples time going forward.
@MarceloSalazar This issue takes long time to understand to every one (including me...) @ARMmbed/mbed-os-tools
Actually it's still an issue for me. The latest firmware I can find for my device (from https://www.st.com/en/development-tools/stsw-link007.html) is V2.J36.M26
and .hex
support was added in V2.J37.M26
.
Thanks for taking a look at this.
Actually it's still an issue for me. The latest firmware I can find for my device (from https://www.st.com/en/development-tools/stsw-link007.html) is
V2.J36.M26
and.hex
support was added inV2.J37.M26
.
ST web page is maybe misleading... If you select "Get Software" pink button, you will get the 2.37.26 version Versions you can select are "previous" versions...
@schstm
🤦
I should pay more attention, thank you.
Maybe --flash
should use the OUTPUT_EXT parameter for deciding which image to flash? Afaik the generation of both .bin and .hex images was added some time ago, but the --flash
feature probably has some simpler logic for choosing the image.
Just commenting, did not check the code where the parsing is done.
I temporary solved this issue by doing this change:
Change line 789 of mbed-os\tools\toolchains\mbed_toolchain.py
...
# self.binary(r, elf, "{}.{}".format(stem, 'hex'))
...
By not generating the hex, the bin is used as the second choice for flashing.
Correction is on going: https://github.com/ARMmbed/mbed-os/pull/13584
PR merged, so should work in the next release. I'll close this one
After upgrading to mbed 6.2.0 and using "mbed compile --flash", both .bin and .hex files are generated, but only the hex is copied to F: (NUCLEO F091-RC board). It gives this error:
Copying the .bin file manually in F: works. Previously with mbed 5.14 I did not had this issue.