KDS is referring to incorrect files when I click on "Open Declaration"

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

KDS is referring to incorrect files when I click on "Open Declaration"

跳至解决方案
1,524 次查看
priya_dwivedula
Contributor III

I modified existing KSDK libraries for MK22F512 MCU to make them work for MK22F256 MCU. I changed all the project settings, linker files, changed CPU etc. The project compiles fine and it also seems to link correct files from MK22F256 because if I try to call any function from MK22F512, I get an error or a message saying that the function is implicitly declared. This makes me think that its compiling and linking the correct files but when I right click on a function and select "Open Declaration", I see that it takes me to the files from MK22F512 folder. I tried deleting the files in MK22F512 folder and I still see that KDS takes me to an empty file named after MK22F512.

 

Please advice me on what I am doing wrong?

 

Thanks,

Priya

标签 (1)
标记 (1)
0 项奖励
回复
1 解答
1,397 次查看
BlackNight
NXP Employee
NXP Employee

Hi Priya,

if Eclipse takes you to the wrong location, then probably your Index (that's how Eclipse stores the information) is somehow wrong. I recommend that you rebuild the index to see if this fixes the problem, see Fixing the Eclipse Index | MCU on Eclipse

I hope this helps,

Erich

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,397 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Priya,

Sorry i'm confuse about  what the steps you done . And there is the MK22FN256 sdk lib , why do you porting it use

the MK22FN512 lib ? Or do you meaning porting one application project about MK22FN512 to  the chip of MK22FN256 ?

Could you please tell me how to reproduce your problem step by step , or tell me what is your aim, then i will check how

to help you .

BR

Alice

0 项奖励
回复
1,398 次查看
BlackNight
NXP Employee
NXP Employee

Hi Priya,

if Eclipse takes you to the wrong location, then probably your Index (that's how Eclipse stores the information) is somehow wrong. I recommend that you rebuild the index to see if this fixes the problem, see Fixing the Eclipse Index | MCU on Eclipse

I hope this helps,

Erich

0 项奖励
回复
1,397 次查看
priya_dwivedula
Contributor III

Thanks Erich! Rebuilding the index fixed my issue.

Regards,

Priya

0 项奖励
回复