1273 - How can I generate an Intel Hex, or an SREC file from the LatticeMico32 ELF file?
The LatticeMico32 C/C++ Software Project Environment (SPE) menu allows the compiled C/C++ code to be deployed to on-chip Embedded Block RAM (EBR), or to parallel Flash memory. There is a command line tool that is run in the background that extracts the data from the ELF output. The program is called lm32-elf-objcopy. The lm32-elf-objcopy executable is capable of translating the ELF format into multiple different forms. The objcopy executable is a component of the GNU binutils package. It is documented as part of the GNU binutils toolset. Some example commands:
- Create an Intel Hex image of the LM32 ELF data
lm32-elf-objcopy -I elf32-lm32 -O ihex yourcode.elf yourcode.mcs
- Create a SREC image
lm32-elf-objcopy -I elf32-lm32 -O srec yourcode.elf yourcode.s0
- Extract just the boot segment and store it as binary
lm32-elf-objcopy -I elf32-lm32 -O binary --only-section .boot yourcode.elf yourboot.bin
Use the --info switch to get information about the supported memory formats, and use --help to get general command line assistance.
Related Articles
7449 - Timer/Counter IP Core v1.3.0: Why Timer/Counter does not generate interrupt (IRQ)?
Description: Due to a known issue in Timer/Counter IP Core v1.3.0, user may observed that interrupt is not generated during counter timeout. Solution: To workaround this issue, please revert back to Timer/Counter IP Core v1.2.2. This is scheduled to ...
How to enable DDR3 SDRAM Controller IP for Certus-NX Devices Golden System Reference Design
Description The article provides detailed instructions and configurations for integrating DDR3 SDRAM Controller IP into a Certus-NX Versa Evaluation Board system design. It covers clock constraints, FPGA IO location settings, IP configurations, ...
1138 - Mico32: How to compile and link the Mico32 executable code to be either position-independent or relocatable?
Because the Mico32 compiler does not support the option to generate position-independent code, such as using only relative branch instructions for all code branching, the compiled code will not be position-independent, and it cannot be placed to any ...
1272 - Mico32: How do I reestablish access to the LatticeMico32 debugger without rebooting?
The LatticeMico32 debugger is accessed using the Lattice USB download cable. Other Lattice tools like ispVM System, Reveal, and Orcastra also use the USB download cable. During development it is common to build and download new FPGA bitstreams. New ...
1258 - Mico32: I updated my LatticeMico32 project after installing ispLEVER 8.1SP1 and now it doesn't work. What happened to my platform and how do I get it to work again?
The LatticeMico32 System Builder software has, from its inception, provided a set of components that provide industry standard interface functions. Four of these components were updated in ispLEVER 8.1SP1. The four components that changed are: RS232 ...