infineon4engineers Facebook

infineon@google+ Google+

infineon@linkedin linkedin

infineon4engi@twitter twitter

infineon@youtube youtube

+ Reply to Thread
Results 1 to 6 of 6

Thread: Include file problems on ‹Simple Main Project› in DAVE

  1. #1
    New Member New Member Noob_0815 is on a distinguished road
    Join Date
    Mar 2019
    Posts
    4
    Points
    22.5

    Include file problems on ‹Simple Main Project› in DAVE

    Dear Forum,

    unfortunately i ran into problems compiling a really basic Project. I did try to let an LED blink on an XMC4500. Therefore I created a ‹New DAVE Project› and chose ‹Simple Main Project›.
    From the generated main.c xmc_common.h is included. Somehow system_XMC4500.c is magically included also and this file tries to include <XMC4500.h> which does fail during building.
    This is not that a problem since i managed to find a file with the same name and was able to change the include statement to "../Libraries/CMSIS/Infineon/XMC4500_series/Include/XMC4500.h".

    But now in this XMC4500.h there fails a statement trying to include "core_cm4.h". Unfortunately i am not able to find any file on my system which matches this name.

    What am i doing wrong? Is there anything i forgot to install/set up?

    Thanks in advance
    Poor Noob

  2. #2
    Beginner Beginner Rengineer is on a distinguished road
    Join Date
    Oct 2018
    Posts
    7
    Points
    155
    I did what you did and it compiles OK. take a look at your project and make sure it has all the includes at the right path. Attached is a picture of my project window.Click image for larger version

Name:	project structure.JPG
Views:	1
Size:	51.3 KB
ID:	3861
    You might have to uninstall and reinstall if you don't have those include paths.

  3. #3
    New Member New Member Noob_0815 is on a distinguished road
    Join Date
    Mar 2019
    Posts
    4
    Points
    22.5

    Include file search path still defunct

    Hello,

    now i found the file i missed. It was there but the IDE didn’t find it via pressing the F3 button. And i could not find it because i am unfamiliar with this windows and powershell seems not to include find. Sorry.

    I managed to alter some failing include statements by adding relative path to the filename. But i'm stuck at xmc_scu.h including xmc_common.h. I tried several variants but neither works.

    I don’t know what messed with the include search path. Is there a way to set/fix this in the project settings? A short look at it didn’t reveal any flaws obvious to me. I don’t think that it is meant to be fixed in every single include statement throughout the compilers internal settings. A lot of the files whose path i could fix were found by the IDE but the compiler refused to use it without specifying a path.

    Click image for larger version

Name:	IncludePathFail.png
Views:	4
Size:	131.9 KB
ID:	3863

    By the way, is it supposed correct behaviour to tell ›Build Finished‹ at the bottom line when the build failed because of an fatal error. This fatal error has to be searched for throughout the output. And the error line turns red only if you click at it.

    Thanks in advance
    Puzzled Noob

  4. #4
    New Member New Member Noob_0815 is on a distinguished road
    Join Date
    Mar 2019
    Posts
    4
    Points
    22.5

    Error depends on location

    If you choose to keep the default location during the creation of the project, this error doesn’t occur. But if you choose a different location, for instance your company’s project drive mounted via SMB, you will be bitten by the nasty bug.

    So the simple solution would be to use Dave for recreational projects only and switch to another IDE for professional projects.

  5. #5

    Infineon Employee
    Infineon Employee
    jferreira will become famous soon enough
    Join Date
    Oct 2012
    Posts
    539
    Hi,

    We cannot reproduce your issue. Could you provide more details? Could you post a snapshot for the project creation dialog?

    Regards,
    Jesus
    The views expressed here are my personal opinions, have not been reviewed or authorized by Infineon and do not necessarily represent the views of Infineon.

  6. #6
    New Member New Member Noob_0815 is on a distinguished road
    Join Date
    Mar 2019
    Posts
    4
    Points
    22.5

    Build fails if project location path includes hash sign (#)

    Hello Jesus,

    for shooting the screen i created a new project which did not fail on my system too. Then i figured out, that the two projects i set up before posting this thread followed the convention of including the project number after it’s name. So i set up a fourth project including a hash and it fails again.

    So the bottom line is: The include search path is broken, if the project location path includes any hash.

    Greetings
    Enlightened Noob

+ Reply to Thread
Disclaimer

All content and materials on this site are provided “as is“. Infineon makes no warranties or representations with regard to this content and these materials of any kind, whether express or implied, including without limitation, warranties or representations of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, whether express or implied, is granted by Infineon. Use of the information on this site may require a license from a third party, or a license from Infineon.


Infineon accepts no liability for the content and materials on this site being accurate, complete or up- to-date or for the contents of external links. Infineon distances itself expressly from the contents of the linked pages, over the structure of which Infineon has no control.


Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Usage Terms of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Usage Terms of this site. Infineon reserves the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.