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

Fix for .miso_config / update of package.json #282

Merged
merged 3 commits into from
Jul 11, 2024

Conversation

RudolphRiedel
Copy link
Contributor

By creating this pull request you agree to the terms in CONTRIBUTING.md.
https://github.com/Infineon/.github/blob/master/CONTRIBUTING.md
--- DO NOT DELETE ANYTHING ABOVE THIS LINE ---

CONTRIBUTING.md also tells you what to expect in the PR process.

Description
A couple of variants/.../config/.../pins_arduino.h was using this for .miso_config:
.miso_config = {
.mode = XMC_GPIO_MODE_INPUT_TRISTATE,
.input_hysteresis = XMC_GPIO_INPUT_HYSTERESIS_STANDARD
},

And since that skipped .output_level of the struct XMC_GPIO_CONFIG, building for XMC1100_XMC2GO failed with:
"sorry, unimplemented: non-trivial designated initializers not supported."

As the same project built just fine for the XMC4700_Relax_Kit, I compared the files and found this difference.
Adding .output_level for an input pin seems to be wrong and XMC_GPIO_INPUT_HYSTERESIS_STANDARD seems to be the default anyways, so I tried removing that line and it built again.

I also updated package.json from "version": "2.1.0" to "version": "3.1.0" while also adding a couple more lines that are found in the package.json that is installed by PlatformIO.
Ok, 3.1.0 is not really correct, this should be changed to whatever the next release is supposed to be so that it is correct in the release package - but I can not know if the next release will be 3.1.1, 3.2.0 or 4.x or something else entirely.

While this works to use the latest version in PlatformIO:
platform_packages = framework-arduinoxmc @ https://github.com/Infineon/XMC-for-Arduino.git
When listing the dependancies it is listed as framework-arduinoxmc @ 2.1 - but it uses the latest files, so 3.1.0+ actually.

Related Issue

Context
I am using PlatformIO to build my project and it is using arm-none-eabi-g++.
I had to manually convince PlatformIO to use the latest version of XMC-for-Arduino, the platform "Infineon XMC" is still using "framework-arduinoxmc" in version 1.4.0 and this one uses a different pins_arduino.h which does not even have the SPI config.

…ne from a couple .miso_config inits in pins_arduino.h as compiling failed for XMC11000_XMC2GO due to skipping the not necessary output_level element
@LinjingZhang LinjingZhang changed the base branch from master to develop July 8, 2024 16:13
@LinjingZhang LinjingZhang changed the base branch from develop to master July 8, 2024 17:43
Copy link
Collaborator

@LinjingZhang LinjingZhang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much for the PR. very sorry for the late reply.
hope you can continue to contribute to this repo 😄

package.json Show resolved Hide resolved
variants/XMC1100/config/XMC1100_Boot_Kit/pins_arduino.h Outdated Show resolved Hide resolved
variants/XMC1100/config/XMC1100_XMC2GO/pins_arduino.h Outdated Show resolved Hide resolved
…DARD" line from a couple .miso_config inits in pins_arduino.h as compiling failed for XMC11000_XMC2GO due to skipping the not necessary output_level element"

This reverts commit 7b91618.
@LinjingZhang LinjingZhang self-requested a review July 9, 2024 11:25
@LinjingZhang LinjingZhang merged commit bb7c3d4 into Infineon:master Jul 11, 2024
jaenrig-ifx pushed a commit to jaenrig-ifx/XMC-for-Arduino that referenced this pull request Jan 17, 2025
* - fix package.json for PlatformIO

* - removed ".input_hysteresis = XMC_GPIO_INPUT_HYSTERESIS_STANDARD" line from a couple .miso_config inits in pins_arduino.h as compiling failed for XMC11000_XMC2GO due to skipping the not necessary output_level element

* Revert "- removed ".input_hysteresis = XMC_GPIO_INPUT_HYSTERESIS_STANDARD" line from a couple .miso_config inits in pins_arduino.h as compiling failed for XMC11000_XMC2GO due to skipping the not necessary output_level element"

This reverts commit 7b91618.
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

Successfully merging this pull request may close these issues.

2 participants