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
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
Hi https://github.com…
Hi
https://github.com/stm32duino/BoardManagerFiles/raw/main/package_stmicr…
And the selected board is "Generic STM32F4 Series"
Thanks
Fabiano
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