- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
-
Solved! Go to Solution.
- Labels:
-
SPI
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello:
For MISO did you try the default pin setting in platform.c ? and the sample code in the blog SPI in CYW43907 .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, that is what I am working with...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.