SPI MISO on CYW43907

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

cross mob
jahoc_3635086
Level 1
Level 1
Welcome! First comment on KBA First question asked

I am working with the spi_new example in the blog post :

SPI in CYW43907

The SPI MISO line does not respond for either SPI1 or SPI2 when using the spi_gsio_driver. When using the spi_bb_driver I can receive data IF I use an alternate GPIO for the MISO pin.

The MISO for SPI1 also cannot be used as a GPIO, when configured as an IO (wiced_gpio_init), yet when SPI is not initialized this pin is toggling.

The software BB driver works great but I need at least 5Mhz clock speed for my application.

Does anyone have any idea why the MISO lines are dead with the spi_gsio_driver?

-

0 Likes
1 Solution

hello jacyh_3635086

I just have a test based on 43907 with default spi_gsio_driver interface,  didn't find problem for data exchange.

and I used the default SPI pin define.  

[WICED_SPI_1] =

  {

  .port = BCM4390X_SPI_0,

  .pin_mosi = &platform_gpio_pins[WICED_GPIO_21],

  .pin_miso = &platform_gpio_pins[WICED_GPIO_19],

  .pin_clock = &platform_gpio_pins[WICED_GPIO_20],

  .pin_cs = &platform_gpio_pins[WICED_GPIO_22],

  .driver = &spi_gsio_driver,

  },

my clock didn't change, it is 1M clock.

View solution in original post

3 Replies
Zhengbao_Zhang
Moderator
Moderator
Moderator
250 sign-ins First comment on KBA 10 questions asked

Hello:

For MISO did you try the default pin setting in platform.c  ? and the sample code in the blog SPI in CYW43907 .

Yes, that is what I am working with...

0 Likes

hello jacyh_3635086

I just have a test based on 43907 with default spi_gsio_driver interface,  didn't find problem for data exchange.

and I used the default SPI pin define.  

[WICED_SPI_1] =

  {

  .port = BCM4390X_SPI_0,

  .pin_mosi = &platform_gpio_pins[WICED_GPIO_21],

  .pin_miso = &platform_gpio_pins[WICED_GPIO_19],

  .pin_clock = &platform_gpio_pins[WICED_GPIO_20],

  .pin_cs = &platform_gpio_pins[WICED_GPIO_22],

  .driver = &spi_gsio_driver,

  },

my clock didn't change, it is 1M clock.