Hi,
I'm using the evaluation board TWR-K60F120M and I try to start from creating a project with source codes within the "KINETIS_120MHZ_SC" package.
What I tried to do is that:
After that, I build the project, then there are more than 500 errors occurring, most of which are in the file ''cstddef.h' or "cstdint.h". The error hint is like:
I've ever tried to import an easy "helloword" project as contrast, but I cannot figure out why there are so many errors. (In fact several errors even occurred in the fpu_asm.s file, so I eliminated it to pass compile. But I don't understand why there are errors in the example project...)
OK, so my question is:
Note that I'm using CodeWorrior 10.6 version. I'm not going to use Processor Expert or MQX tool kit in my project.
Thanks very much!!
Hi Kenan, @johnmc
You're not alone. I'm a new user of the TWR-K70F120M and CodeWarrior 10.6. I am seeing the exact same errors with fpu_asm.s (Undefined macro or opcode:end & opcode:export).
I just extracted the KINETIS_120MHZ_SC, and found the readme.txt file which includes general directions for codewarrior.
I am able to import example projects, but they do not build properly (also tried cleaning the project prior to building).
Were you able to find a workaround, or did you submit a support request with Freescale?
Regards,
Troy
Hi Troy,
I sent you an answer through the service request you submitted. I will post the solution to this issue here in order to help some other members.
If you go to the path: C:\Users\b50274\Documents\MCUs\Samples\KINETIS_120MHZ_SC\build\cw you can find there a cw_readme.txt which contains the instructions to build correctly the sample projects. Basically you can do the next steps:
-Erase the file: simply select the file and delete it.
-Exclude from build (it is the polite way): Right click on the file > Resource configuration > Exlcude from Build… ; You can see that now the file has a line across its icon, this means it is excluded from build.
I hope this information can help you.
Regards,
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. It would be nice!
-----------------------------------------------------------------------------------------------------------------------
Thank you very much Adrian.
I would very strongly recommend that Freescale update the KINETIS_120MHZ_SC zipfile on the Freescale website to reflect this.
It is frustrating for new users, who cannot simply download and use this code “out of the box”. If new users are sufficiently frustrated by issues with new development systems, they will simply move on to another dev system.
Thanks again,
Troy
Troy,
I must agree with you on the frustration of new users. I have been developing hardware and firmware for another popular MCU manufacturer for many years and wanted to try to spread my wings and dive into an ARM based product. I looked a FRDM-KL25Z and the TWR-K60F-120M.
I have spent numerous hours trying to figure out what IDE I can use, I typically want to try the OEMs offerings before any 3rd party. The quick start document says to download Codewarrior from the tower web site... Couldn't find that.. when I did find it.. there was so many numerous versions I couldn't tell which one I should use. Ended up on tower geeks and found Kinetis Design Suite... I'm still working on that going through the tutorial. Not sure I have all the required parts to be able to compile any code...
Anyway, I am feeling your pain and just about ready to back out of my well intention plans...