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. Code For Atmega2560 (using Atmel Studio) Giving Missing Header Files Error (during Compilation).

Code for Atmega2560 (using Atmel Studio) giving Missing Header Files Error (during compilation).

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 Radhika Thakur , 23 December, 2020
Forums
General discussion

Hello,

We are using the Atmel code from the Gurux C stack and attempting to implement client-side solution for reading from a meter using Atmega2560 (Arduino Mega 2560).
However, the code is not getting compile. (Build errors).

It gives compile time errors saying that the following header files are missing:
same70q20.h: No such file or directory
sam.h: No such file or directory

It is also giving the following makefile errors:
recipe for target 'Device_Startup/startup_same70q20.o' failed
recipe for target 'atmel_start.o' failed
recipe for target 'dlms/communication.o' failed

Is this code meant for a different controller like ATSAME70Q20? Could you kindly help us with this issue?
Thank you very much.

P. S. I am attaching an image of the errors

Image
Profile picture for user Kurumi

Kurumi

5 years 10 months ago

Hi,

Hi,

Your compiler settings are different in some way. I believe that the fastest way to solve this is if you create a new project for Atmega 2560 and then copy DLMS files to this project. We can check this in next week.

BR,
Mikko

Radhika Thakur

5 years 10 months ago

Hello Mikko,

Hello Mikko,

Thank you so much for your reply, especially during the holiday season!
I'm trying this solution out. I'll post about my progress in the coming week.

-Regards,
Radhika Thakur

Radhika Thakur

5 years 10 months ago

Hello Mikko,

Hello Mikko,

I tried the above approach but to no avail. I keep getting some versions of the same error. We have now shifted approach and are attempting to implement the C code. Our plan is to use a Renesas MCU for communicating with the meter. We are hoping to modify the GuruxDLMSClient C code for the Renesas MCU. I am now having linker errors while 'making' the C code. However, as per forum rules I have created a new topic for this issue. Here's the link to the same.

https://www.gurux.fi/node/17604

Thank you so much for all your help.

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Tue, 10/13/2026 - 12:00
    gurux.dlms.java 4.0.97
  • Tue, 09/22/2026 - 14:02
    Gurux.DLMS.Net 9.0.2609.2201
  • Mon, 09/21/2026 - 10:18
    Gurux.DLMS.Net 9.0.2609.2101
  • Wed, 08/26/2026 - 09:04
    Gurux.DLMS.Python 1.0.203
  • Mon, 08/17/2026 - 11:28
    Gurux.DLMS.Python 1.0.202

New forum topics

  • Need RJ45 pin configuration for Saral 300 and Saral 305 Secure meters
  • Query Regarding Class 63 Status Mapping Support in Gurux DLMS Python
  • Inhemeter
  • DLMS Server - Profile Generic - can't add too many items to profile generic capture object - how to set maximum profile entries
  • HDLC Frames sequencing
More

Who's new

  • Asier Sierra
  • BlessyAnn
  • sravya.thota@m…
  • Diwakar
  • williamorussell
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin