Skip to content

boards: kit_psc3m5_evk: enabling SPI - #35

Merged
djaumann merged 1 commit into
control-mainfrom
feature/enable-SPI
Oct 23, 2026
Merged

djaumann merged 1 commit into
control-mainfrom
feature/enable-SPI

Conversation

@djaumann

Copy link
Copy Markdown

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

  • Enable SPI in the KIT_PSC3M5_EVK board configuration.
  • Configure SCB2 for SPI on P7.0–P7.2 and map P7.3 as the chip-select GPIO.
  • Expose the SPI pins through the variant’s Arduino pin aliases.
  • Give SPI its own peripheral clock divider to keep its runtime divider changes separate from CAN.

@djaumann

Copy link
Copy Markdown
Author

One thing to note: Right now there is problem in the SPI.endTransaction() function, which is not properly releasing the allocated resources of the SPI bus. I have already fixed the corresponding function (ifx_cat1_spi_release() ) in the spi_infineon_pdl_.c file, which did the trick.

Since this is only a local fix, we need to find a solution how to either raise a ticket to get it fixed or fix it ourself and create a PR in the upstream.

@jaenrig-ifx jaenrig-ifx left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

🤖 !
Let´s see how to get that fix in place 👍

@IFX-Anusha IFX-Anusha left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good!

@djaumann
djaumann merged commit fc4d764 into control-main Oct 23, 2026
16 checks passed
@djaumann
djaumann deleted the feature/enable-SPI branch October 23, 2026 07:50
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.

3 participants