PTAD & PTADD undeclared - Please HELP!

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

PTAD & PTADD undeclared - Please HELP!

跳至解决方案
3,519 次查看
bcesario
Contributor I

Hello!

My name is Bruno.

I am designing a data logger for a specific application with my FRDM-K64F in Ubuntu 14.04.

I have everything set up but when I compile my project, I the following errors appear in the header Clock1.h SPI1 component: GenericSWSPI:

'PTAD_PTAD0' undeclared (first use in esta function) Clock1.h / Prueba_SD / Generated_Code line 170 C / C ++ Problem

'PTADD_PTADD0' undeclared (first use in esta function) Clock1.h / Prueba_SD / Generated_Code line 125 C / C ++ Problem
make: *** [Generated_Code / Clock1.o] Error 1 Prueba_SD C / C ++ Problem

 

Here is a snapshot:

 

54366_54366.pngCaptura de pantalla de 2015-07-23 12_13_23.png

Please if you could help would be very grateful!

Thank You!

标签 (1)
0 项奖励
回复
1 解答
3,161 次查看
EarlOrlando
Senior Contributor II

Hello Bruno,

Please be sure that in the step where you choose the MCU the chosen option is the MK64FN1M0xxx12. Could you please confirm that you chose that option?

https://mcuoneclipse.files.wordpress.com/2014/05/mk64fn1m0xxx12.png

Best regards,

Earl.

在原帖中查看解决方案

0 项奖励
回复
5 回复数
3,161 次查看
EarlOrlando
Senior Contributor II

Hello Bruno,

The macro PTAD_PTAD0 is undeclared because it register does not exist in the kinetis K64F, it register is for 8-bit MUCs. Did you generate that code in the file Clock1.h or it was PEx? Was your K64F project ported from one of another MCU?

Best regards,

Earl.

0 项奖励
回复
3,161 次查看
bcesario
Contributor I

Hello Earl!

Now I understand a little better about because it's appear in my errors. The code in the file Clock1.h was generate for PEx adding components through "Component Library".

I was following the steps of this project example, but I have something wrong because I do not get the same result:

Tutorial: Data Logger with the FRDM-K64F Board | MCU on Eclipse

I wait your answer!

Thanks,

Bruno

0 项奖励
回复
3,162 次查看
EarlOrlando
Senior Contributor II

Hello Bruno,

Please be sure that in the step where you choose the MCU the chosen option is the MK64FN1M0xxx12. Could you please confirm that you chose that option?

https://mcuoneclipse.files.wordpress.com/2014/05/mk64fn1m0xxx12.png

Best regards,

Earl.

0 项奖励
回复
3,161 次查看
bcesario
Contributor I

Earl,

I create a Kinetis Project, where I choose the FRDM-K64F board, not the MCU:

Captura de pantalla de 2015-07-23 18_54_27.png

And continue with example that I tell you.

I import components *.PEupd and use them, maybe here is my error. Did you see?

Captura de pantalla de 2015-07-23 18_58_40.png

I so confuse...

0 项奖励
回复
3,161 次查看
bcesario
Contributor I

I can resolve Earl!

Thanks for your help!

It's working! :smileyhappy:

Best regards,

Bruno

0 项奖励
回复