Hi everybody, I've downloaded a package of bare metal project examples for K70 MCUs and after build the "k70-adc_demo" as said in the "cw_readme.txt" file, I got 28 errors making reference to the FPU driver (fpu_asm.s) and
most of the errors say "Undefined macro or opcode: export fpu_asm.s". How can I fix this??
Best Regards!
解決済! 解決策の投稿を見る。
Hi Juan,
Except delete the folder, there has another way to solve it.
Just click the draw behind the fpu_asm.s, then rebuild it, there will no error appear.
Like the following picture:
Wish it helps~!
Jingjing
I wonder if the real problem is that all the projects in KINETIS_120MHZ_SC.zip are using an old toolchain. I noted that new projects (CW 10.5) use the "ARM Ltd Windows GCC (G++ lite)" toolchain while this stuff is just "ARM toolchain". I tried to change toolchains but was not successful (the linker settings disappeared and it wouldn't make). So maybe Freescale can update the bare metal examples for CW10.5...?
Hi Juan Navan,
I build the "k70-adc_demo" project, but didn't find the error which you said.
so, could you tell me which workspace path did you open?
Please delete your" .metadata" folder, and choose the workspace to :KINETIS_120MHZ_SC folder, then open the "k70-adc_demo" project and built it again.
Wish my answer will help you!
Best regards!
Jingjing
Thanks for the reply Jingjing but I have tried many times and it doesn't work. My workspace path is: "C:\KINETIS_120MHZ_SC" and when I open the "k70-adc_demo" project (or any other) this is what I get:
I think is some problem when compiling the assembly.
I'm using the codewarrior for MCU, Version: 10.5, Build Id:130916.
Kind Regards,
Juan Nava
Hi Juan,
Except delete the folder, there has another way to solve it.
Just click the draw behind the fpu_asm.s, then rebuild it, there will no error appear.
Like the following picture:
Wish it helps~!
Jingjing
Thank you Jingjing.
@johnmc can someone please update KINETIS_120MHZ_SC to fix this issue? Issues like this take a lot of time for new users to resolve.
Regards,
Troy
Thank you very much Jingjing, it compiled successfully but there is another thing I would like to ask you because after compile this project the console show the following lines if I try to program:
Using restricted address range 0x00000000 to 0x000FFFFF
Programming file C:\KINETIS_120MHZ_SC\build\cw\adc_demo\k70_adc_demo\MK70FN1M0_INTERNAL_RAM\k70-adc_demo.afx
Auto-detection is successful.
File is of type Elf Format.
0 Bytes Programmed, Check Restricted Address Range
Program Command Succeeded
And I have seen it before but don't know why this happens. I've tried changing from "internal RAM" to FLASH and external DDR without result. Also tried with OSJTAG, Multilink and even restarting my PC but nothing...
However, if I debbug the project it works fine! but I cannot program my chip, so it is kind of cumbersome.
Do you know how to avoid this in order to program normally??
Best regards!
Juan Nava
Hi Juan, did you have any luck correcting this issue?
Hi
Just right-click "dsp_asm.s" ---> properties ---> Setting ---> Enable the option " Exclude resource from build"
Prabhu.S
Hi Juan Nava,
I checked it, you can delete the fpu folder directly.
Then build it again, you will find the error is not exist.
And I try the "k70-adc_demo" project based on IAR, it does not contain the FPU driver.
So, just delete it!
Any question , please contact with me!
Wish it helps!
Best regards!@
JIngjing