Wi-Fi Combo Forum Discussions
I found httpbin snip fails to connect server in FreeRTOS+debug build.
And then I trace to below problem: (with some of my debug print)
[18:31:04:726] Resolving IP address of www.httpbin.org␍␊
[18:31:04:980] www.httpbin.org is at 54.197.228.226␍␊
[18:31:05:019] Connecting to www.httpbin.org␍␊
[18:31:05:349] [mbedtls_ssl_handshake_client_step()] : [3399] : TLS Handshake state : 0 ␍␊
[18:31:05:385] #RET=0␍␊
[18:31:05:385] [mbedtls_ssl_handshake_client_step()] : [3399] : TLS Handshake state : 1 ␍␊
[18:31:05:385] #RET=0␍␊
[18:31:05:385] [mbedtls_ssl_handshake_client_step()] : [3399] : TLS Handshake state : 2 ␍␊
[18:31:05:719] #RET=0␍␊
[18:31:05:723] [mbedtls_ssl_handshake_client_step()] : [3399] : TLS Handshake state : 3 ␍␊
[18:31:05:980] #RET=0␍␊
[18:31:05:983] [mbedtls_ssl_handshake_client_step()] : [3399] : TLS Handshake state : 4 ␍␊
[18:31:06:236] [mbedtls_ssl_handshake_client_step()] : [3465] : Parse MBEDTLS_SSL_SERVER_KEY_EXCHANGE DONE : 0 ␍␊
[18:31:06:248] #RET=0␍␊
[18:31:06:248] [mbedtls_ssl_handshake_client_step()] : [3399] : TLS Handshake state : 5 ␍␊
[18:31:06:278] [mbedtls_ssl_handshake_client_step()] : [3472] : Parse MBEDTLS_SSL_CERTIFICATE_REQUEST DONE : 0 ␍␊
[18:31:06:278] #RET=0␍␊
[18:31:06:278] [mbedtls_ssl_handshake_client_step()] : [3399] : TLS Handshake state : 6 ␍␊
[18:31:06:278] ssl_parse_server_hello_done: Begin ret=134523681 ssl->record_read=1␍␊
[18:31:06:278] ssl_parse_server_hello_done: End ret=134523681␍␊
[18:31:06:278] [mbedtls_ssl_handshake_client_step()] : [3479] : Parse MBEDTLS_SSL_SERVER_HELLO_DONE DONE : 134523681 ␍␊
[18:31:06:293] #RET=134523681␍␊
[18:31:06:293] failed␍␊
[18:31:06:293] ! mbedtls_ssl_handshake returned -0x804ab21␍␊
[18:31:06:305] netconn_connect start_tls=4␍␊
[18:31:06:305] Discon failed to connect to serve␍rConnected to www.httpbin.org␍␊
[18:31:06:313] Connected to www.httpbin.org␊
[18:31:06:323] erver: 4␍␊
So obviously, the returned error is the valure of uninitialized ret variable in
ssl_parse_server_hello_done(). (ret=134523681 is 0x804ab21 in hex)
I don't think init ret to 0 is a correct fix, I'm not expert in this part,
maybe someone from cypress can take a look and provide the fix.
I'm also wondering if Cypress can upgrade the mbedTLS from v2.4.0 to v2.6.0 (latest stable version).
Show LessHi all,
I am using BCM94343WWCD1 , when I copy paste existing sample project and make changes to it .It builds but can't perform the task
Console shows this:
14:01:41 **** Build of configuration Default for project 43xxx_Wi-Fi ****
"C:\\WICED-Studio-5.2\\43xxx_Wi-Fi\\make.exe" ww101.02.gpio-BCM94343WWCD1 download run
MAKEFILE MAKECMDGOALS=ww101.02.gpio-BCM94343WWCD1 download run OTA2_SUPPORT is disabled
Building Bootloader
Finished Building Bootloader
Compiling App_Gpio_Test
Making build/ww101.02.gpio-BCM94343WWCD1/libraries/App_Gpio_Test.a
Making ww101.02.gpio-BCM94343WWCD1.elf
Making ww101.02.gpio-BCM94343WWCD1.bin
ww101.02.gpio-BCM94343WWCD1
----------------------------------|---------|---------|
| | Static |
Module | Flash | RAM |
----------------------------------+---------+---------|
App | 46 | 0 |
crc | 1060 | 0 |
Host MCU-family library | 15801 | 2693 |
Interrupt Vectors | 388 | 0 |
libc | 23751 | 3064 |
Networking | 1087 | 8523 |
NetX-Duo - Interfaces & Stacks | 0 | 16 |
Other | 3678 | 92 |
Packet Buffers | 0 | 23088 |
platform | 1464 | 288 |
RAM Initialisation | 2396 | 0 |
resources | 44 | 0 |
Ring_Buffer | 112 | 0 |
SPI_Flash_Library_BCM94343WWCD1 | 514 | 0 |
Startup Stack & Link Script fill | 9 | 5 |
ThreadX | 7924 | 396 |
WICED | 3451 | 1024 |
Wiced_RO_FS | 568 | 0 |
WWD | 15303 | 3123 |
----------------------------------+---------+---------|
TOTAL (bytes) | 75200 | 42312 |
----------------------------------|---------|---------|
Downloading Bootloader ...
No changes detected
Downloading DCT ...
No changes detected
Downloading Application ...
Download complete
Resetting target
Target running
Build complete
Making .gdbinit
And when I make a new project but the source code is same as the previous one and I got the below-mentioned error :
17:42:27 **** Build of configuration Default for project 43xxx_Wi-Fi ****
"C:\\WICED-Studio-5.2\\43xxx_Wi-Fi\\make.exe" ww101.02.02_blinkled-BCM94343WWCD1 download run
MAKEFILE MAKECMDGOALS=ww101.02.02_blinkled-BCM94343WWCD1 download run OTA2_SUPPORT is disabled
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../../ARM_CM4/crt0_GCC.o'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../../ARM_CM4/crt0_GCC.o'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../../ARM_CM4/hardfault_handler.o'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../../ARM_CM4/hardfault_handler.o'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../../ARM_CM4/host_cm4.o'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../../ARM_CM4/host_cm4.o'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../platform_resource.o'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../platform_resource.o'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../platform_stdio.o'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../platform_stdio.o'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../wiced_platform_common.o'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../wiced_platform_common.o'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../wwd_platform_separate_mcu.o'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../wwd_platform_separate_mcu.o'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../wwd_resources.o'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../wwd_resources.o'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../wiced_apps_common.o'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../wiced_apps_common.o'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../wiced_waf_common.o'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../wiced_waf_common.o'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../platform_nsclock.o'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../platform_nsclock.o'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/platform_vector_table.o'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/platform_vector_table.o'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/platform_init.o'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/platform_init.o'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/platform_unhandled_isr.o'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/platform_unhandled_isr.o'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/platform_filesystem.o'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/platform_filesystem.o'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/WAF/waf_platform.o'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/WAF/waf_platform.o'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../platform_button.o'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../platform_button.o'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../wiced_dct_internal_common.o'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../wiced_dct_internal_common.o'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../wiced_dct_update.o'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../wiced_dct_update.o'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/WWD/wwd_platform.o'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/WWD/wwd_platform.o'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/WWD/wwd_SDIO.o'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/WWD/wwd_SDIO.o'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../../ARM_CM4/crt0_GCC.o'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../../ARM_CM4/crt0_GCC.o'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../../ARM_CM4/hardfault_handler.o'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../../ARM_CM4/hardfault_handler.o'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../../ARM_CM4/host_cm4.o'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../../ARM_CM4/host_cm4.o'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../platform_resource.o'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../platform_resource.o'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../platform_stdio.o'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../platform_stdio.o'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../wiced_platform_common.o'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../wiced_platform_common.o'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../wwd_platform_separate_mcu.o'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../wwd_platform_separate_mcu.o'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../wwd_resources.o'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../wwd_resources.o'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../wiced_apps_common.o'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../wiced_apps_common.o'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../wiced_waf_common.o'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../wiced_waf_common.o'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../platform_nsclock.o'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../platform_nsclock.o'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/platform_vector_table.o'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/platform_vector_table.o'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/platform_init.o'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/platform_init.o'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/platform_unhandled_isr.o'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/platform_unhandled_isr.o'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/platform_filesystem.o'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/platform_filesystem.o'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/WAF/waf_platform.o'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/WAF/waf_platform.o'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../platform_button.o'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../platform_button.o'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../wiced_dct_internal_common.o'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../wiced_dct_internal_common.o'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../wiced_dct_update.o'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../wiced_dct_update.o'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/WWD/wwd_platform.o'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/WWD/wwd_platform.o'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/WWD/wwd_SDIO.o'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/WWD/wwd_SDIO.o'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../../ARM_CM4/crt0_GCC.o'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../../ARM_CM4/crt0_GCC.o'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../../ARM_CM4/hardfault_handler.o'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../../ARM_CM4/hardfault_handler.o'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../../ARM_CM4/host_cm4.o'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../../ARM_CM4/host_cm4.o'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../platform_resource.o'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../platform_resource.o'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../platform_stdio.o'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../platform_stdio.o'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../wiced_platform_common.o'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../wiced_platform_common.o'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../wwd_platform_separate_mcu.o'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../wwd_platform_separate_mcu.o'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../wwd_resources.o'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../wwd_resources.o'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../wiced_apps_common.o'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../wiced_apps_common.o'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../wiced_waf_common.o'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../wiced_waf_common.o'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../platform_nsclock.o'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../platform_nsclock.o'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/platform_vector_table.o'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/platform_vector_table.o'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/platform_init.o'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/platform_init.o'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/platform_unhandled_isr.o'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/platform_unhandled_isr.o'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/platform_filesystem.o'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/platform_filesystem.o'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/WAF/waf_platform.o'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/WAF/waf_platform.o'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../platform_button.o'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../platform_button.o'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../wiced_dct_internal_common.o'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../wiced_dct_internal_common.o'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../wiced_dct_update.o'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../wiced_dct_update.o'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/WWD/wwd_platform.o'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/WWD/wwd_platform.o'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/WWD/wwd_SDIO.o'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/WWD/wwd_SDIO.o'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/libraries/STM32F4xx.c_opts'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/libraries/STM32F4xx.c_opts'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/libraries/STM32F4xx.cpp_opts'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/libraries/STM32F4xx.cpp_opts'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/libraries/STM32F4xx.as_opts'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/libraries/STM32F4xx.as_opts'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/libraries/STM32F4xx.ar_opts'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/libraries/STM32F4xx.ar_opts'
tools/makefiles/wiced_elf.mk:228: warning: overriding recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/libraries/STM32F4xx.a'
tools/makefiles/wiced_elf.mk:228: warning: ignoring old recipe for target 'build/ww101.02.02_blinkled-BCM94343WWCD1/libraries/STM32F4xx.a'
make.exe[1]: *** No rule to make target 'apps/ww101/02/02_blinkled/../../ARM_CM4/crt0_GCC.c', needed by 'build/ww101.02.02_blinkled-BCM94343WWCD1/Modules/apps/ww101/02/02_blinkled/../../ARM_CM4/crt0_GCC.o'. Stop.
make.exe[1]: *** Waiting for unfinished jobs....
Building Bootloader
Finished Building Bootloader
Makefile:348: recipe for target 'main_app' failed
make: *** [main_app] Error 2
Please provide any help to resolve this issue.
Show LessWhen the bootloader attempts to load a new image from external serial flash, if init_sflash() fails, then the bootloader will attempt to run a program using an entry point that is unititialized garbage from the stack. The device won't boot.
What is happening:
1) load_program() [apps/waf/bootloader/bootloader.c] returns *new_entry_point to main().
2) load_program() calls wiced_waf_app_load() [WICED/platform/MCU/wiced_waf_common.c] to generate the value for *new_entry_point.
3) wiced_waf_app_load() creates a local structure, header, without explicitly initializing it to 0.
4) wiced_waf_app_load() calls wiced_apps_read() [WICED/platform/MCU/wiced_aps_common.c] to populate header with the correct values from the file,
5) but if init_sflash fails, wiced_apps_read() makes no changes to header and returns the uninitialized block of memory and a -1 instead of WICED_SUCCESS.
6) wiced_waf_app_load() does not check the return code from wiced_apps_read() and assigns what becomes *new_entry_point to header.entry which is just random unitialized garbage from the stack.
There are two things to fix in wiced_waf_app_load(): It needs to handle any error when it calls wiced_apps_read(), and It would be a good idea to initialize the local header structure to a set of known reasonable constants or zero.
Note: load_program() does not check the return code from wiced_waf_app_load(), but as long as *new_entry_point does not get assigned to garbage this should not matter too much because main() will start the program at a valid entry point.
wiced_result_t wiced_waf_app_load( const image_location_t* app_header_location, uint32_t* destination )
{...
elf_header_t header;
memset( &header, 0, sizeof( elf_header_t ) );// Initialization added.
...
if ( app_header_location->id == EXTERNAL_FIXED_LOCATION )
{
...
/* Read the image header */
// wiced_apps_read( app_header_location, (uint8_t*) &header, 0, sizeof( header ) ); // Original
//Replacement:
if ( wiced_apps_read( app_header_location, (uint8_t*) &header, 0, sizeof( header ) ) != WICED_SUCCESS )
{
return WICED_ERROR;
}
...
result = WICED_SUCCESS;
}
// This is confusing: Since result is always set to WICED_SUCCESS at the end of the previous "if",
// the following "if" is exactly the same as inserting "*(uint32_t *) destination = header.entry;" at the end of the previous "if" clause.
if ( result == WICED_SUCCESS )
{
*(uint32_t *) destination = header.entry;
}
return result;
}
Show LessHi all,
I am trying to build the snip.scan project for my bcm94343wwcd1 module and I followed all the instruction given in 101wifi video tutorial by cypress but I am getting access is denied in make file.
And one warning too.
Show LessHi Experts,
I see the BCM chip used in the two different boards remains the same. https://wikidevi.com/wiki/AMPAK_AP6181
I tied downloading the Banana Pi [AP6181] firmware into the WiCED board [BCM43362] but the WiFi module boot up fails.
In general is there any dependency with firmware across different boards though the underlying BCM module remains the same.
Regards,
Lyf
Show Lessproblematic code:
#define MIN(x,y) ((x) < (y) ? ( x 😞 (y))
/* Calculate the amount of data to read out of the buffer */
max_bytes_to_read = MIN(data_length, ring_buffer_used_space(ring_buffer));
The MIN macro ensures that the given y value (a function in this case) is executed twice instead of once. It is possible for interrupts to intercede and modify the ring buffer result.
In this case, the ring buffer could grow to a size larger than data_length and overrun the passed in buffer.
does this problem exist with other calls of MIN() macro?
fix:
used_space = ring_buffer_used_space(ring_buffer);
/* Calculate the amount of data to read out of the buffer */
max_bytes_to_read = MIN(data_length, used_space);
Show Lesswhen arriving in stop_mode_power_down_hook(), PRIMASK is not set so interrupts are enabled.
because of this, it is possible that there have been ISRs that have executed without their pending actions (threads that are pending on a message queue, semaphore, etc) occurring.
example flow of events:
1.
all threads sleeping
call idle function
idle function calls stop_mode_power_down_hook()
stop_mode_power_down_hook() determines device can sleep
GPIO iSR is called
ISR pushes a message to a worker thread
ISR exits
stop_mode_power_down_hook() continues & device enters deep sleep
deep sleep continues until another GPIO ISR or RTC alarm
device wakes, and performs context switch
ISR message is finally received by worker thread and processed.
example fix (which i could not implement because threadx glue code is closed):
1. determine no threads should be run
2. disables interrupts
3. check that all threads are still asleep. if there is work to do, enable interrupts and continue working.
4. call idle function
5. call stop_mode_power_down_hook and so on.
this method ensures that interrupts are disabled and any outstanding work is done before entering deep sleep. anything that occurs on the GPIO IRQ will bring the device immediately out of deep sleep.
Show LessHello,
I'm having issues with wiced_tcp_stream_read. I have an application which downloads a file from a server using wiced_tcp_stream_read, the implementation has been working up to and on WICED 5.1, after porting the application to WICED 5.2, I have been experiencing issues.
In general I have two issues.
First, on one of the my test connections, the wiced_tcp_stream_read fails and returns error. I have been tracking the reason for the error and is currently stuck at a wiced_packet_get_data call in wiced_tls.c (line 586).
Second, one other connections, I see corrupt data. Suddenly a single data block contains a series of random bytes, which is not a part of the downloaded data. I see this issue on three connections and the random data is added at different locations in the data depending on which connection I try to download the file on. I have not been able to look further into this issue, but for one off the connections I have found the location at where the data gets corrupted. Additional if I do a CRC on the downloaded data, it calculates different values each time, despite I'm downloading the same file.
Any other experiencing issues like this ?
Regards
René Josefsen
Show Less**WICED Studio 6.0.0:
WICED-Studio 6.0.0 Installer (Windows)
WICED-Studio-6.0.0 (Linux 64-bit)
Release Notes: WICED Studio 6.0.0
Note: The Linux 32-bit Installer is no longer supported.
**Broad Market release: Non-broad market devices such as the CYW207X9 family are not supported within this release. Please contact Cypress sales for access to the Early Adopter version.
=====================================================================
Cypress WICED Software Development Kit - CHANGELOG
=====================================================================
===========================
Changes for WICED-SDK 6.0
===========================
* Documentation
* Updates to CYW9207x9WCDEVAL-Hardware-User-Manual.pdf
* Updates to WICED-HID-Device-Library.pdf
* 43012-C0-Bluetooth API
* Enhanced Doxygen annotation to IoT protocols, Audio middleware and BTEWICED stack
* Added descriptive comments Azure IoTHub demo
* Chip/Platform support
* Added Platform Support for CYW943012A0FCREF_3 + CYW9WCD760PINSDAD2
* Added Platform Support for CYW943907WAE4
* Applications
* Bluetooth Internet Gateway enhanced to support BLE mesh on CYW43907WAE platform
* Added Application Support for 43012 platform
* Removed deprecated https_client application (replaced by httpbin_org)
* [20719] LE HID Keyboard
* [BT 20719,20735,20706] LE Mesh Sample Applications and Libraries
* [20719] Headset Pro Reference Application
* [20719] Button Manager library
* Libraries, Protocols, Drivers
* [all WiFi] Cirrent Library
* [Pro Wifi] Alexa Voice Services support
* [4390X] Flash XIP support
* [all WiFi] Added support to run Bonjour conformance test to handle ethernet cable change.
* [all WiFi] Added support for fragmented HTTP/2 HEADER frame decoding
* [Homekit]
* Added Firmware Revision characteristic to the bridge snippet application.
* Increased IP processing thread stack size to 6.5 kB
* Fixes to address Apple R9 adjunct review certification tests
* Added iCloud event logs as part of generic event callback.
* BLE Mesh gateway support to BIG for CYW43907WAE platform with BLE mesh library running on BCM20703A2 embedded mode
* [4390x WiFi] Enhancements to audio_client
* [all WiFi] Resolved Coverity issues to several WICED components
* [all WiFi] Improvements to the ring_buffer utility library
* [4390x WiFi] Reset sflash controller while deinit_sflash
* [all WiFi] Added support for DNS address caching
* [all WiFi] WICED Unified Low power framework that provides callbacks for peripherals/applications/libraries
* [all WiFi] Added resources_read snippet application
* [all WiFi] Stability fixes to FreeRTOS
* [all WiFi] Improvements to BESL/mbedTLS fragmentation/reassembly handling
* [4390x WiFi] Improved gSPI operation
* [all WiFi] Equip MQTT library to send/receive large buffers in single MQTT frame
* [4390x WiFi] Enhancements to AVS client library and application
* [all WiFi] Robustness fixes to DTLS, Gedday, DNS and MQTT length checking
* [IWA] PDS mode support for IWA platform
* [IWA] Memory optimization and stability fixes to IWA platform
* [all WiFi] Added enterprise roaming support to BESL/mbedTLS supplicant
* [all WiFi] Stabity fixes to BESL/mbedTLS when running in server mode relating to handling of certain cipher suites
* [all WiFi] Enhanced BESL/mbedTLS to support TLS v1.0 and v1.1 - TLS version support configurable via wiced_defaults.h
* Removed deprecated bt_smartbridge app (Replaced by Bluetooth Internet Gateway)
* Incorporated BT security vulnerability fixes to BTEWICED host stack
* Updated USB VID/PID to use Cypress ID
* Configure sflash to support 1-bit mode by default
* [all WiFi] Modified AMQP library to receive upto MTU size frames
* New WLAN firmware (5.90.230.22) added for 43362 platform with KRACK WPA2 fixes
* New WLAN firmware (7.45.98.38) added for 43364/43438/4343W platforms with KRACK WPA2 fixes
* New WLAN firmware (7.15.168.101) added for 4390x/54907 platform with KRACK WPA2 fixes
* New WLAN firmware (6.49.22) added for 43340 platform with KRACK WPA2 fixes
* Enabled WICED Pro packaging
* WICED Studio installer now uses InstallAnywhere 2017 (instead of IA 2015)
* WICED BT Designer is removed (will be added back in 6.1 release)
* System support
* Linux32 Support for IDE deprecated
* Power Analyser plugin support to Windows WICED Studio
* Enabled WICED Pro packaging
Show Less