Can't Build snip.scan for the IoT Starter Kit

Solved
josh's picture
josh
Junior(0)

I'm having trouble building the "snip.scan-BCM94343W_AVN download_apps download run" target. I've added the "VALID_PLATFORMS := BCM94343W_AVN" to every mk file under the "apps/demo" folder and in "scan.mk". Here is the output. I'm using WICED SDK 3.7.0-3 and the platform files with the same version number on Windows 10.

 

I've also noticed that I need to put "#define NVRAM_GENERATED_MAC_ADDRESS "macaddr=B0:38:29:43:F2:25"" in "generated_mac_address.txt". Is this normal? It's not mentioned anywhere in the docs. If I don't add that, the compiler says NVRAM_GENERATED_MAC_ADDRESS is undefined.

 

<code>

18:06:51 **** Build of configuration Default for project WICED-SDK ****
"C:\\Users\\jxyu\\Documents\\WICED\\WICED-SDK-3.7.0-3\\WICED-SDK\\make.exe" snip.scan-BCM94343W_AVN download_apps download run
MAKEFILE MAKECMDGOALS=snip.scan-BCM94343W_AVN download_apps download run OTA2_SUPPORT is disabled
Building Bootloader
Building Serial Flash Loader App
MAKEFILE MAKECMDGOALS=waf.sflash_write-NoOS-BCM94343W_AVN-SDIO OTA2_SUPPORT is disabled
Applying changes made to: apps/waf/sflash_write/sflash_write.mk
+-----------------------------------------------------------------------------------------------------+
| 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=waf.sflash_write-NoOS-BCM94343W_AVN-SDIO OTA2_SUPPORT is disabled
Compiling STM32F4xx
Compiling common_GCC
Compiling STM32F4xx_Peripheral_Drivers
Compiling Lib_Ring_Buffer
Compiling Lib_crc
Compiling STM32F4xx_Peripheral_Libraries
Compiling App_SFlash_write
Compiling Platform_Avnet_Starter_Kit
Compiling WICED
Compiling WWD_NoOS_Interface
./WICED/internal/dct.c:182:41: error: 'CERTIFICATE_STRING' undeclared here (not in a function)
.security_credentials.certificate = CERTIFICATE_STRING,
^
./WICED/internal/dct.c:183:41: error: 'PRIVATE_KEY_STRING' undeclared here (not in a function)
.security_credentials.private_key = PRIVATE_KEY_STRING,
^
make.exe[3]: *** [build/waf.bootloader-NoOS-BCM94343W_AVN/DCT.elf] Error 1
make.exe[2]: *** [main_app] Error 2
tools/makefiles/standard_platform_targets.mk:54: recipe for target 'bootloader' failed
make.exe[1]: *** [bootloader] Error 2
make.exe[1]: *** Waiting for unfinished jobs....
Compiling Lib_SPI_Flash_Library_BCM94343W_AVN
Compiling Lib_GPIO_button
Compiling Lib_Wiced_RO_FS
Making build/waf.sflash_write-NoOS-BCM94343W_AVN-SDIO/libraries/STM32F4xx.a
Making build/waf.sflash_write-NoOS-BCM94343W_AVN-SDIO/libraries/common_GCC.a
Making build/waf.sflash_write-NoOS-BCM94343W_AVN-SDIO/libraries/Lib_Ring_Buffer.a
Making build/waf.sflash_write-NoOS-BCM94343W_AVN-SDIO/libraries/STM32F4xx_Peripheral_Drivers.a
Making build/waf.sflash_write-NoOS-BCM94343W_AVN-SDIO/libraries/Lib_crc.a
Making build/waf.sflash_write-NoOS-BCM94343W_AVN-SDIO/libraries/STM32F4xx_Peripheral_Libraries.a
Making build/waf.sflash_write-NoOS-BCM94343W_AVN-SDIO/libraries/App_SFlash_write.a
Making build/waf.sflash_write-NoOS-BCM94343W_AVN-SDIO/libraries/WICED.a
Making build/waf.sflash_write-NoOS-BCM94343W_AVN-SDIO/libraries/Platform_Avnet_Starter_Kit.a
Making build/waf.sflash_write-NoOS-BCM94343W_AVN-SDIO/libraries/WWD_NoOS_Interface.a
Making build/waf.sflash_write-NoOS-BCM94343W_AVN-SDIO/libraries/Lib_SPI_Flash_Library_BCM94343W_AVN.a
Making build/waf.sflash_write-NoOS-BCM94343W_AVN-SDIO/libraries/Lib_GPIO_button.a
Making build/waf.sflash_write-NoOS-BCM94343W_AVN-SDIO/libraries/Lib_Wiced_RO_FS.a
Making waf.sflash_write-NoOS-BCM94343W_AVN-SDIO.elf

