PTAD & PTADD undeclared - Please HELP!

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

PTAD & PTADD undeclared - Please HELP!

ソリューションへジャンプ
3,600件の閲覧回数
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,242件の閲覧回数
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,242件の閲覧回数
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,242件の閲覧回数
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,243件の閲覧回数
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,242件の閲覧回数
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,242件の閲覧回数
bcesario
Contributor I

I can resolve Earl!

Thanks for your help!

It's working! :smileyhappy:

Best regards,

Bruno

0 件の賞賛
返信