cancel
Showing results for 
Search instead for 
Did you mean: 

WICED Studio Wi-Fi Combo

chwa_1570756
New Contributor II

Hello,

     I have a board of BCM94343WWCD1 and want to test the button and LED example in snip.gpio app,  I try to create target and double click it : snip.gpio-BCM94343WWCD1 download run , the code can be found download to the target board but the LED not light when I push button.

     I open the gpio.c file and put mouse arrow on the character of 'WICED_LED1', it pop up a hint of : Symbol 'WICED_GPIO_15' could not be resolved, then I open the /platforms/BCM94343WWCD1/platform.h file and fine a line:  #define WICED_LED1   ( WICED_GPIO_11 ), which gpio definition is right following the schematics.

     So, I wonder why and where 'WICED_LED1' has been defined as 'WICED_GPIO_15', and why the right definition of 'WICED_GPIO_11' was not available even I try to

add #include "platform.h" in the gpio.c file, any obvious step I missed ?

Chris

0 Likes
1 Solution
RaktimR_11
Moderator
Moderator

Hello Chris,

I hope now you are able to see the LEDs blinking. The wrong suggestion is an Eclipse specific issue but intenrally it correctly gets mapped to the particular platform.h in the platform directory which you can verify by clicking on the Open Declaration option.

View solution in original post

8 Replies
RaktimR_11
Moderator
Moderator

Hello Chris,

Could you please share which WICED Studio version are you using? I checked with WICED Studio 6.2 on the same platform and it worked just fine. If you want to check the WICED_LED1 GPIO assignment, you can check the same in the platform folder (43xxx_Wi-Fi/platforms/CYW94343WWCD1_EVB/platform.h).

0 Likes
chwa_1570756
New Contributor II

Hello rroy,

Thanks for your reply.

I keep using WICED Studio version 4.4.2 as the local FAE told me the newer version can not support the platform board of BCM94343WWCD1, I also can not find CYW94343WWCD1_EVB platform listed in the older WICED Studio version.

So, are you sure the 6.2 version could support the board of BCM94343WWCD1?

Chris

0 Likes
RaktimR_11
Moderator
Moderator

Hello Chris,

For older WICED Studio, the platform name is BCM94343WWCD1, which is updated to CYW94343WWCD1_EVB from WICED Studio 6.2. BTW, could you please provide the console log that you are seeing?

chwa_1570756
New Contributor II

Hi rroy,

I tried to update WICED to version 6.2 and find \platform\CYW94343WWCD1_EVB under new WICED version, but those pin assignments were still not right in the gpio.c file, eg.  in the line of wiced_gpio_output_high( WICED_LED1 );  'WICED_LED1 ' was hinted as 'WICED_GPIO_15' , actully it should be 'WICED_GPIO_11' defined by platform.h of CYW94343WWCD1_EVB.

the listed below is console display:

09:32:18 **** Build of configuration Default for project 43xxx_Wi-Fi ****

"C:\\Users\\Administrator\\Documents\\WICED-Studio-6.2\\43xxx_Wi-Fi\\make.exe" snip.gpio-CYW94343WWCD1_EVB download run

MAKEFILE MAKECMDGOALS=snip.gpio-CYW94343WWCD1_EVB download run OTA2_SUPPORT is disabled

Building Bootloader

Building Serial Flash Loader App

MAKEFILE MAKECMDGOALS=waf.sflash_write-NoOS-CYW94343WWCD1_EVB-SDIO OTA2_SUPPORT is disabled

waf.sflash_write-NoOS-CYW94343WWCD1_EVB-SDIO

----------------------------------|---------|

                                  |  Static |

              Module              |   RAM   |

----------------------------------+---------|

App                               |   21130 |

Host MCU-family library           |   11604 |

Interrupt Vectors                 |     388 |

libc                              |     556 |

platform                          |    1104 |

Ring_Buffer                       |      40 |

SPI_Flash_Library_CYW94343WWCD1_EV|     936 |

Startup Stack & Link Script fill  |     486 |

WWD                               |     188 |

----------------------------------+---------|

TOTAL (bytes)                     |   36432 |

----------------------------------|---------|

Build complete

Finished Building Bootloader

Finished Building Serial Flash Loader App

snip.gpio-CYW94343WWCD1_EVB

----------------------------------|---------|---------|

                                  |         |  Static |

              Module              |  Flash  |   RAM   |

----------------------------------+---------+---------|

App                               |     172 |       0 |

crc                               |    1060 |       0 |

Host MCU-family library           |   15777 |    2691 |

Interrupt Vectors                 |     388 |       0 |

libc                              |   24599 |    3372 |

Networking                        |     694 |    9155 |

NetX-Duo - Interfaces & Stacks    |       0 |      16 |

Other                             |   11816 |     519 |

Packet Buffers                    |       0 |   22470 |

platform                          |    1456 |     288 |

RAM Initialisation                |    2668 |       0 |

resources                         |      44 |       0 |

Ring_Buffer                       |     112 |       0 |

SPI_Flash_Library_CYW94343WWCD1_EV|     510 |       0 |

Startup Stack & Link Script fill  |      20 |       4 |

ThreadX                           |    7876 |     400 |

WICED                             |    3226 |    1028 |

Wiced_RO_FS                       |     566 |       0 |

WWD                               |   13605 |    3153 |

----------------------------------+---------+---------|

TOTAL (bytes)                     |   81921 |   43096 |

----------------------------------|---------|---------|

Downloading Bootloader ...

Building apps lookup table

No changes detected

Downloading DCT ...

No changes detected

Downloading resources filesystem ... build/snip.gpio-CYW94343WWCD1_EVB/filesystem.bin at sector 1  size 96...

Downloading apps lookup table in wiced_apps.mk ... build/snip.gpio-CYW94343WWCD1_EVB/APPS.bin @ 0x0000 size

Downloading Application ...

No changes detected

Resetting target

Target running

Build complete

Making .gdbinit

09:33:25 Build Finished (took 1m:6s.635ms)

0 Likes
RaktimR_11
Moderator
Moderator

When you right click and open the declaration for WICED_LED1, it should be correctly mapped to WICED_GPIO_11 in the platform.h file. Are you seeing the LEDs to be flashing now? If not, what is the debug terminal log you are seeing?

0 Likes
chwa_1570756
New Contributor II

Hi rroy

When I right click and open the declaration for WICED_LED1,it says :"Selected text cannot be mapped to a symbol name",

and those wrong declarations have a red line under the text.

pastedImage_1.png

0 Likes
RaktimR_11
Moderator
Moderator

Hello Chris,

I hope now you are able to see the LEDs blinking. The wrong suggestion is an Eclipse specific issue but intenrally it correctly gets mapped to the particular platform.h in the platform directory which you can verify by clicking on the Open Declaration option.

View solution in original post

chwa_1570756
New Contributor II

Hi rroy,

I try to update WICED to version6.2 and select CYW94343WWCD1_EVB platform, then it can work properly.

Thanks a lot.

Chris