- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I just went through the re-installation of SDK 3.7.0-3 on Mac OS X and came across few things that I would like to highlight in this post. It may be helpful for someone else.
The installation is performed on El Capitan: 10.11.6, the WICED SDK is downloaded from here: WICED Wi-Fi Documents & Downloadsselect a *.7z file, those are for Mac OS X.
The steps are:
- Run the instance of WICED Wi-Fi Eclipse CDT. If Eclipse is not installed yet: please use this one here: WICED-SDK-2.4.1 IDE & SDK [Mac OS X Package Installer]There is only one release of the Mac OS X Package installer so you have to start with this version even though the SDK is not the latest one!
- When Eclipse is up and running, do File->Import->Existing Project Into Workspace
- Under "Select root directory" select the decompressed *.7z SDK that you just downloaded above.
- Select "WICED-SDK-xxx" (for example: WICED-SDK-3.7.0-3) under Projects.
- Usually I would not select "Copy projects into workspace" (that's just my current configuration).
- Working sets not selected for this example.
- Press "Finish".
- You should see now under the imported project called WICED-SDK-xxxx (for example: WICED-SDK-3.7.0-3) under "Project Explorer".
- Also the "Make Target" window should be populated with the project.
- If you see folders and source code under the Make Target, just press the button called "Hide Empty Folder", this will keep the rules only (cleaner!).
- At this point you should see the build window with an error similar to the one below (see Logs of error during SDK install, Step 11 below)
- The make used to build is not the right one, you need to use the make provided with the SDK.
- Configure the proper make file via: Project->Properties->Builder, remove the check for "Use default build command", replace the make with: ${workspace_loc:/WICED-SDK-3.7.0-3}/make
- Press Apply and close the window.
- Create a rule in the Make Target window as follow: snip.scan-BCM943362WCD4
- Execute the the build by clicking on the Target rule created above, see successful logs under STEP16 below
Logs of error during SDK install:
Step 11:
make all
tools/makefiles/wiced_toolchain_common.mk:202: *** incorrect 'make' used (/Applications/Xcode.app/Contents/Developer/usr/bin/make) - please use: (Windows) .\make.exe <target_string> (OS X, Linux) ./make <target_string>. Stop.
STEP 16:
**** Build of configuration Default for project WICED-SDK-3.7.0-3 ****
/Users/mickael/Documents/WICED_WiFi/WICED-SDK-3.7.0-3/make snip.scan-BCM943362WCD4
MAKEFILE MAKECMDGOALS=snip.scan-BCM943362WCD4 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. |
+-----------------------------------------------------------------------------------------------------+
MAKEFILE MAKECMDGOALS=snip.scan-BCM943362WCD4 OTA2_SUPPORT is disabled
Building Bootloader
Finished Building Bootloader
Processing resources
Creating security credentials
Making DCT image
Compiling App_Scan
Compiling Platform_BCM943362WCD4
Compiling WICED
Compiling Lib_SPI_Flash_Library_BCM943362WCD4
Compiling Lib_GPIO_button
Compiling WWD_ThreadX_Interface
Compiling WICED_ThreadX_Interface
Compiling WWD_for_SDIO_ThreadX
Compiling Supplicant_BESL
Compiling Lib_DNS
Compiling NetX_Duo
Compiling Lib_Wiced_RO_FS
Compiling STM32F2xx
Compiling Lib_TLV
Compiling Lib_base64
Compiling Lib_Linked_List
Compiling Lib_crypto_open
Compiling Lib_micro_ecc
Compiling WWD_NetX_Duo_Interface
Compiling WICED_NetX_Duo_Interface
Compiling common_GCC
Compiling STM32F2xx_Peripheral_Drivers
Compiling Lib_Ring_Buffer
Compiling Lib_crc
Compiling Lib_DHCP_Server
Compiling STM32F2xx_Peripheral_Libraries
Making build/snip.scan-BCM943362WCD4/libraries/App_Scan.a
Making build/snip.scan-BCM943362WCD4/libraries/Platform_BCM943362WCD4.a
Making build/snip.scan-BCM943362WCD4/libraries/WICED.a
Making build/snip.scan-BCM943362WCD4/libraries/Lib_SPI_Flash_Library_BCM943362WCD4.a
Making build/snip.scan-BCM943362WCD4/libraries/Lib_GPIO_button.a
Making build/snip.scan-BCM943362WCD4/libraries/WWD_ThreadX_Interface.a
Making build/snip.scan-BCM943362WCD4/libraries/WICED_ThreadX_Interface.a
Making build/snip.scan-BCM943362WCD4/libraries/WWD_for_SDIO_ThreadX.a
Making build/snip.scan-BCM943362WCD4/libraries/Supplicant_BESL.a
Making build/snip.scan-BCM943362WCD4/libraries/Lib_DNS.a
Making build/snip.scan-BCM943362WCD4/libraries/NetX_Duo.a
Making build/snip.scan-BCM943362WCD4/libraries/Lib_Wiced_RO_FS.a
Making build/snip.scan-BCM943362WCD4/libraries/STM32F2xx.a
Making build/snip.scan-BCM943362WCD4/libraries/Lib_TLV.a
Making build/snip.scan-BCM943362WCD4/libraries/Lib_base64.a
Making build/snip.scan-BCM943362WCD4/libraries/Lib_Linked_List.a
Making build/snip.scan-BCM943362WCD4/libraries/Lib_crypto_open.a
Making build/snip.scan-BCM943362WCD4/libraries/Lib_micro_ecc.a
Making build/snip.scan-BCM943362WCD4/libraries/WWD_NetX_Duo_Interface.a
Making build/snip.scan-BCM943362WCD4/libraries/WICED_NetX_Duo_Interface.a
Making build/snip.scan-BCM943362WCD4/libraries/common_GCC.a
Making build/snip.scan-BCM943362WCD4/libraries/STM32F2xx_Peripheral_Drivers.a
Making build/snip.scan-BCM943362WCD4/libraries/Lib_Ring_Buffer.a
Making build/snip.scan-BCM943362WCD4/libraries/Lib_crc.a
Making build/snip.scan-BCM943362WCD4/libraries/Lib_DHCP_Server.a
Making build/snip.scan-BCM943362WCD4/libraries/STM32F2xx_Peripheral_Libraries.a
Making snip.scan-BCM943362WCD4.elf
Making snip.scan-BCM943362WCD4.bin
snip.scan-BCM943362WCD4
----------------------------------|---------|---------|
| | Static |
Module | Flash | RAM |
----------------------------------+---------+---------|
App | 404 | 0 |
crc | 1060 | 0 |
Host MCU-family library | 13821 | 2737 |
Interrupt Vectors | 388 | 0 |
libc | 23551 | 3064 |
Networking | 989 | 8523 |
NetX-Duo - Interfaces & Stacks | 0 | 16 |
Other | 3678 | 92 |
Packet Buffers | 0 | 23086 |
platform | 1024 | 168 |
RAM Initialisation | 2316 | 0 |
resources | 16 | 0 |
Ring_Buffer | 116 | 0 |
Startup Stack & Link Script fill | 9 | 3 |
ThreadX | 7868 | 396 |
TLV | 28 | 0 |
Wi-Fi Firmware | 210624 | 0 |
WICED | 3909 | 980 |
WWD | 14391 | 3007 |
----------------------------------+---------+---------|
TOTAL (bytes) | 281876 | 42072 |
----------------------------------|---------|---------|
Build complete
Making .gdbinit