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

Modified library to work with Tricore Ifx Qspi driver #1

Open
wants to merge 1 commit into
base: 5.x
Choose a base branch
from

Conversation

jacobbenlewis
Copy link
Owner

@jacobbenlewis jacobbenlewis commented Feb 22, 2024

The Ifx Qspi driver doesn't directly support the manual control of the CS pin. So needed to change some SPI read/write functions to send all at once rather than one byte at a time.

  • change spi_transmit_32 to use IfxQspi_SpiMaster_exchange()
  • change all the EVE_memReadXX()/WriteXX() functions to call functions using IfxQspi_SpiMaster_exchange()
  • change EVE_cmdWrite() to call a function using IfxQspi_SpiMaster_exchange()

3 things still needed external to these mods:

  1. spiMasterChannelConfig.base.mode.autoCS = 0; // use manual chip select functions
  2. Modify iLLD/TC39B/Tricore/Qspi/SpiMaster/IfxQspi_SpiMaster.c:
    • comment out contents of IfxQspi_SpiMaster_activateSlso()
    • comment out contents of IfxQspi_SpiMaster_deactivateSlso()
  3. Need to use the burst commands always, or confirm that spi_transmit() is not used.

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.

1 participant