Sketch auto-generated with XOD (How to ?)


#1

Hello folks !

I’m trying to use the sketch auto-generated with XOD in Arduino IDE but I’m facing errors issue. Is there some turorials/tips to follow to do it ?

The project I’m using is quite simple. It’s two on-off led :

The gererated code is here : https://pastebin.com/L48br2e2

The error from Arduino IDE : https://pastebin.com/eawdmamy

Thanks !


#2

Hello!

You are using some unusual board. That should be fine in general, but what I see from the error log, this board package does not specify a GCC flag to use C++11 features, it uses the old C++ version whereas XOD requires a quite modern (2011) C++. You have to manually edit your package platform.txt file.

Find it in: C:\Users\<You>\xod\__packages__\packages\<board_package_name>\hardware\<family_name>\<version>\platform.txt.

There, find the compiler.c.flags option and add -std=gnu11 to it. This should enable the required C++ features.


#3

Hello ! Thanks for the reply !

But the flag “-std=gnu11” is already there in my “platform.txt” file.

And yes, I was trying to upload XOD code to an unusual Arduino board. Since there was no corresponding board inside XOD, I thought I would be able to use the auto-generated code with the Arduino IDE, since it’s working fine with it.


closed #4

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.