Skip to main content
Home
for DLMS smart meters

Main navigation

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

Breadcrumb

  1. Home
  2. Problem of Compilation of ARDUINO IDE Client.ino With STM32

Problem of compilation of ARDUINO IDE Client.ino with STM32

By FabianoH, 9 October, 2024
Forums
General discussion

Hi

Client.ino compile in Arduino IDE 2.3.3 compile without problems using ESP32 or ATMEGA boards, but when I change to STM32 (STM32Duino) board several erros occur:

In file included from C:\Users\fabia\OneDrive\Documents\Arduino\client\include\objectarray.h:41,
from C:\Users\fabia\OneDrive\Documents\Arduino\client\include\dlmssettings.h:42,
from C:\Users\fabia\OneDrive\Documents\Arduino\client\GXDLMSClient.h:41,
from C:\Users\fabia\OneDrive\Documents\Arduino\client\client.ino:35:
C:\Users\fabia\OneDrive\Documents\Arduino\client\include\gxobjects.h:418:9: error: 'dlmsVARIANT' does not name a type
418 | dlmsVARIANT value;
| ^~~~~~~~~~~

I tried to handle the error and it seems that it doesn't include variant.h, even though it is in the correct path.

Has anyone tested with STM32 on Arduino IDE?

I wouldn't want to use STM32CubeIDE

Thanks
Fabiano

Profile picture for user Kurumi

Kurumi

7 months 1 week ago

Hi, Select "File" and …

Hi,

Select "File" and "Preferences". Can you add the value from the "Additional Boards Manages URLs:" here so this can be tested with the same settings you use?

BR,
Mikko

FabianoH

7 months 1 week ago

Hi https://github.com…

Hi

https://github.com/stm32duino/BoardManagerFiles/raw/main/package_stmicr…

And the selected board is "Generic STM32F4 Series"

Thanks
Fabiano

Profile picture for user Kurumi

Kurumi

7 months 1 week ago

Hi Fabiano, This issue can…

Hi Fabiano,

This issue can be repeated with this board manager.
It is working with all other board managers, so this is a little bit strange because the reason seems to be the compiler finds variant.h at the first time, but not the second time when it's used.

There is actually project at the moment for STM32L433 and I can say that you should use STM32CubeIDE instead of Arduino IDE. You can't for example debug with Arduino IDE.

Solving this is under work, but I can't say when this is solved.

BR,
Mikko

  • Log in or register to post comments
  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Thu, 05/15/2025 - 16:26
    gurux.dlms.c 9.0.2505.1501
  • Wed, 05/14/2025 - 08:30
    gurux.dlms.c 9.0.2505.1401
  • Tue, 05/13/2025 - 10:00
    Gurux.DLMS.Android 2.0.15
  • Fri, 05/09/2025 - 13:03
    Gurux.DLMS.Python 1.0.181
  • Wed, 05/07/2025 - 16:09
    Gurux.DLMS.Android 2.0.14

New forum topics

  • Long reading ends with "Invalid frame ..." error.
  • Push listener example how it works + tcp stream issue
  • Problem with reading energymeter Star DTS27 via GXDLMSDirector
  • Receiver Ready Test Failed
  • Combining several meters' profile generic data into one
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin