Missing #include "GPIO_PDD.h" from Generated Code

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

Missing #include "GPIO_PDD.h" from Generated Code

ソリューションへジャンプ
2,446件の閲覧回数
superguys
Contributor I

I am using the PE stand-alone version 10.0.0, see attached image.

I modified the helloworld example for arm in the LK25SC projects to include I2C.

I then generated the code and updated the project in Keil MDK.

When I try to compile I get the following error:

.\Generated_Code\Blue_LED.h(53): error:  #5: cannot open source input file "GPIO_PDD.h": No such file or directory

I searched the folders of the project and I can't find the file.

When I diffed ".\Generated_Code\Blue_LED.h" I see the following: (See attached image)

  GPIOD_PDDR &= (uint32_t)~0x02UL;    from example

has changed to

GPIOD_PDDR &= (uint32_t)~(uint32_t)(GPIO_PDDR_PDD(0x02));   when generated.

Am I missing a setting in my code generation or do I need to update?

0 件の賞賛
1 解決策
889件の閲覧回数
vfilip
NXP Employee
NXP Employee

Hello,

from the description seems that you didn´t set properly the path to the PDD files. Please check that you have the corresponding file on your disc and also in the compiler paths.

{YOUR INSTALLATION}\MCU\ProcessorExpert\lib\Kinetis\pdd\inc\GPIO_PDD.h

best regards

Vojtech Filip

Processor Expert Support Team


元の投稿で解決策を見る

0 件の賞賛
2 返答(返信)
890件の閲覧回数
vfilip
NXP Employee
NXP Employee

Hello,

from the description seems that you didn´t set properly the path to the PDD files. Please check that you have the corresponding file on your disc and also in the compiler paths.

{YOUR INSTALLATION}\MCU\ProcessorExpert\lib\Kinetis\pdd\inc\GPIO_PDD.h

best regards

Vojtech Filip

Processor Expert Support Team


0 件の賞賛
889件の閲覧回数
superguys
Contributor I

Thank you for the assistance.

Isaac

0 件の賞賛