Knowledge Base Article
Why do I get the error "error: macro names must be identifiers" when compiling my Nios II standalone Board Support Package?
Description
The GNU compiler tools do not allow preprocessor identifiers that start with a number. This issue can be seen when the user creates a peripheral in the Qsys GUI and gives it a name that starts with a number. This results in macro functions that fail when parsed by the GNU preprocessor.
To resolve this issue, rename the peripherals within your system to start with a letter. Generation of the standalone Board Support Package (BSP) should then not fail with this error.
Updated 3 months ago
Version 3.0No CommentsBe the first to comment