Skip to main content
Home
for DLMS smart meters
Open source solutions for DLMS smart metering

Main navigation

  • Home
  • Products
  • About us
  • Open Source
  • Community
  • Forum
  • Downloads
User account menu
  • Log in

Breadcrumb

  1. Home
  2. Forums
  3. Error In: Implementing Dlms C Library On STM32F103(64Kb Rom, 20kb Ram) By Keil Compiler Ver5

error in: implementing dlms c library on STM32F103(64Kb rom, 20kb ram) by keil compiler ver5

Forum Rules

Before commenting read Forum rules

Don't comment the topic if you have a new question.

You can create a new topic selecting correct category from Gurux Forum and then create a new topic selecting "New Topic" from the top left.

By rama , 6 August, 2022
Forums
Gurux.DLMS

Hi,
I created a project in Keil compiler for STM32f103. i added all source and include libraries.
but when i start compile i have below errors:

Error: L6218E: Undefined symbol svr_connected (referred from dlms.o).
Error: L6218E: Undefined symbol svr_isTarget (referred from dlms.o).
Not enough information to list image symbols.
Not enough information to list load addresses in the image map.
Finished: 2 information, 0 warning and 2 error messages.
"CubeMX\CubeMX.axf" - 2 Error(s), 9 Warning(s).
Target not created.

i don't have any function in main()

whats the problem?

thank you

rama

3 years 10 months ago

I cant find some functions

I cant find some functions implementation like:
svr_isTarget()
svr_connected()
svr_postRead()
svr_postWrite()
and svr_......
they only determine in serverevent.h file. and i can not find them in serverevents.c?
what is problem?

rama

3 years 10 months ago

I checked , when I uncomment

I checked , when I uncomment #define DLMS_IGNORE_MALLOC, most of errors go.
then my errors depend on memory allocation.
what is problem?
I use Keil uvision IDE and STM32F103C8T6 microcontroller.
how can i use server dlms.c library on it without mentioned problems?
thank you

Profile picture for user Kurumi

Kurumi

3 years 10 months ago

Hi,

Hi,

You must implement svr_connected and svr_isTarget for your main.c file like this:
https://github.com/Gurux/GuruxDLMS.c/blob/9a684a6966589b0e59acdcea3d26b…

BR,
Mikko

rama

3 years 10 months ago

yes . I got it.

yes . I got it.
Thank you Mikko.

rama

3 years 5 months ago

Hi Mikko

Hi Mikko
I think this is wrong in "Using Gurux DLMS ANSI C component with microcontroller" page:

//Add Logical Name Association object for None authentication.
cosem_init2(&noneAssociation.base, DLMS_OBJECT_TYPE_ASSOCIATION_LOGICAL_NAME, NONE_ASSOCIATION);
oa_push(&settings->base.objects, &noneAssociation.base);

//Add Logical Name Association object for Low authentication.
cosem_init2(&lowAssociation.base, DLMS_OBJECT_TYPE_ASSOCIATION_LOGICAL_NAME, LOW_ASSOCIATION);
oa_push(&settings->base.objects, &noneAssociation.base);

in last line we must have : oa_push(&settings->base.objects, &lowAssociation.base);

right?

Profile picture for user Kurumi

Kurumi

3 years 5 months ago

Hi,

Hi,

You are right. Thank you for pointing this out. This is now fixed.

BR,
Mikko

rama

3 years 5 months ago

and another in "Creating DLMS

and another in "Creating DLMS compliant meter using Gurux DLMS Components" page:

Connected
Connected is called if authentication is succeeded.

Invalid Connection
Connected is called if authentication is failed.

both are same. It must differ. right?

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Tue, 06/09/2026 - 11:16
    gurux.dlms.java 4.0.95
  • Tue, 06/09/2026 - 10:03
    Gurux.DLMS.Python 1.0.199
  • Mon, 06/08/2026 - 13:39
    gurux.dlms.cpp 9.0.2606.0801
  • Mon, 06/01/2026 - 10:15
    gurux.dlms.cpp 9.0.2606.0101
  • Thu, 05/28/2026 - 16:06
    gurux.dlms.java 4.0.94

New forum topics

  • Error reading L&G Meter
  • Pass a TCP Client to GXNet
  • Australian EDMI Mk10D (Essential Energy area)
  • Strange mix of data notificiation vs get response
  • DLMS Connection
More

Who's new

  • Tuanhgg
  • Adel
  • charnon
  • Paddles
  • Miguel Ángel
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin