Can't configure WICED_GPIO_39 in CYW943907AEVAL1F as GPIO

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

cross mob
MaFa_974161
Level 5
Level 5
100 sign-ins 50 replies posted 50 questions asked

Hello.

I bought CYW943907AEVAL1F .

I want to configure WICED_GPIO_39  as GPIO using 

 

wiced_result_t wiced_result = wiced_gpio_init ( PIN_CS_MESSAGE_FPGA, OUTPUT_PUSH_PULL );

 

But I get wiced_result  = 7 (Unsupported function)

 

WICED_GPIO_39 is at J6:11 on EVAL and it is named as SPI_1_MISO

0 Likes
1 Solution
Aditi_B
Moderator
Moderator
Moderator
500 replies posted 5 questions asked 250 replies posted

Hi,

WICED_GPIO_39 is SPI_1_MISO as per platform.c and from platform.h you can find the CYW43907AEVAL1F pin definitions, there you'll find all the functions that this pin can support. As per that, it can only support SPI and not GPIO.

In the datasheet also, you'll find in the SPI section that - 

"SPI0 mentioned in Table 10 is multiplexed with GPIOs and can therefore support a bit banging based software SPI driver. SPI1 is not multiplexed with GPIOs and cannot support a bit banging based software SPI driver".

So, you can initialize SPI0 pins as GPIO.

Thanks

Aditi

View solution in original post

0 Likes
3 Replies
Aditi_B
Moderator
Moderator
Moderator
500 replies posted 5 questions asked 250 replies posted

Hi,

Can you share full terminal logs?

Thanks

Aditi

0 Likes
MaFa_974161
Level 5
Level 5
100 sign-ins 50 replies posted 50 questions asked

What log ?

The log that I produce my APP ?

The log is 

 

wiced_result_t wiced_result = wiced_gpio_init (  WICED_GPIO_39, OUTPUT_PUSH_PULL );

WPRINT_APP_INFO( ("wiced_result  = %d\n", (int)wiced_result) );

 

 I obtain "wiced_result  = 7"

0 Likes
Aditi_B
Moderator
Moderator
Moderator
500 replies posted 5 questions asked 250 replies posted

Hi,

WICED_GPIO_39 is SPI_1_MISO as per platform.c and from platform.h you can find the CYW43907AEVAL1F pin definitions, there you'll find all the functions that this pin can support. As per that, it can only support SPI and not GPIO.

In the datasheet also, you'll find in the SPI section that - 

"SPI0 mentioned in Table 10 is multiplexed with GPIOs and can therefore support a bit banging based software SPI driver. SPI1 is not multiplexed with GPIOs and cannot support a bit banging based software SPI driver".

So, you can initialize SPI0 pins as GPIO.

Thanks

Aditi

0 Likes