I have created a new project based on the ThreeCore_SC589 example project. It's basically the same as the example project with files organized a bit differently in the project folders and all the relative paths adjusted to be correct. I've also renamed the projects. I have not made any changes to the source files yet - they are all identical to the example project source files.
I believe all of the files and project settings are correct - I've compared them carefully to settings the example project opened properly through the link on the Welcome page.
Furthermore, I can successfully build and even more importantly debug/run the code successfully. It functions exactly as it should during a debugging session - same as it functions when debugging the example project opened through the Welcome page.
The problem: Sometimes CCES indicates errors in the source files for Core0 related to ADI_CORE_SHARC0 and ADI_CORE_SHARC1 macros. Here's a screenshot of the ThreeCore_Core0.c file:
If I right-click on either of these macros and click on "Open Declaration" I get this:
The first entry is correct according to the Includes for the _Core0 project where none of the includes point to the SHARC folder:
The second entry which points to .../SHARC/include/sys/adi_core.h I believe is incorrect. I cannot find any references, links, include statements, or anything in the _Core0 project which point to this file or anywhere in the .../SHARC/ folder or its sub-folders.
However If I look at the _Core1 or _Core2 projects I see that they do point to .../SHARC/ folder or its sub-folders, here are the includes for _Core1 project:
... _Core2 includes are the same.
Because this project builds (even with these errors) and because I can debug successfully after a clean build, I know the project must be configured correctly.
So why is CCES displaying these errors and why when I click Go to Definition in the _Core0 project does it bring up two files, one being in the SHARC folders which are not included in the _Core0 project? Is CCES somehow confused because these are linked projects? (ie: for three cores)
And why does CCES sometimes display these errors and sometimes not? (ie: behavior is inconsistent)
How can I fix this problem so that CCES no longer displays the errors?
I'm happy to send the entire project in for analysis if that would help.
Hi ,Can you please confirm whether you are facing semantic errors.If so, This errors are falsely reported in the problems view and in editor.Can you please confirm that executable file generated successfully, after the project builds.You can workaround this by Close and reopen the project in IDDE Project Explorer to make the errors go away.orUnchecking "Symbol is not resolved" checkbox in "Syntax and Semantic Errors" of "Code Analysis", in Preferences -> C/C++.Regards,Nishanthi.V
I have confirmed that the project builds and exectuable file is generated successfully.
As you suggested, I unchecked "Symbol is not resolved" checkbox in "Syntax and Semantic Errors" of "Code Analysis", in Preferences -> C/C++ and the errors disappeared.
So it seems I am facing semantic errors as you mentioned.
It would be nice someday to re-enable the "Symbol is not resolved" error checking, is there some plan to fix or improve CCES related to this kind of issue?
Hi Lance,We have logged this issue in our bug tracking database which will be fixed in a future release of CCES.Regards,Nishanthi.V
hello， when i open the example Button_LED_GPIO_Polled_SC573_SHARC in CCES, it reports error,when i compile the project, in the project , it doesn't have linclude,
'Building file: ../system/sru/sru_config.c''Invoking: CrossCore ARM Bare Metal C Compiler'arm-none-eabi-gcc -g -gdwarf-2 -ffunction-sections -fdata-sections -D_DEBUG -DCORE0 -DADI_MCAPI @includes-462ed6b5cbc8152273b6f07ce26778a3.txt -Wall -c -mproc=ADSP-SC573 -msi-revision=any -MMD -MP -MF"system/sru/sru_config.d" -o "system/sru/sru_config.o" "../system/sru/sru_config.c"arm-none-eabi-gcc: error: CreateProcess: No such file or directorymake: *** [system/sru/sru_config.o] Error 1
do you know how to solve this problem?
I don't know how to help on your question, but if you create a new thread using the "Ask a Question" button at the top level o the forum, I think you will have better chance of getting a response.