Skip to content
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

no Wire.h in XMC4700? #19

Open
RudolphRiedel opened this issue Feb 18, 2024 · 8 comments
Open

no Wire.h in XMC4700? #19

RudolphRiedel opened this issue Feb 18, 2024 · 8 comments
Assignees

Comments

@RudolphRiedel
Copy link

Hello,

I am trying to compile an Arduino / PlatformIO project that uses SPI for the XMC4700 and it fails over not finding Wire.h:
.platformio\packages\framework-arduinoxmc\libraries\SPI\src\HW_SPI.cpp:28:10: fatal error: Wire.h: No such file or directory

Can we please get an update to https://github.com/Infineon/XMC-for-Arduino/releases/tag/V3.0.0 ?

Also, the link to the documentation is dead:
https://docs.platformio.org/page/platforms/infineonxmc.html

And Infineon XMC is not listed here:
https://docs.platformio.org/en/latest/platforms/index.html

Copy link

This issue is stale because it has been open more than 6 weeks with no activity. Please comment on this issue if it's still relevant or it will be closed automatically after 1 week.

@github-actions github-actions bot added the Stale label Jun 17, 2024
@RudolphRiedel
Copy link
Author

Yes, this is still relevant.

@ederjc
Copy link
Member

ederjc commented Jun 19, 2024

Hi @RudolphRiedel,

Thanks for raising this topic and sorry for the delayed reply!
The reported issue is absolutely valid and this repo needs an update.
We will look into this. I will keep this issue open in the meantime.

Best regards
Julian

@ederjc ederjc removed the Stale label Jun 19, 2024
@ederjc ederjc self-assigned this Jun 19, 2024
@RudolphRiedel
Copy link
Author

No worries, I only commented again in order to not let the bot autoclose the issue.
And I wonder if there is a way that I could update the package myself, I tried this in a different platform and failed.
This could have been a pull-request.

@RudolphRiedel
Copy link
Author

RudolphRiedel commented Jun 23, 2024

I tried again to update the package myself, looks like the only thing that needs to be changed here is platform.json:
"framework-arduinoxmc": {
"type": "framework",
"owner": "platformio",
"version": "^1.4.0",
"optional": true
},

Yeah, set this to 3.1.0 and done.
However, this requires a new framework package to be registered in the PlatformIO registry:
https://registry.platformio.org/tools/platformio/framework-arduinoxmc

And I can not figure out how to change the framework package in the registry.

I figured out how to use a different package though.

Add this to platformio.ini:
platform_packages = framework-arduinoxmc @ https://github.com/Infineon/XMC-for-Arduino.git

And the package is installed from the repository.
The only issue there is now that the package.json for this repository is outdated and reports a version 2.1:
Platform infineonxmc @ 1.2.0 (required: infineonxmc)
├── framework-arduinoxmc @ 2.1.0+sha.11a51bf (required: git+https://github.com/Infineon/XMC-for-Arduino.git)
└── toolchain-gccarmnoneeabi @ 1.70201.0 (required: platformio/toolchain-gccarmnoneeabi @ >=1.60301.0,<1.80000.0)

So at least there is a workaround.

@RudolphRiedel
Copy link
Author

And in regards of not finding Wire.h, updating to a newer version of XMC-for-Arduino did not help with that.
What helps is adding this to platformio.ini:
lib_deps =
${env.lib_deps}
Wire

Somehow the dependancy scanner in PlatformIO fails and I even added "lib_ldf_mode = chain+" for an issue with a different platform.

@LinjingZhang
Copy link
Contributor

Hi RudolphRiedel,

Thank you so much for bringing up this issue and for providing your workaround.
We will try to update the code base as soon as possible. Currently you may only be able to use our libs through manual modifications. sorry for the inconvenience!
I'll close this issue after the update.

@LinjingZhang
Copy link
Contributor

Hi,
I updated this repo to the latest 3.1.0.
You can at least clone it to .platformio\platforms\infineonxmc to use it. We'll upload it to the official registry as soon as we can.

Sorry for the inconvenience.

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