word length of the spi port is always 8

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

cross mob
Anonymous
Not applicable

Hi,

I want to drive a spi radio that talks in 16 bit word;

At the SPI configuration i changed like this (it's similar to the spi flash exemple). In the oscope i see only 8 bits word length.

Everything looks ok at stm32fxxx_platform.c and stm32fxxx_platform.c files.

Any idea to solve this?

wiced_spi_device_t wiced_spi_radio =

{

    .port        = WICED_SPI_1,

    .chip_select = WICED_SPI_RADIO_CS,

    .speed       = 1000000,

    .mode        = SPI_CLOCK_RISING_EDGE | SPI_CLOCK_IDLE_HIGH | SPI_NO_DMA | SPI_MSB_FIRST,

    .bits        = 16

};

0 Likes
1 Solution
Anonymous
Not applicable

When spi.port=16 in the wiced_spi_flash definition, the init may be re written in the stm32fxxx_platform.c as the use of the wiced init wiced_spi_init  makes the platform crash :

config :

BCM9WCDUSI09 eval board

spi to communicate with a 433 MHz tranceiver

View solution in original post

0 Likes
2 Replies
Anonymous
Not applicable

When spi.port=16 in the wiced_spi_flash definition, the init may be re written in the stm32fxxx_platform.c as the use of the wiced init wiced_spi_init  makes the platform crash :

config :

BCM9WCDUSI09 eval board

spi to communicate with a 433 MHz tranceiver

0 Likes
Anonymous
Not applicable

Thank you for the extra information.

This has highlighted an item that's been on our todo list and has now been bumped up in priority.