Wi-Fi Combo Forum Discussions
text.format{('custom.tabs.no.results')}
We use WICED 5.1 on stm32f415 with feature :
- WIFI station
- BLE server
- BLE client
- AMQP
we using the default wiced config (all in SRAM) but we haven't enought free space in SRAM (128 Ko - heap size)
Which data can we move in CCM_SRAM ?
When we moving .bss, the program doesn't work (DMA can't acces to CCM )
Show LessWhen building snip.stdio using WICED 5.2 download apps and a 909740 byte file on the BCM943907AEVAL1F only 24 sectors were allocated for the file. Also a resources file was saved when the only thing I specified was APP0.
Here is the output from the make:
Creating Filesystem BCM94390x_targets.mk ...
Downloading DCT ... build/snip.stdio-BCM943907AEVAL1F/DCT.bin @ SFLASH_DCT_LOC=0x00008000
./tools/common/Win32/mk_wicedfs32 build/snip.stdio-BCM943907AEVAL1F/filesystem.bin build/snip.stdio-BCM943907AEVAL1F/resources/Staging/
Creating Filesystem Done
Building apps lookup table
Downloading Bootloader ...
Finished Downloading Bootloader
Downloading resources filesystem ... build/snip.stdio-BCM943907AEVAL1F/filesystem.bin at sector 17 size 124...
Downloading APP0 build/snip.stdio-BCM943907AEVAL1F/binary/snip.stdio-BCM943907AEVAL1F.stripped.elf @ sector 141 address 577536 size 24...
Downloading apps lookup table in wiced_apps.mk ... build/snip.stdio-BCM943907AEVAL1F/APPS.bin @ 0x10000 size
Resetting target
Target running
Build complete
Making .gdbinit
Here is the makefile I used:
NAME := App_stdio
$(NAME)_SOURCES := stdio.c
APP0 := apps/snip/stdio/b445586f3985f4cab7f3bef20d74c549.elf
I also tried the rebranded platform to see if that would work and got the same result:
Creating Filesystem BCM94390x_targets.mk ...
Downloading DCT ... build/snip.stdio-CYW943907AEVAL1F/DCT.bin @ SFLASH_DCT_LOC=0x00008000
./tools/common/Win32/mk_wicedfs32 build/snip.stdio-CYW943907AEVAL1F/filesystem.bin build/snip.stdio-CYW943907AEVAL1F/resources/Staging/
Creating Filesystem Done
Building apps lookup table
Downloading Bootloader ...
Finished Downloading Bootloader
Downloading resources filesystem ... build/snip.stdio-CYW943907AEVAL1F/filesystem.bin at sector 17 size 124...
Downloading APP0 build/snip.stdio-CYW943907AEVAL1F/binary/snip.stdio-CYW943907AEVAL1F.stripped.elf @ sector 141 address 577536 size 24...
Downloading apps lookup table in wiced_apps.mk ... build/snip.stdio-CYW943907AEVAL1F/APPS.bin @ 0x10000 size
Resetting target
Target running
Build complete
Making .gdbinit
Show LessHi All,
I tested demo.bt_smartbridge on 43438 based platform (host: STM32F11/2).
It works when 2 BLE peripheral devices around.
When there are more than 3 peripheral devices around, even just scanning will cause exception:
GKI_exception 65524 getbuf: out of buffers
Any idea about this ?
Log as attachment.
Show LessDear Cypress Team,
We have been developing our project using WICED 3.7 (with FreeRTOS as our OS) for a while now and we feel that there are some stability issues that have not been addressed in this SDK version. We Would like to migrate to WICED 5, however we are not sure if our controller (BCM43340) and selected OS (FreeRTOS) is supported.
We are using Azurewave AW-AH640 SiP which contains BCM43340.
Can you please confirm if it is possible to migrate to WICED 5 in our situation.
Regards,
Erik
Hi Cypress team,
I am developing CYM43341/SDK-3.5.2 in a IoT gateway project. I need to report BLE hardware counter in order to pass the receiver blocking test in new CE certification. Is there any API I can use to get the counters? (such as Rx scan pkts, including error packet count)
Regards,
Clark
Show LessAnother software engineer identified a problem where Apple WAC would sometimes fail after his iPad had connected to a custom board with a Murata Module. This occurred during the Soft AP phase and at the end of the Soft AP phase you see a message about disconnecting from the iPad:
Deauthenticating STA MAC: B0:48:1A:EA:A1:21
On a successful WAC, the iPad has already disconnected before it gets to that point. This didn't happen very often. When I tried connecting to the Soft AP using a either a windows or linux computer, just before doing the WAC configuration with the iPad, most of the time WAC failed, but sometimes it still succeeded. Because I didn't want to wait for half an hour, In wac.c, I set
#define WAC_CONFIGURED_TIMEOUT_IN_SEC (WAC_MINUTE_TIMEOUT_IN_SEC * 2)
If anyone has an idea about how to fix this it would be much appreciated.
Here is output with debug messages turned on:
[WAC] starting
[WAC for WICED v111] ============== [L409] : Starting WAC for WICED
[WAC for WICED v111] ============== [L444] : MFi-SAP initialized
[WAC for WICED v111] ============== [L1392] : Added Apple Device IE to software AP interface
IPv4 network ready IP: 192.168.0.1
Setting IPv6 link-local address
IPv6 network ready IP: FE80:0000:0000:0000:FEDB:B3FF:FEA7:FAB1
[WAC for WICED v111] ============== [L465] : Software AP enabled with SSID "Unconfigured Device 116780", channel 6
[WAC for WICED v111] ============== [L474] : Persistent HTTP server started on software AP
[WAC for WICED v111] ============== [L480] : mDNS initialized on Software AP
[WAC for WICED v111] ============== [L486] : Advertise mDNS service with name [Birdi]
[WAC for WICED v111] ============== [L910] : mDNS : Device ID = [D1:22:8C:11:67:80]
[WAC for WICED v111] ============== [L950] : mdns_add_service returned err = [0]!
[WAC for WICED v111] ============== [L953] : Advertised MFi config mDNS service
[WAC for WICED v111] ============== [L956] : Retry count available = [80]!
[WAC for WICED v111] ============== [L962] : Response wait count = [1]!
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [1]!
[WAC for WICED v111] ============== [L962] : Response wait count = [2]!
[WAC for WICED v111] ============== [L357] : Configuring device (00:16:CF:A5:38:B4) joined
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [2]!
[WAC for WICED v111] ============== [L962] : Response wait count = [3]!
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [3]!
[WAC for WICED v111] ============== [L962] : Response wait count = [4]!
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [4]!
[WAC for WICED v111] ============== [L962] : Response wait count = [5]!
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [5]!
[WAC for WICED v111] ============== [L962] : Response wait count = [6]!
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [6]!
[WAC for WICED v111] ============== [L962] : Response wait count = [7]!
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [7]!
[WAC for WICED v111] ============== [L962] : Response wait count = [8]!
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [8]!
[WAC for WICED v111] ============== [L962] : Response wait count = [9]!
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [9]!
[WAC for WICED v111] ============== [L962] : Response wait count = [10]!
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [10]!
[WAC for WICED v111] ============== [L962] : Response wait count = [11]!
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [11]!
[WAC for WICED v111] ============== [L962] : Response wait count = [12]!
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [12]!
[WAC for WICED v111] ============== [L962] : Response wait count = [13]!
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [13]!
[WAC for WICED v111] ============== [L962] : Response wait count = [14]!
[WAC for WICED v111] ============== [L357] : Configuring device (B0:48:1A:EA:A1:21) joined
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [14]!
[WAC for WICED v111] ============== [L962] : Response wait count = [15]!
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [15]!
[WAC for WICED v111] ============== [L962] : Response wait count = [16]!
[WAC for WICED v111] ============== [L715] : Request received for /auth-setup
[WAC for WICED v111] ============== [L738] : MFi-SAP complete
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [16]!
[WAC for WICED v111] ============== [L962] : Response wait count = [17]!
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [17]!
[WAC for WICED v111] ============== [L962] : Response wait count = [18]!
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [18]!
[WAC for WICED v111] ============== [L962] : Response wait count = [19]!
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [19]!
[WAC for WICED v111] ============== [L962] : Response wait count = [20]!
[WAC for WICED v111] ============== [L715] : Request received for /auth-setup
[WAC for WICED v111] ============== [L964] : wiced_r complete
aphore returned err = [2]!
[WAC for WICED v111] ============== [L738] : MFi-SAP complete
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [20]!
[WAC for WICED v111] ============== [L962] : Response wait count = [21]!
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [21]!
[WAC for WICED v111] ============== [L962] : Response wait count = [22]!
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [22]!
[WAC for WICED v111] ============== [L962] : Response wait count = [23]!
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [23]!
[WAC for WICED v111] ============== [L962] : Response wait count = [24]!
[WAC for WICED v111] ============== [L715] : Request received for /auth-setup
[WAC for WICED v111] ============== [L738] : MFi-SAP complete
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [24]!
[WAC for WICED v111] ============== [L962] : Response wait count = [25]!
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [25]!
[WAC for WICED v111] ============== [L962] : Response wait count = [26]!
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [26]!
[WAC for WICED v111] ============== [L962] : Response wait count = [27]!
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [27]!
[WAC for WICED v111] ============== [L962] : Response wait count = [28]!
[WAC for WICED v111] ============== [L715] : Request received for /auth-setup
[WAC for WICED v111] ============== [L964] : wiced_rtcomplete
aphore returned err = [2]!
[WAC for WICED v111] ============== [L738] : MFi-SAP complete
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [28]!
[WAC for WICED v111] ============== [L962] : Response wait count = [29]!
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [29]!
[WAC for WICED v111] ============== [L962] : Response wait count = [30]!
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [30]!
[WAC for WICED v111] ============== [L962] : Response wait count = [31]!
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [31]!
[WAC for WICED v111] ============== [L962] : Response wait count = [32]!
[WAC for WICED v111] ============== [L715] : Request received for /auth-setup
[WAC for WICED v111] ============== [L738] : MFi-SAP complete
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [32]!
[WAC for WICED v111] ============== [L962] : Response wait count = [33]!
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [33]!
[WAC for WICED v111] ============== [L962] : Response wait count = [34]!
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [34]!
[WAC for WICED v111] ============== [L962] : Response wait count = [35]!
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [35]!
[WAC for WICED v111] ============== [L962] : Response wait count = [36]!
[WAC for WICED v111] ============== [L715] : Request received for /auth-setup
[WAC for WICED v111] ============== [L738] : MFi-SAP complete
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [36]!
[WAC for WICED v111] ============== [L962] : Response wait count = [37]!
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [37]!
[WAC for WICED v111] ============== [L962] : Response wait count = [38]!
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [38]!
[WAC for WICED v111] ============== [L962] : Response wait count = [39]!
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [39]!
[WAC for WICED v111] ============== [L962] : Response wait count = [40]!
[WAC for WICED v111] ============== [L715] : Request received for /auth-setup
[WAC for WICED v111] ============== [L738] : MFi-SAP complete
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [40]!
[WAC for WICED v111] ============== [L962] : Response wait count = [41]!
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [41]!
[WAC for WICED v111] ============== [L962] : Response wait count = [42]!
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [42]!
[WAC for WICED v111] ============== [L962] : Response wait count = [43]!
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [43]!
[WAC for WICED v111] ============== [L962] : Response wait count = [44]!
[WAC for WICED v111] ============== [L715] : Request received for /auth-setup
[WAC for WICED v111] ============== [L738] : MFi-SAP complete
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [44]!
[WAC for WICED v111] ============== [L962] : Response wait count = [45]!
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [45]!
[WAC for WICED v111] ============== [L962] : Response wait count = [46]!
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [46]!
[WAC for WICED v111] ============== [L962] : Response wait count = [47]!
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [47]!
[WAC for WICED v111] ============== [L962] : Response wait count = [48]!
[WAC for WICED v111] ============== [L715] : Request received for /auth-setup
[WAC for WICED v111] ============== [L738] : MFi-SAP complete
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [48]!
[WAC for WICED v111] ============== [L962] : Response wait count = [49]!
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [49]!
[WAC for WICED v111] ============== [L962] : Response wait count = [50]!
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [50]!
[WAC for WICED v111] ============== [L962] : Response wait count = [51]!
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [51]!
[WAC for WICED v111] ============== [L962] : Response wait count = [52]!
[WAC for WICED v111] ============== [L715] : Request received for /auth-setup
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [52]!
[WAC for WICED v111] ============== [L962] : Response wait count = [53]!
[WAC for WICED v111] ============== [L738] : MFi-SAP complete
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [53]!
[WAC for WICED v111] ============== [L962] : Response wait count = [54]!
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [54]!
[WAC for WICED v111] ============== [L962] : Response wait count = [55]!
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [55]!
[WAC for WICED v111] ============== [L962] : Response wait count = [56]!
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [56]!
[WAC for WICED v111] ============== [L962] : Response wait count = [57]!
[WAC for WICED v111] ============== [L715] : Request received for /auth-setup
[WAC for WICED v111] ============== [L738] : MFi-SAP complete
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [57]!
[WAC for WICED v111] ============== [L962] : Response wait count = [58]!
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [58]!
[WAC for WICED v111] ============== [L962] : Response wait count = [59]!
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [59]!
[WAC for WICED v111] ============== [L962] : Response wait count = [60]!
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [60]!
[WAC for WICED v111] ============== [L962] : Response wait count = [61]!
[WAC for WICED v111] ============== [L715] : Request received for /auth-setup
[WAC for WICED v111] ============== [L738] : MFi-SAP complete
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [61]!
[WAC for WICED v111] ============== [L962] : Response wait count = [62]!
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [62]!
[WAC for WICED v111] ============== [L962] : Response wait count = [63]!
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [63]!
[WAC for WICED v111] ============== [L962] : Response wait count = [64]!
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [64]!
[WAC for WICED v111] ============== [L962] : Response wait count = [65]!
[WAC for WICED v111] ============== [L715] : Request received for /auth-setup
[WAC for WICED v111] ============== [L738] : MFi-SAP complete
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [65]!
[WAC for WICED v111] ============== [L962] : Response wait count = [66]!
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [66]!
[WAC for WICED v111] ============== [L962] : Response wait count = [67]!
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [67]!
[WAC for WICED v111] ============== [L962] : Response wait count = [68]!
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [68]!
[WAC for WICED v111] ============== [L962] : Response wait count = [69]!
[WAC for WICED v111] ============== [L715] : Request received for /auth-setup
[WAC for WICED v111] ============== [L738] : MFi-SAP complete
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [69]!
[WAC for WICED v111] ============== [L962] : Response wait count = [70]!
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [70]!
[WAC for WICED v111] ============== [L962] : Response wait count = [71]!
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [71]!
[WAC for WICED v111] ============== [L962] : Response wait count = [72]!
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [72]!
[WAC for WICED v111] ============== [L962] : Response wait count = [73]!
[WAC for WICED v111] ============== [L715] : Request received for /auth-setup
[WAC for WICED v111] ============== [L738] : MFi-SAP complete
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [73]!
[WAC for WICED v111] ============== [L962] : Response wait count = [74]!
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [74]!
[WAC for WICED v111] ============== [L962] : Response wait count = [75]!
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [75]!
[WAC for WICED v111] ============== [L962] : Response wait count = [76]!
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [76]!
[WAC for WICED v111] ============== [L962] : Response wait count = [77]!
[WAC for WICED v111] ============== [L715] : Request received for /auth-setup
[WAC for WICED v111] ============== [L738] : MFi-SAP complete
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [77]!
[WAC for WICED v111] ============== [L962] : Response wait count = [78]!
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [78]!
[WAC for WICED v111] ============== [L962] : Response wait count = [79]!
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [79]!
[WAC for WICED v111] ============== [L962] : Response wait count = [80]!
[WAC for WICED v111] ============== [L964] : wiced_rtos_get_semaphore returned err = [2]!
[WAC for WICED v111] ============== [L967] : Haven't received response yet. Re-advertise the service again. Count = [80]!
[WAC for WICED v111] ============== [L983] : Accessory in WAC mode for more than 30 minutes. Wait is over!
[WAC for WICED v111] ============== [L490] : Failed to advertise mDNS service on infrastructure network
[WAC for WICED v111] ============== [L501] : Shutdown HTTP server on software AP
[WAC for WICED v111] ============== [L509] : HTTP server shutdown on software AP
[WAC for WICED v111] ============== [L520] : mDNS shutdown on Software AP
Deauthenticating STA MAC: B0:48:1A:EA:A1:21
Deauthenticating STA MAC: 00:16:CF:A5:38:B4
[WAC for WICED v111] ============== [L357] : Configuring device (00:16:CF:A5:38:B4) disconnected
[WAC for WICED v111] ============== [L531] : Software AP shutdown
:48:1A:EA:A1:21) disconnected
[WAC for WICED v111] ============== [L531] : Software AP shutdown
[WAC for WICED v111] ============== [L357] : Configuring device (00:00:00:00:00:00) disconnected
0
[WAC for WICED v111] ============== [L648] : Exit WAC process
WAC failure
[wifi] Clearing DCT
[wifi] Resetting device to enter WAC process!!
Show LessIt seems that Cypress provides AES-CCM APIs in wiced_security.h, though without source code.
/**
* @brief AES-CCM MAC calculation
*
* @param[in] ctx : AES context
* @param[in] length : Length of the input data
* @param[in] aad_length : Length of the additional associated data
* @param[in] nonce : The nonce to use
* @param[in] nonce_length : Length of nonce.
* @param[in] aad_input : The buffer containing the additional associated data
* @param[in] data_input : Buffer holding the input data
* @param[out] mac_output : Buffer which receives the output MAC
*/
int aes_ccm_mac( aes_context_t *ctx, uint32_t length, uint32_t aad_length, const unsigned char *nonce,int nonce_length, const unsigned char *aad_input, const unsigned char *data_input, unsigned char mac_output[8] );
/**
* @brief AES-CCM encryption
*
* @param[in] ctx : AES context
* @param[in] length : Length of the input data
* @param[in] aad_length : Length of the additional associated data
* @param[in] nonce : The nonce to use
* @param[in] nonce_length : Length of nonce.
* @param[in] aad_input : The buffer containing the additional associated data
* @param[in] plaintext_input : Buffer holding the input data
* @param[out] ciphertext_output : Buffer which receives the output ciphertext
* @param[out] mac_output : Buffer which recieves the output MAC
*/
int aes_encrypt_ccm( aes_context_t *ctx, uint32_t length, uint32_t aad_length, const unsigned char *nonce, uint8_t nonce_length, const unsigned char *aad_input, const unsigned char *plaintext_input, unsigned char *ciphertext_output, unsigned char mac_output[8] );
/**
* @brief AES-CCM decryption
*
* @param[in] ctx : AES context
* @param[in] length : Length of the input data
* @param[in] aad_length : Length of the additional associated data
* @param[in] nonce : The nonce to use
* @param[in] nonce_length : Length of nonce.
* @param[in] aad_input : The buffer containing the additional associated data
* @param[in] ciphertext_input : Buffer holding the input data
* @param[out] plaintext_output : Buffer which receives the output plaintext
*/
int aes_decrypt_ccm( aes_context_t *ctx, uint32_t length, uint32_t aad_length, const unsigned char *nonce, uint8_t nonce_length, const unsigned char *aad_input, const unsigned char *ciphertext_input, unsigned char *plaintext_output );
I found sample code for aes_decrypt_ccm in wiced_cooee.c, but I can't find any sample for aes_encrypt_ccm.
I tried to follow snip.crypto as the following snippet, but I just can't do it right.
<snippet>
int ret;
aes_context_t context_aes_enc;
aes_context_t context_aes_dec;
uint8_t key[16] = {0};
uint8_t nonce[13] = {0}; // 13 == strlen("used once !!!")
uint8_t cipher_text[64] = {0};
uint8_t plain_text[64] = {0};
uint8_t plain_text_len = strlen("plain text SSID and PSWD");
uint8_t aad_data[13] = {0}; // 1ˇ = strlen("wtf is this ?")
uint8_t mac_enc[8] = {0};
uint8_t mac_dec[8] = {0};
uint8_t plain_text_dec[64] = {0};
memcpy(key, "some secret key!", 16); // strlen("some secret key!") == 16 bytes == 128 bit
memcpy(nonce, "used once !!!", sizeof(nonce));
memcpy(plain_text, "plain text SSID and PSWD", plain_text_len);
memcpy(aad_data, "wtf is this ?", 13);
memset(&context_aes_enc, 0, sizeof(context_aes_enc));
aes_setkey_enc(&context_aes_enc, key, 128);
PRINT("done aes_setkey, key: %.*s\n", 16, (char*)key);
ret = aes_encrypt_ccm(&context_aes_enc, plain_text_len, sizeof(aad_data), nonce, sizeof(nonce), aad_data, plain_text, cipher_text, mac_enc);
PRINT("aes_encrypt_ccm() = %d\n", ret);
PRINT("plain_text: %.*s\n", plain_text_len, (char*)plain_text);
hexdump(cipher_text, sizeof(cipher_text));
hexdump(mac_enc, sizeof(mac_enc));
memset(&context_aes_dec, 0, sizeof(context_aes_dec));
aes_setkey_dec(&context_aes_dec, key, 128);
ret = aes_decrypt_ccm(&context_aes_dec, plain_text_len, sizeof(aad_data), nonce, sizeof(nonce), aad_data, cipher_text, plain_text_dec);
PRINT("aes_decrypt_ccm() = %d\n", ret);
PRINT("plain_text: %.*s\n", plain_text_len, (char*)plain_text_dec);
hexdump(plain_text_dec, sizeof(plain_text_dec));
ret = aes_ccm_mac(&context_aes_dec, plain_text_len, sizeof(aad_data), nonce, sizeof(nonce), aad_data, plain_text, mac_dec);
PRINT("aes_ccm_mac() = %d\n", ret);
hexdump(mac_dec, sizeof(mac_dec));
<execution>
done aes_setkey, key: some secret key!
aes_encrypt_ccm() = 0
plain_text: plain text SSID and PSWD
C4BDF107C6C2991DBFEA4E4C6A21643633D653EF335825D300000000000000000000000000000000000000000000000000000000000000000000000000000000
31D845C85F2744F0
aes_decrypt_ccm() = -1
plain_text: ��,�j5��x��̴�ӒF�%s
FD8DF0A22CB96A35F7DC78EAF5CCB4ABD31692469625197300000000000000000000000000000000000000000000000000000000000000000000000000000000
aes_ccm_mac() = 0
9A28C7DAE36C0F2E
Does anyone know how to correctly use these APIs?
Edit:
Attached verification by Pycryptodome.
By comparing the execution results, I think encrypt is fine for both cipher_text and MAC.
But I still need to find out how to use "aes_decrypt_ccm" correctly...
Show LessHello,
I'm trying to drive a SPI peripheral on SPI_1 and I cannot get SPI_1_CS to be driven properly.
The wiced_spi_device_t data structure that is supplied to wiced_spi_init() expects a wiced_gpio_t structure for it's .chip_select, but SPI_1_CS is a wiced_peripheral_pin_t, not a wiced_gpio_t. When a wiced_peripheral_pin_t is supplied, the SPI bus fails to initialize. When a wiced_gpio_t is supplied, the driver fails to drive the pin.
Is there any example code available that shows how to set up SPI_1?
Show Less