Skip to content

Portenta X8 examples: QSPIFBlockDevice not found #529

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ClemensAtElektor opened this issue Aug 1, 2022 · 4 comments
Open

Portenta X8 examples: QSPIFBlockDevice not found #529

ClemensAtElektor opened this issue Aug 1, 2022 · 4 comments

Comments

@ClemensAtElektor
Copy link

Hi,

Tried to run WiFiFirmwareUpdater & WiFiWebClient examples from Portenta X8 boards package v3.2.0 inside Arduino IDE 1.8.19 on my Portenta X8. Both fail with similar compilation error:

ResolveLibrary(QSPIFBlockDevice.h)WiFiFirmwareUpdater:1:10: fatal error: QSPIFBlockDevice.h: No such file or directory

I saw other issues related to QSPIFBlockDevice here (#489 , #377) but I am not sure if I can apply the proposed solutions. How can I get this to compile, please?

@facchinm
Copy link
Member

facchinm commented Aug 1, 2022

Hi @ClemensAtElektor ,
the X8 cannot use WiFi libraries directly from the Arduino side of things (you can however interfae with the Linux side handling the network communication using the RPC examples ).
@sebromero should we be a bit more explicit with the error when the library being included is not compatible with X8?

@facchinm facchinm closed this as completed Aug 1, 2022
@facchinm facchinm closed this as not planned Won't fix, can't repro, duplicate, stale Aug 1, 2022
@ClemensAtElektor
Copy link
Author

Thanks for the quick answer. However, you closed this issue, but are you aware that in the Arduino IDE these examples are listed as "Examples for Arduino Portenta X8"? (see attached screenshot) As such, one would expect them to compile without errors.

arduino-ide-portenta-x8-examples

@facchinm facchinm reopened this Aug 1, 2022
@facchinm
Copy link
Member

facchinm commented Aug 1, 2022

@ClemensAtElektor you are right, this is a big shortcoming of the IDE; it shows all the libraries in a core as Example for $boardname . The same happens on AVR core for boards without USB support.
@per1234 is there any plan to fix this in IDE 2? Maybe adding some extra info in a library.properties field?

@per1234
Copy link
Contributor

per1234 commented Aug 7, 2022

is there any plan to fix this in IDE 2?

There are a couple of proposals for doing such a thing at the library or sketch level (keep in mind that, even if a library is compatible with a board, a specific example sketch may not be). See issues 7144 and 5506 in the Tooling Team's internal issue tracker (unfortunately these were created before we had achieved proper integration with GitHub and we haven't gotten around to publishing them yet). But the most detailed proposal is the document you wrote in the "Arduino Tooling" confluence space.

Those proposals are likely to take some time to implement since they encompass work in the Arduino CLI code base, the relevant specification, Arduino IDE, Arduino Web Editor, the relevant boards platforms, before benefiting users. After that, there will be follow up work in Arduino Lint, Arduino Library Reference, and Arduino Library Manager.

I have submitted a proposal for an improvement that can be made to this user experience with only a trivial change to the Arduino IDE code: arduino/arduino-ide#1304.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants