Swan SPI and I2C speed limitations and settings

Does the existing Arduino-based control over the SPI and I2C have limitations on the bit rate lower than the STM32L4R5 spec?

I’d like to implement a SPI slave at 50 MHz and I2C at 400kHz based on some specs in a peripheral. I tried using Wire.setClock() and resorted to something like HAL_SPI_Receive(&hspi2, buffer, bufLen, 5000); for SPI after initializing the SPI for slave in STM32Cube. I’m not seeing a good clock on the I2C and the SPI seems poorly configured as well. I think it wants me to set the clock config but this seems to conflict with the Swan’s regular peripherals for debug and maybe notecard. Has anyone set these up with through the HAL that could share a working example to get me started?


Hey @icuham thanks for the question, and welcome to the Blues community! (Apologies for the delay as well!)

Just to clarify, are you looking for Swan clock configuration help in an Arduino/STM32Duino-app or in an STM32Cube app?