PTAD & PTADD undeclared - Please HELP!

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

PTAD & PTADD undeclared - Please HELP!

Jump to solution
1,092 Views
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!

Labels (1)
0 Kudos
1 Solution
734 Views
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.

View solution in original post

0 Kudos
5 Replies
734 Views
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 Kudos
734 Views
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 Kudos
735 Views
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 Kudos
734 Views
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 Kudos
734 Views
bcesario
Contributor I

I can resolve Earl!

Thanks for your help!

It's working! :smileyhappy:

Best regards,

Bruno

0 Kudos