includes for new HAL project not all there?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

includes for new HAL project not all there?

2,222件の閲覧回数
johnbaker
Contributor IV

When I create a new project in KDS I am not getting all of the include file paths that I need, especially the ones in subfolders named 'common'.  For example: "fsl_dspi_common.h" is in "C:\Freescale\KSDK_1.0.0\platform\drivers\dspi\common".  When I look at the 'subdir.mk' file in each of these folders it appears to be correct:

 

DSPI_DRIVER_DIR := $(SDK_ROOT)/platform/drivers/dspi

SOURCES += $(wildcard $(DSPI_DRIVER_DIR)/common/*.c) \

           $(wildcard $(DSPI_DRIVER_DIR)/dspi_master/src/*.c) \

           $(wildcard $(DSPI_DRIVER_DIR)/dspi_slave/src/*.c)

INCLUDES += $(DSPI_DRIVER_DIR)/common \

            $(DSPI_DRIVER_DIR)/dspi_master \

            $(DSPI_DRIVER_DIR)/dspi_slave

 

 

John Baker

ラベル(1)
0 件の賞賛
返信
3 返答(返信)

2,067件の閲覧回数
johnbaker
Contributor IV

Let me rephrase that.  They are there but the default code does not see them unless I  place a "common/" in front of it:

#include "fsl_dspi_common.h"               <-- Does NOT work

#include "common/fsl_dspi_common.h"     <-- DOES work

John

0 件の賞賛
返信

2,067件の閲覧回数
johnbaker
Contributor IV

#include "../system/interrupt/fsl_interrupt_manager.h"

I could not get "fsl_interrupt_manager.h" to work unless I typed it in as above.

0 件の賞賛
返信

2,067件の閲覧回数
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello John:

I am sorry for the time without responses.

Regarding your issues, if you want to avoid "extending" the includes like that, you need to add the necessary paths to your KDS project. For this go to Project -> Properties -> C/C++ Build -> Settings -> Cross ARM C Compiler -> Includes.

I am not sure if the next KSDK plugins will help adding those paths to the common folders automatically when creating a project. Right now you have to add them manually.

Attached you can find a guide to create a KSDK project. This guide was developed by my colleague Carlos Musich.


Regards!,
Jorge Gonzalez

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信