program - attach.wpa2 - error using CYW94343WWCD1_EVB

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

cross mob
alorc_4110946
Level 1
Level 1
First like received

I am working on the - attached.wpa2  - section of the video.  I attached my task name, mk file, c file, modified section of  wifi_config_dct.h , error and line item of error..

To best of my knowledge I have spelling and syntax correct as the video

Can you help to see why the program does not even start. If it is the difference in platforms please le me know what it is. I it is cockpit error, well!!!

Thank

aao

ww101.05.01.attach.wpa2-CYW94343WWCD1_EVB download

  1. 01.attach.wpa2.mk

NAME := Apps_ww101KEY_05_01_attach_wpa2

$(NAME)_SOURCE := 01_attach_wpa2.c

WIFI_CONFIG_DCT.H := wifi_config_dct.h

  1. 01.attach.wpa2.c

#include "wiced.h"

void application_start ()

{

    /* Variable */

    wiced_result_t connectResult;

    wiced_bool_t led = WICED_FALSE;

    wiced_init();   /* init the wiced device */

    connectResult = wiced_network_up(WICED_STA_INTERFACE, WICED_USE_EXTERNAL_DHCP_SERVER, NULL);

    If(connectResult == WICED_SUCCESS)  /* turn LED on connection successfull */

    {

        wiced_gpio_output_high(WICED_LED1);

    }

    While (1)

    {

        /*blink LED if connection not succesful */

        if ( connectResult != WICED_SUCCESS)

        {

            if (led ==WICED_TRUE)

            {

wiced_gpio_out_put_low(WICED_LED1);

                led = WICED_FALSE;

            }

            else

            {

wiced_gpio_output_high(WICED_LED1);

                led = WICED_TRUE;

            }

        }

        wiced_rtos_delay_milliseconds(250);

    }

}

wifi_config_dct.h (Where I put the SSID for the Project per video)

/**

* This is the default AP the device will connect to (as a client)

*/

#define CLIENT_AP_SSID       "WW101WPA2"

#define CLIENT_AP_PASSPHRASE "YOUR AP PASSPHRASE"

#define CLIENT_AP_BSS_TYPE WICED_BSS_TYPE_INFRASTRUCTURE

#define CLIENT_AP_SECURITY WICED_SECURITY_WPA2_MIXED_PSK

#define CLIENT_AP_CHANNEL    1

#define CLIENT_AP_BAND WICED_802_11_BAND_2_4GHZ

Error

07:47:19 **** Build of configuration Default for project 43xxx_Wi-Fi ****

"C:\\Users\\Al\\Documents\\WICED-Studio-6.2\\43xxx_Wi-Fi\\make.exe" ww101.05.01.attach.wpa2-CYW94343WWCD1_EVB download

MAKEFILE MAKECMDGOALS=ww101.05.01.attach.wpa2-CYW94343WWCD1_EVB download OTA2_SUPPORT is disabled

Making config file for first time

+-----------------------------------------------------------------------------------------------------+

| IMPORTANT NOTES |

+-----------------------------------------------------------------------------------------------------+

| Wi-Fi MAC Address |

|    The target Wi-Fi MAC address is defined in <WICED-SDK>/generated_mac_address.txt                 |

|    Ensure each target device has a unique address. |

+-----------------------------------------------------------------------------------------------------+

| MCU & Wi-Fi Power Save |

|    It is *critical* that applications using WICED Powersave API functions connect an accurate 32kHz |

|    reference clock to the sleep clock input pin of the WLAN chip. Please read the WICED Powersave   |

|    Application Note located in the documentation directory if you plan to use powersave features.   |

+-----------------------------------------------------------------------------------------------------+

tools/makefiles/wiced_config.mk:267: *** Unknown component: ww101.05.01.attach.wpa2. Stop.

make: *** No rule to make target 'build/ww101.05.01.attach.wpa2-CYW94343WWCD1_EVB/config.mk', needed by 'main_app'.  Stop.

07:47:23 Build Finished (took 4s.87ms)

Line 267 where error occrs in –      makefiles      wiced.confo.mk

  $(foreach

comp, $(COMPONENTS)

, $(if

$(wildcard

$(foreach dir,

$(addprefix

$(SOURCE_ROOT),

$(COMPONENT_DIRECTORIES))

, $(dir)

/$(subst

.,/,$(comp)

)

)

),,

$(error Unknown component:

$(comp))))

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.
Zhengbao_Zhang
Moderator
Moderator
Moderator
250 sign-ins First comment on KBA 10 questions asked

update my steps:

1. copy the source into apps/test , wiced version is 6.2.1.2

2.  compile the code in wiced by using below command:

  test.03_wpa2_info-CYW94343WWCD1_EVB download_apps

3. update my compile log in attached.

View solution in original post

7 Replies
MichaelF_56
Moderator
Moderator
Moderator
250 sign-ins 25 comments on blog 10 comments on blog
0 Likes
lock attach
Attachments are accessible only for community members.
Zhengbao_Zhang
Moderator
Moderator
Moderator
250 sign-ins First comment on KBA 10 questions asked

update my steps:

1. copy the source into apps/test , wiced version is 6.2.1.2

2.  compile the code in wiced by using below command:

  test.03_wpa2_info-CYW94343WWCD1_EVB download_apps

3. update my compile log in attached.

ZhengbaoZ_96

I did not get to work. kept asking for

test.05_wpa2_info-CYW94343WWCD1_EVB download_apps.

Question. why can it not be built in a program under apps that I wish to name. I thought that just as long as it is under the apps, it should work. I would like to keep under ww101 for reference.

Is there an oddity between the platform in video than the one we are using that has restrictions.

Thanks in advance

aao

0 Likes

Actually  I didn't change any code for the compile.

test.05_wpa2_info-CYW94343WWCD1_EVB download_apps.

For this question : Question. why can it not be built in a program under apps that I wish to name

You can change the folder name , after that you need to change the makefile name to the same with the folder.

0 Likes

I finally compiled the program and it build and downloaded. I used PuTTY and it is not joining and the LED blink so, not joining.

Question: Is the SSID and passphrass the same for CYW94343WWCD1_EVB as it is for the tutorial101 demo

#define CLIENT_AP_SSID "WW101WPA2"

#define CLIENT_AP_PASSPHRASE "YOUR_AP_PASSPHRASE"

I was able to join to my router was its ssid and password, but not with the above ssid and passphrase as shown in the video

0 Likes

hello:

For this setting, you can change it to match the router setting of yours .

The setting is used for all the platform in the release.

#define CLIENT_AP_SSID"WW101WPA2"

#define CLIENT_AP_PASSPHRASE "YOUR_AP_PASSPHRASE"

You can change it like:

#define CLIENT_AP_SSID"5g

#define CLIENT_AP_PASSPHRASE "12345678“

Thank you. you have been helpful and I used your suggestion. can close "case"