tools/makefiles/wiced_elf.mk:240: recipe for target 'build/waf.sflash_write-NoOS-BCM94343W_AVN-SDIO/binary/waf.sflash_write-NoOS-BCM94343W_AVN-SDIO.elf' failed
make.exe[3]: *** [build/waf.sflash_write-NoOS-BCM94343W_AVN-SDIO/binary/waf.sflash_write-NoOS-BCM94343W_AVN-SDIO.elf] Error -1073741502
Makefile:286: recipe for target 'main_app' failed
make.exe[2]: *** [main_app] Error 2
make.exe[1]: *** [sflash_write_app] Error 2
tools/makefiles/wiced_apps.mk:285: recipe for target 'sflash_write_app' failed
Makefile:286: recipe for target 'main_app' failed
make: *** [main_app] Error 2

18:07:21 Build Finished (took 29s.800ms)

</code>

 

josh's picture
josh
Junior(0)

Also, I can't build "demo.aws_iot.shadow-BCM94343W_AVN download download_apps run" even though I added the "VALID_PLATFORMS" to "shadow.mk". The output is below.

 

18:16:09 **** Build of configuration Default for project WICED-SDK ****
"C:\\Users\\jxyu\\Documents\\WICED\\WICED-SDK-3.7.0-3\\WICED-SDK\\make.exe" demo.aws_iot.shadow-BCM94343W_AVN download download_apps run
MAKEFILE MAKECMDGOALS=demo.aws_iot.shadow-BCM94343W_AVN download download_apps run OTA2_SUPPORT is disabled
Building Bootloader
Building Serial Flash Loader App
MAKEFILE MAKECMDGOALS=waf.sflash_write-NoOS-BCM94343W_AVN-SDIO OTA2_SUPPORT is disabled
tools/makefiles/wiced_elf.mk:254: recipe for target 'display_map_summary' failed
make.exe[3]: *** [display_map_summary] Error -1073741502
make.exe[3]: *** Waiting for unfinished jobs....
Making waf.sflash_write-NoOS-BCM94343W_AVN-SDIO.bin
Makefile:286: recipe for target 'main_app' failed
make.exe[2]: *** [main_app] Error 2
tools/makefiles/wiced_apps.mk:285: recipe for target 'sflash_write_app' failed
make.exe[1]: *** [sflash_write_app] Error 2
make.exe[1]: *** Waiting for unfinished jobs....
./WICED/internal/dct.c:182:41: error: 'CERTIFICATE_STRING' undeclared here (not in a function)
     .security_credentials.certificate = CERTIFICATE_STRING,
                                         ^
./WICED/internal/dct.c:183:41: error: 'PRIVATE_KEY_STRING' undeclared here (not in a function)
     .security_credentials.private_key = PRIVATE_KEY_STRING,
                                         ^
make.exe[3]: *** [build/waf.bootloader-NoOS-BCM94343W_AVN/DCT.elf] Error 1
make.exe[3]: *** Waiting for unfinished jobs....
make.exe[2]: *** [main_app] Error 2
make.exe[1]: *** [bootloader] Error 2
tools/makefiles/standard_platform_targets.mk:54: recipe for target 'bootloader' failed
Makefile:286: recipe for target 'main_app' failed
make: *** [main_app] Error 2

18:16:13 Build Finished (took 4s.325ms)

josh's picture
josh
Junior(0)

I think I found the problem. Turns out that the "perl.exe" that came with the SDK has problems running on WIndows 10. I changed the "wiced_toolchain_common.mk" to point PERL to the perl.exe I installed through Cygwin and now everything works fine. Hope it helps!