WinARM. Create bin-file problem

Guest #1171974
Rate this post
• ▲ useful
▼ not useful
From the objcopy manual
http://www.gnu.org/software/binutils/manual/html_chapter/binutils_3.html

"objcopy can be used to generate a raw binary file by using an output
target of `binary' (e.g., use `-O binary'). When objcopy generates a raw
binary file, it will essentially produce a memory dump of the contents
of the input object file. All symbols and relocation information will be
discarded. The memory dump will start at the load address of the lowest
section copied into the output file.

When generating an S-record or a raw binary file, it may be helpful to
use `-S' to remove sections containing debugging information. In some
cases `-R' will be useful to remove sections which contain information
that is not needed by the binary file."

1/ Check your source (assembler listing, linker control script) for the
lowest load address and the highest load address. Seems there is a 512
MB address space used.

2/ Try the -S and the -R options.
Guest #1171975
Rate this post
• ▲ useful
▼ not useful
Thanks, Stefan.

Looks like problem is in my code.

When i remove any function from my source code, i get correct code size.
When code size reach some limit, linker insert some variable at address
0x0. (i work with str7 microcontroller which have rom at 0x40000000).

Possible, its because friday evening:)

Reply

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.