FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [March 2017 Threads] How to convert elf file to binary file that could boot from SD based on CycloneV and FreeRTOSPosted by yycolin on March 31, 2017 Hello Everyone.
I am developing a project based on Altera Cyclone V SoC RTOS Demo(http://www.freertos.org/RTOSAlteraSoCARMCortex-A9.html). That Demo has been ported successfully and debug normally. Then I try to convert elf file (RTOSDemo.elf) to binary image file which could be stored in a SD card and boot from it, but failed. Two steps I have tried.
Firstly, use tool "arm-altera-eabi-objcopy" as following.
arm-altera-eabi-objcopy -O binary RTOSDemo.elf RTOSDemo.bin
The size of file named RTOSDemo.elf is 1.85 MB, after converting,the size of RTOSDemo.bin is 3.99 GB.
Secondly, Try use tool "mkimage" as following.
mkimage -A arm -T standalone -C none -a 0x100040 -e 0 -n "Baremetal Image" -d RTOSDemo.bin main-mkimage.bin
But the shell return as follow.
D:altera15.0embeddedhost_toolsalteramkimagemkimage.exe: Can't read RTOSDemo.bin: No error
Could you please give me some suggestion? Thank you very much.
How to convert elf file to binary file that could boot from SD based on CycloneV and FreeRTOSPosted by rtel on March 31, 2017 Not really a FreeRTOS question as such (how do the docs for the Altera
tools tell you to do this?), but:
Firstly, use tool "arm-altera-eabi-objcopy" as following.
arm-altera-eabi-objcopy -O binary RTOSDemo.elf RTOSDemo.bin
The size of file named RTOSDemo.elf is 1.85 MB, after converting,the
size of RTOSDemo.bin is 3.99 GB.
I presume this is because you have a non-contiguous memory map (for
example, executable code far away from some RAM block), and the gaps
between the memory regions are just being filled with zeros.
How to convert elf file to binary file that could boot from SD based on CycloneV and FreeRTOSPosted by yycolin on April 1, 2017 Thank you for your reply.
If there is no need to use the Altera tools as above, could you please tell me how to convert the ELF file to the image file which could be stored in a SD card and boot FreeRTOS demo?
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|