Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
RoMc_863046
Level 3
Level 3
25 sign-ins 10 replies posted 10 sign-ins

Hello,

I am trying to configure SPI Slave on STM32F4xx in the Laird EWB Platform.  The Host MCU is STM32F412.

I have added SPI4 on the STM32 to the Wiced definitions in platform.c.  I can use this as SPI master without issues.

When I use the Wiced SPI Slave functions, I am getting a build errors.

build/laird.ampnet_app-LAIRD_EWB-ThreadX-NetX-SDIO/libraries/STM32F4xx.a(wiced_platform_common.o): In function `wiced_spi_slave_init':

C:\Data\AMP_WORK\WICED-Studio-6.6\43xxx_Wi-Fi/WICED/platform/MCU/STM32F4xx/../wiced_platform_common.c:429: undefined reference to `platform_spi_slave_drivers'

collect2.exe: error: ld returned 1 exit status

Another developer had the same  issue some years ago. Here is a link to that thread.

SPI SLAVE

The Laird EWB platform has platform_spi_slave_init(...) in the platform file.

...WICED\platform\MCU\STM32F4xx\peripherals\platform_spi.c

This same source file has the functions I used for SPI master. 

What step am I missing to use this source for SPI slave?

Thank you,

-Rocko

Module

  Mfr     : Laird Connectivity

  P/N     : Sterling-EWB

  MCU     : STM32F412VEH6

  WLAN    : BCM4343W Wi-Fi CoB

  Antenna : chip

0 Likes
9 Replies