6474 - MachXO2: In Mico8, I got this error when building:../LM8_LEDTest.c:21: error: `gpio_LED' undeclared (first use in this function) Where is that variable supposed to be defined? How can I get this to build?
The procedure 2.a in the Mico8 tutorial (To add the GPIO to the platform) should address your concern.
In the Instance Name box, change the name of the GPIO to LED. For this tutorial, the GPIO block must be named LED. Failure to name the GPIO block LED will cause mismatches in the FPGA I/O pin names.
The example C source code uses this instance name to access the GPIO registers.
It should process and you might then experience something like this:
makefile:123: recipe for target '< >.elf' failed
The issue is caused by not having enough memory for the executable. You will either need to increase the memory for the Mico8 or optimized the code (i.e. using -0s, using Assembly or removing printf).
In addition, we are moving toward Lattice Propel which is the newer version of Mico8. Mico software is outdated with limited to no-support already. In line this, we recommend that you explore about Lattice Propel which is the most recent development that Lattice can offer. To know more about Lattice Propel please visit this webpage: https://www.latticesemi.com/en/Products/DesignSoftwareAndIP/FPGAandLDS/LatticePropel
Related Articles
4419 - Mico System Builder: error occurs while debugging the C code: "Malformed response to offset query, timeout"
Description: While debugging the C code in Mico System Builder, the following error can occur: "Malformed response to offset query, timeout". Solution: To resolve this, users can try changing the TCK Low pulse width delay value under the Hardware ...
958 - Lattice Mico System: Can user deploy LatticeMico32 code to a non-volatile memory with the JTAG UART active?
Lattice Mico System: The LatticeMico32 Software Project Environment (SPE) provides a framework for interfacing to functions defined in the stdio.h library. Functions like fopen, fread, printf, and fclose are, by default, tied to the JTAG UART. The ...
7268 - Propel: What is the workaround for the OpenOCD Debugger Error - Err: can not found the device from device family database, use default value to access this device?
Description: When you perform an OpenOCD debug session with the MachXO3LF Evaluation Kit, you may encounter the error message below, where the debugger is unable to identify the device family from the database. Device List: LCMXO3LF-9400C:0x612BE043 ...
7008 - LatticeMicoSystem: Error:"'asm' underclared"
Description: When compiling a design in Lattice Mico System that includes the "asm" syntax, below error will be encountered: Error:"'asm' underclared" Solution: There are two possible solutions: 1. Use the syntax as "__asm__" instead of "asm" and add ...
1441 - LatticeMicoSystem: Upon starting LatticeMico8 compiler why do I receive error message "Cannot find Cygwin.dll file" ?
The error message above indicates that the path for "Cygwin.dll" is either not set or is incorrect. To fix this issue appropriate settings must be done in the System Properties of your computer. To guide you in setting up the System Properties ...