question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Copying hex instead of bin

See original GitHub issue

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:

...
| Subtotals                     | 90340(+0) | 544(+0) | 9712(+0) |
Total Static RAM memory (data + bss): 10256(+0) bytes
Total Flash memory (text + data): 90884(+0) bytes

Image: .\BUILD\NUCLEO_F091RC\GCC_ARM\hmipanel.bin
There is not enough space on the disk.
        0 file(s) copied.
[1595201382.32][COPY][ERR] [ret=1] Command: ['copy', u'BUILD\\NUCLEO_F091RC\\GCC_ARM\\hmipanel.hex', u'F:hmipanel.hex']
[mbed] ERROR: Unable to flash the target board connected to your system.
---

Copying the .bin file manually in F: works. Previously with mbed 5.14 I did not had this issue.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
jeromecoutantcommented, Sep 10, 2020
1reaction
jeromecoutantcommented, Sep 7, 2020

@MarceloSalazar This issue takes long time to understand to every one (including me…) @ARMmbed/mbed-os-tools

Read more comments on GitHub >

github_iconTop Results From Across the Web

Trying to build firmware gives a .hex file instead of .bin? - Reddit
I've been using VScode to try and setup the firmware for an SKR mini E3 2.0, starting from the Marlin 2.0.6 Github file...
Read more >
Copy contents of a binary file as hex characters - Super User
In TextPad 5.3, the hex mode does not have any copy option. In some other tools, if I copy in hex mode and...
Read more >
How can I copy hex from Visual Studio's binary editor?
How can I copy-and-paste the hex rendering, rather than the byte values themselves, from Visual Studio's Binary Editor to another program (e.g. Notepad)?....
Read more >
Basic clarifications about .hex and .bin file
hex file into . bin file with hex2bin (as suggested in the first answer), then I've run the command "strings file. bin", and...
Read more >
How to create bin and hex file via VS code full and final
Hi, guys! For how-to compline via VS code. The video before may not clear.Now we upload this new video. Hope this can give...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found