Tool/software:
hey TI,
I am unable to generate SPI clock on my launchpadF28379D , I am using SPI B.
In this way I have configured it,
void SPI_PIN_init_B()
{
// GPIO pin config as SPI B
// MOSI SPIB
GPIO_setPinConfig(SPIB_MOSI); // GPIO_63_SPISIMOB
GPIO_setPadConfig(63, GPIO_PIN_TYPE_STD); // pin type as Push-pull output
GPIO_setDirectionMode(63, GPIO_DIR_MODE_IN); // Direction of MOSI_SPIB as Outout pin
// MISO SPIB
GPIO_setPinConfig(SPIB_MISO); // GPIO_64_SPISOMIB
GPIO_setPadConfig(64, GPIO_PIN_TYPE_STD); // pin type as Push-pull output
GPIO_setDirectionMode(64, GPIO_DIR_MODE_OUT); // Direction of MISO_SPIB as Input pin
// Clock SPIB
GPIO_setPinConfig(SPIB_CLK); // GPIO_65_SPICLKB
GPIO_setPadConfig(65, GPIO_PIN_TYPE_STD); // pin type as Push-pull output
GPIO_setDirectionMode(65, GPIO_DIR_MODE_IN); // Direction of CLK_SPIB as Output pin
// Slave select SPIB
GPIO_setPinConfig(SPIB_SS); // GPIO_66_SPISTEB
GPIO_setPadConfig(66, GPIO_PIN_TYPE_STD); // pin type as Push-pull output
GPIO_setDirectionMode(66, GPIO_DIR_MODE_IN); // Direction of SS_SPIB as Output pin
}
I have attached the evidence below

recently I have Updated the CCS version.
void SPI_init_B()
{
// init SPIB
SPI_disableModule(SPIB_BASE); // disable SPIB module
/*
SPI - SPIB
LSPCLK - 50Mhz (use equivalent value in Hz)
SPI protocol - mode_3 (polarity 1, phase 1)
SPI mode - Master mode
SPI baudrate - 2Mhz ( use equivalent value in Hz)
data wirdth - 2 bytes (16 bits)
*/
SPI_setConfig(SPIB_BASE, 50000000, SPI_PROT_POL0PHA0 , SPI_MODE_SLAVE,2000000, 16);
SPI_enableModule(SPIB_BASE); // Enable SPIB module
}
}
void main()
{
SPI_writeDataNonBlocking(SPIB_BASE, 0xAAAA); // generate clock by master
DEVICE_DELAY_US(10);
}
I have attached the evidence below

recently I have Updated the CCS version.