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:
Please if you could help would be very grateful!
Thank You!
Solved! Go to Solution.
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?
Best regards,
Earl.
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.
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
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?
Best regards,
Earl.
Earl,
I create a Kinetis Project, where I choose the FRDM-K64F board, not the MCU:
And continue with example that I tell you.
I import components *.PEupd and use them, maybe here is my error. Did you see?
I so confuse...
I can resolve Earl!
Thanks for your help!
It's working! :smileyhappy:
Best regards,
Bruno