I am communicating EFR32FG12 microcontroller and meter which is connected via UART.
I have generated library file for development code and also defined below mentioned macro.
GX_DLMS_MICROCONTROLLER (because I am using this for EFR32FG12)
DLMS_IGNORE_MALLOC (MALLOC is not supported for my code).
I have commented wirepas stack API in code which I got from link 1.
I am calling App_init function which is at \wirepas\gurux_dc\app.c from application code.
As I call this function from my application, my application got rebooted.
I have disabled the all implementations of this function, add one print and enabled cl_init() calling.
First log got printed and then my application got rebooted.
I have added logs in cl_init definition too. But it did not print.
I have Wirepas SDK and verified too. I have added "hello world" print function in client.c file. Generated the lib file and used lib in my application. Called "hello world" print function from my application but my application stuck and got rebooted.
Will printf work in client.c file ?
Could you please tell what could be the issue ?
Is there configuration issue in make file for lib generation ?
Try to run the "blink" example from the Wirepas SDK and check if it's working. If it's not working then you have the wrong SDK and you need to contact the Wirepas
Hi,
Hi,
Check first that you have the right SDK. Can you run the blink example with your HW?
BR,
Mikko
Hi Mikko,
Hi Mikko,
I do not know that How I can run the blink example and Where I can confirm the SDK?
Thanks,
Parth.
Hi,
Hi,
OK. So you don't have Wirepas SDK. I believe that you should check Arduino example and modify it for your use.
https://github.com/Gurux/GuruxDLMS.c/tree/master/Arduino_IDE/client
BR,
Mikko
Hi Mikko,
Hi Mikko,
I have Wirepas SDK and verified too. I have added "hello world" print function in client.c file. Generated the lib file and used lib in my application. Called "hello world" print function from my application but my application stuck and got rebooted.
Will printf work in client.c file ?
Could you please tell what could be the issue ?
Is there configuration issue in make file for lib generation ?
Hi,
Hi,
Try to run the "blink" example from the Wirepas SDK and check if it's working. If it's not working then you have the wrong SDK and you need to contact the Wirepas
BR,
Mikko