There are two underscores missing. The correct statement has to be __asm volatile(...)
But CyLib.h should be generated code, right? @akohlsmith: Did you modify it his file? Can you try 'clean and build' to re-generate it?
Error is in generated file. But what the hack do you need the pipeline flash for? Which component gives you the error???
I found the error. the generated file is correct as-is. I had added -std=c99 to my compiler options trying to correct something *else* and that caused this error. Removing my manually-added -std=c99 allowed the file to build fine.
@Bob: there is nothing funny in this design. A couple clocks, some synchronizer blocks, FF and UDB 16-bit timers, the USB device and pins. That's it.
I have the same problem. I had the following error:
.\RolandRiegel\cyp_fat.c:505:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(cluster_t cluster_left = cluster_count; cluster_left > 0; --cluster_left, ++cluster_current)
I added the -std=c99 to the command line and this error went away. Now I have the 'asm' problem with the cache thing.
I can't say if it would help with your current problem, but if it's needed to enable a dedicated C version, you can try if -std=gnu99 will give the same error.
If this doesn't work, it would be better if you create a project archive and post it here, so we can check how to solve the error.