Open CPU Project Building in MC60/M66: Ratan Yadav
Open CPU Project Building in MC60/M66: Ratan Yadav
Ratan Yadav
May 2018
You can get latest tools and SDK from below links for M66 and MC60 .
Please refer below documents For doing initial setups for compiler and eclipse from
documentation folder .
OpenCPU_GCC_Installation_Guide_V1.0
OpenCPU_GCC_Eclipse_User_Guide_V1 0_Preliminary
First of all , Rename the project name in file named .project in your Eclipse SDK .
This will make you able to import multiple project in Eclipse SDK .
Like I renamed OpenCPU_SDK to GreenArk_MC60_1.4 where (1.4 is SDK version )
Click file in Eclipse and select import Existing project into workspace next
Projectpath Finish
Note : Project name in IDE will be same as you have given in .project file .
Now you are ready to make your own customized project with multiple task and multiple
source and include files .
Open file custom_task_cfg.h and define the subtask and provide them ID .
Task name provided is proc_ledtask and proc_uarttask
For ease of my use , I created folder src and inc for source and header files in my project .
These folders are created in Custom Folder .
Right click on custom folder and click new and select folder option
After Dragging main.c file in src folder , SDK will look like below .
Add your source file and header files in src and inc folder .
Right click on src and new source file
Now we do need to include inc folder in our include directory of GCC C compiler or else it
will not be recognized .
Click Project properties C/C++ Build Settings ARM Windows GCC C Compiler
(sourcery Lite Bare) Directories
Now inc folder is part of project and you can see same as below .
Now you can add your .c files and .h files in src and inc folder .
You can add as much as you want after right click on folder and follow the steps
mentioned above .
I have added four .c files and one .h file so look for my project is as below .
Go in project properties C/C++ Build and add paralled build as shown below .
Main task which is able to send and receive SMS and intercommunication of task
Blink NETLIGHT at every 5 seconds
Send Some data on UART PORT 2 at every 5 Seconds
Receive AT command from main port and give response
Receive data on UART PORT2 and show received data on UART_PORT 1 which is also
acting as debug port .
https://mega.nz/#F!zIxVhapA!rUu9z-BM8oGZwTaxbD1yLg
Now you just need to copy src and inc folder of previous project and paste it in new SDK
After this just make changes in custom_task_cfg.h or copy previoud one and replance in
new SDK .
Just add inc folder in include paths (-I) as we had done previously .
Now you are ready with new Project .
So if customer have developed his code in MC60 then he can easily migrate to M66 after
copying his src and inc folder only .
Please do have M66 based Project from below link .
https://mega.nz/#F!zIxVhapA!rUu9z-BM8oGZwTaxbD1yLg
Thank you!
7th Floor, Hongye Building, No.1801 Hongmei Road, Xuhui District, Shanghai
200233, China
Tel: +86-21-5108 6236 Fax: +86-21-5445 3668
Email: [email protected] Website: www.quectel.com