Changes to TWR-K60F120M_Quick_Start_Demo to Use MQX 3.8.1 and IAR 7.10.3.6832?

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

Changes to TWR-K60F120M_Quick_Start_Demo to Use MQX 3.8.1 and IAR 7.10.3.6832?

ソリューションへジャンプ
2,183件の閲覧回数
thomasmurphy
Contributor II

I am trying to run the TWR-K60F120M_Quick_Start_Demo from the TWR-K60F120M_QSD ZIP download. Since MQX 3.8.0 is no longer available to use the TWR-K60F120M patch, the instructions supplied in the demo are out of date. I have installed MQX 3.8.1 from "Freescale MQX RTOS 3.8.1" at MQX: Freescale MQX™ Software Solutions and then correctly installed the Quick_Start_Demo in C:\Freescale\Freescale MQX 3.8\demo due to the new location of the install. I have already corrected the MQX assembly debug problem discussed at Building Libs w/ MQX 3.8 and IAR 6.5 and ran 'make' on the twrk60f120m build_libs IAR project.

Now, the Quick_Start_Demo cannot compile because of two errors in multiple files:

Fatal Error[Pe1696]: cannot open source file "usb_class.h" C:\Freescale\Freescale MQX 3.8\demo\TWR-K60F120M_Quick_Start_Demo\usb\usb_descriptor.h 42

Fatal Error[Pe1696]: cannot open source file "mqx.h" C:\Freescale\Freescale MQX 3.8\demo\TWR-K60F120M_Quick_Start_Demo\demo.h 36

Full text from one error:

Accel_Task.c

Fatal Error[Pe1696]: cannot open source file "mqx.h" C:\Freescale\Freescale MQX 3.8\demo\TWR-K60F120M_Quick_Start_Demo\demo.h 36

            searched: "C:\Freescale\Freescale MQX 3.8\demo\TWR-K60F120M_Quick_Start_Demo\iar\..\..\..\lib\

twrk60f120m.iar\bsp\"

            searched: "C:\Freescale\Freescale MQX 3.8\demo\TWR-K60F120M_Quick_Start_Demo\iar\..\..\..\lib\

twrk60f120m.iar\psp\"

            searched: "C:\Freescale\Freescale MQX 3.8\demo\TWR-K60F120M_Quick_Start_Demo\iar\..\..\..\lib\

twrk60f120m.iar\bsp\Generated_Code\"

            searched: "C:\Freescale\Freescale MQX 3.8\demo\TWR-K60F120M_Quick_Start_Demo\iar\..\..\..\lib\

twrk60f120m.iar\"

            searched: "C:\Freescale\Freescale MQX 3.8\demo\TWR-K60F120M_Quick_Start_Demo\iar\..\..\..\lib\

twrk60f120m.iar\rtcs\"

            searched: "C:\Freescale\Freescale MQX 3.8\demo\TWR-K60F120M_Quick_Start_Demo\iar\..\..\..\lib\

twrk60f120m.iar\mfs\"

            searched: "C:\Freescale\Freescale MQX 3.8\demo\TWR-K60F120M_Quick_Start_Demo\iar\..\..\..\lib\

twrk60f120m.iar\usb\host\"

            searched: "C:\Freescale\Freescale MQX 3.8\demo\TWR-K60F120M_Quick_Start_Demo\iar\..\..\..\lib\

twrk60f120m.iar\usb\device\"

            searched: "C:\Freescale\Freescale MQX 3.8\demo\TWR-K60F120M_Quick_Start_Demo\iar\..\..\..\lib\

twrk60f120m.iar\shell\"

            searched: "C:\Freescale\Freescale MQX 3.8\demo\TWR-K60F120M_Quick_Start_Demo\iar\..\"

            searched: "C:\Freescale\Freescale MQX 3.8\demo\TWR-K60F120M_Quick_Start_Demo\iar\..\adc\"

            searched: "C:\Freescale\Freescale MQX 3.8\demo\TWR-K60F120M_Quick_Start_Demo\iar\..\tsi\"

            searched: "C:\Freescale\Freescale MQX 3.8\demo\TWR-K60F120M_Quick_Start_Demo\iar\..\usb\"

            searched: "C:\Freescale\Freescale MQX 3.8\demo\TWR-K60F120M_Quick_Start_Demo\iar\..\web\"

            searched: "C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.0\arm\inc\"

            searched: "C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.0\arm\inc\c\"

What do I need to change in the demo project configuration to successfully compile for the Tower System TWR-SER/TWR-ELEV/TWR-K60F120M. I was hoping that this example would be simple to get loaded after installing the required software (IAR 6.5+ evaluation license and MQX 3.8) and the project file. . .

0 件の賞賛
返信
1 解決策
1,636件の閲覧回数
thomasmurphy
Contributor II

Following Re: Can't build MQX 4.0 examples using IAR and my linked references.

Ensure dependencies are made first, in order: Rebuild All: bsp, psp, msf, rtcs, shell, usb_ddk, usb_hdk

Doing this required modifying all assembly '.s' files in each project such that every line beginning with "ASM_PUBLIC" has a space as the first character on the line. IAR will throw an error at every such line that requires editing, making the required edits easy to find.

In the Quick_Start_Demo project, add "$PROJ_DIR$\..\..\..\lib\twrk60f120m.iar\usb" to the C/C++ Compiler > Preprocessor > Additional Include Directories list and to the Assembler > Preprocessor > Additional Include Directories list.

From there, the project will compile successfully.

Further, at the advice of Need help getting started, programming through the debugger requires changing:

Untitled.png

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,637件の閲覧回数
thomasmurphy
Contributor II

Following Re: Can't build MQX 4.0 examples using IAR and my linked references.

Ensure dependencies are made first, in order: Rebuild All: bsp, psp, msf, rtcs, shell, usb_ddk, usb_hdk

Doing this required modifying all assembly '.s' files in each project such that every line beginning with "ASM_PUBLIC" has a space as the first character on the line. IAR will throw an error at every such line that requires editing, making the required edits easy to find.

In the Quick_Start_Demo project, add "$PROJ_DIR$\..\..\..\lib\twrk60f120m.iar\usb" to the C/C++ Compiler > Preprocessor > Additional Include Directories list and to the Assembler > Preprocessor > Additional Include Directories list.

From there, the project will compile successfully.

Further, at the advice of Need help getting started, programming through the debugger requires changing:

Untitled.png

0 件の賞賛
返信
1,636件の閲覧回数
Wlodek_D_
Senior Contributor II

Hello,

Thank you for your post, however please consider moving it to the right community place (e.g. MQX Software Solutions or  Kinetis Microcontrollers) to get it visible for active members.

For details please see general advice Where to post a Discussion? ( https://community.freescale.com/docs/DOC-99909   )

Thank you for using Freescale Community.

0 件の賞賛
返信