Part Number: AM6442
Other Parts Discussed in Thread: ADS127L18, SYSCONFIG
Hi,
I am trying to configure 2 SPIs to work in slave mode, as we are trying to integrate an ADS127L18 in 8-ch mode with 128 KSMPS. In this mode, the data will need a clock of 32.7 MHz and almost the entire FSYNC period if we only use D0 of the DPORT. That is why we want to use the TDM with D0 and D1. D0 of the ADC's DP we connect to SPI1 and D1 of SPI3 (both in slave mode). FSync is used as CS for both, DCLK for Clock for both. So summarized:
- ADC D0: SPI1 DO RX
- ADC D1: SPI D0 RX
- ADC DCLK: SPI1 CLK, SPI3 CLS
- ADC FSYNC: SPI1 CS, SPI3 CS
I was trying to configure both interfaces to work with DMA (see attached syscfg). With only SPI1 it was no issue at all, but with both SPIs the generated code caused some errors, such as:
- invalid mode for the channel mode (that happens also with only one SPI interface, the when one tries to configure it as Peripheral)

- undeclared prototypes for the callbacks for the second SPI interface in ti_drivers_config.c:

- redefinition of gMcspiNumCh in ti_drivers_config.c:

About the versions:
- Sysconfig: v1.19.0+3426 as standalone tool, then sysconfig_cli.bat inserted as a prebuild dependency
- MCU+ SDK v. 09_01_00_41
- GCC v.13.2.1 for ARM
Please suggest, if we are doing something completely wrong, or there is a workaround for this issue. Attached is the Sysconfig file, which we are using to generate the config&startup code.
Regards!
Edit: Apparently, the forum does not allow uploading the sysconfig file. I can provide it on demand to the TI support team.
