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.

Objcopy conversion fails

See original GitHub issue

The objcopy fails. Running the command from directly from Command Prompt results in error:

>arm-none-eabi-objcopy -v -I binary -O ihex -B arm C:\Users\<USER>\pyocd\binaries\<bin_file> c:\Temp\<elf_file>
copy from C:\Users\<USER>\pyocd\binaries\<binFile> [binary] to c:\Temp\<elfFile> [ihex]
arm-none-eabi-objcopy: c:\Temp\<elfFile> 64-bit address 0x4b4fa300000000 out of range for Intel Hex file
arm-none-eabi-objcopy:c:\Temp\test.elf: bad value

OS: Windows 10 GNU tools: 8-2018-q4-major

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
flitcommented, Mar 5, 2019

Fyi, the GNU MCU Eclipse ARM Embedded GCC toolchain (based on Arm’s release) has a fix for this bug: https://github.com/gnu-mcu-eclipse/arm-none-eabi-gcc/releases/tag/v8.2.1-1.2

Also, seems there was an existing bug for the toolchain: https://bugs.launchpad.net/gcc-arm-embedded/+bug/1810274

0reactions
flitcommented, Mar 4, 2019

Bug reported on the GNU Arm Embedded toolchain: Bug #1818578

Read more comments on GitHub >

github_iconTop Results From Across the Web

Objcopy conversion fails · Issue #557 · pyocd ...
The objcopy fails. Running the command from directly from Command Prompt results in error: >arm-none-eabi-objcopy -v -I binary -O ihex -B arm C ......
Read more >
elf - how to avoid objcopy blowing up the file?
I would try current release of binutils (version 2.28) first -- there is a chance whatever bug you are hitting has already been...
Read more >
Objcopy to convert binary file to object file for Cortex-M4
I'm trying to use the objcopy utility for ARM to convert a binary ... ld: error: Source object <output-object-file>.o has EABI version 0, ......
Read more >
An error message occurs when I attempt to convert an ".elf ...
When I attempt to convert an ".elf" file to a binary file using mb-objcopy.exe, the following error message occurs and a corrupt output ......
Read more >
No binary output from objcopy - Compilers and Libraries ...
I have succeeded in outputting an elf image, but failed with converting it to a bin with the arm-none-eabi-objcopy tool.
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