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.
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)
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
You can try to use this SDK which contains the gcc folder. Thanks!
thank you sir
i’ll try on another sdk.
Dear Kyson Sir,
From where can i get “M66_OpenCPU_GS3_SDK_V2.3_Eclipse”.
Please click the following link to download your needed SDK files. Thanks!
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,