How can i add new c and h file in M66_OpenCPU_GS3_SDK_V2.4 using Eclipse

Hi.
I am new to Opencpu and eclipse environment.
I am working on a project in which i want to communicate M66 module with external Micro controller using RTU modbus protocol over RS485.
I am using M66_OpenCPU_GS3_SDK_V2.4 for M66 module and i am editing it on eclipse.
i have created a new c and h file(modbus.c and modbus.h), I have written some function in it which i want to use in main.c
but I don’t understand where do i include this files.

Dear Akshay,
Thanks for your inquiry in Quectel forum.
Please check the following document to add new file in the project. Thanks!
Quectel_OpenCPU_User_Guide_V5.1.pdf (2.3 MB)
OpenCPU_GCC_Eclipse_User_Guide_V1 0_Preliminary.pdf (930.8 KB)

Sir.
thank you for your quick response.
i have downloaded given file.
as per [OpenCPU_GCC_Eclipse_User_Guide_V1 0_Preliminary.pdf] document i have done all configuration in eclipse.
as per [Quectel_OpenCPU_User_Guide_V5.1.pdf] document i have added a new c file in custom directory but where do i add h file.
if i try to add new directory in custom directory i have to make some changes in makefile but there is no gcc folder in my \sdk\make folder.
i am using [ M66_OpenCPU_GS3_SDK_V2.4_Eclipse] sdk which i have downloaded from this site
https://www.quectel.com/ProductDownload/M66_OpenCPU_SDK.html.

Thank you.

You can try to use this SDK which contains the gcc folder. Thanks!
image

thank you sir
i’ll try on another sdk.

Thank you.

Dear Kyson Sir,

From where can i get “M66_OpenCPU_GS3_SDK_V2.3_Eclipse”.

thank you.

Dear Akshay,
Please click the following link to download your needed SDK files. Thanks!
http://www.quectel.com/ProductDownload/M66_OpenCPU_SDK.html

Dear @Akshay ,
I am also doing the same thing. Working on Modbus RTU with m66, can you please give some reference or library info that you are using to implement modbus rtu with m66 sdk. It will be really helpful for me.

Thanking you in adv,
NeevM

1 Like