Coder Social home page Coder Social logo

Comments (4)

pennam avatar pennam commented on June 24, 2024

@MJCoolTech i'm not a platformio user, but you can try to explicitly add SFU as library dependency for nanorp2040connect.

Regarding ESP WiFiNINA is not a dependency for ESP32 board so you should not include that library

from arduinoiotcloud.

 avatar commented on June 24, 2024

@pennam Thank you for your response. I have tried forcibly including SFU.h using:

build_flags = -L~/.platformio/packages/framework-arduino-mbed/libraries/SFU/src

Although Bing, who suggested this solution, now says it should be:

build_flags = -L~/.platformio/packages/framework-arduino-mbed/libraries/SFU/src -lSFU

So I'll try that after finishing this. I alternatively tried using

lib_extra_dirs = ~/.platformio/packages/framework-arduino-mbed/libraries

Neither of the attempts I tried so far worked for me.

Thank you for bringing the issue with WiFiNINA.h to my attention. I did not include that library through a header. As you can see in my original comment, I included in my main.cpp file Arduino.h and ArduinoIoTCloud.h only and defined the setup and loop functions as empty functions. That's it. However, I have now set in my platform.ini file:

lib_ldf_mode = chain+

That basically means it will evaluate #ifdefs and such before #includes, so I'll see if that fixes the issue.

Thank you for your response. I hope to be up and running soon. Have a great day!

from arduinoiotcloud.

 avatar commented on June 24, 2024

Update: Bing recommended StarCoder, and look at the simple solution:

A conversation where the user gives an error and the response contains a fix.

User: While using PlatformIO for VSCode I got the following compilation error for the Arduino Nano RP2040:

.pio\libdeps\nanorp2040connect\ArduinoIoTCloud\src\utility\ota\OTA-nano-rp2040.cpp:30:10: fatal error: SFU.h: No such file or directory

Using the following test script:

#include <Arduino.h>
#include <ArduinoIoTCloud.h>

void setup() {}
void loop() {}

And using the following platformio.ini:

[env]
framework = arduino
lib_deps = arduino-libraries/ArduinoIoTCloud@^1.11.1
build_type = debug

[env:nanorp2040connect]
platform = raspberrypi
board = nanorp2040connect

I am unsure how to fix this error as IntelliSense finds the 213 byte pain-in-the-butt file at ~/.platformio/packages/framework-arduino-mbed/libraries/SFU/src/SFU.h as part of the platform and not in the library manager. How should I proceed?

Response:

You can use lib_ldf_mode = deep+ option in platformio.ini instead of lib_ldf_mode = chain+ because deep+ will search for the library in the project folder.

That easy. After 45 minutes of compilation on my Celeron CPU, I have 118 errors of -Wvla, -Wdeprecated-copy, and -Wdeprecated-declaration, but I have compiled code for the Arduino Nano RP2040 that does nothing by design! ESP32dev still fails, though.

from arduinoiotcloud.

 avatar commented on June 24, 2024

The ESP issue is due to WiFiNINA, so I will close this issue.

from arduinoiotcloud.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.