Keywords: XPS
When I select the option to "generate libraries" for my project in XPS, the following error occurs:
"ERROR:Portability:90 - Command line error: Switch "-executable" is not allowed"
The LibGen command line contains the "-executable" switch, and this error indicates that this switch is not valid. However, the tools are placing this command in the command line and then issuing this error. Why does this occur?
This problem is caused by using the same name for both the software project and the processor instance name in the XPS project; doing so creates a LibGen command line similar to the following:
libgen -mhs system.mhs -p xc4vfx12ff668-10 -executable cpu1 demoApp.mss
where cpu1 is the name for both the software project and the processor instance.
In the MHS file:
PARAMETER INSTANCE = CPU1
In the MSS file:
PARAMETER PROC_INSTANCE = CPU1 (for OS)
:
:
PARAMETER HW_INSTANCE = CPU1 (for processor)
To work around this problem, change the processor instance name by modifying the ".mss" and ".mhs" files or renaming it in the System Assembly view.