Wi-Fi Combo Forum Discussions
Hey so I wrote another post about using the sflash but I wasn't hearing much so I started playing aroundwith it to see what I could do. I was checking the flash size, and the size function reports that the flash on the CYW943907AEVAL1F is only 8MB. I cheked the datasheet and the part that was populated on the board, and those both agree that the actual flash size is 64MB.
I tried to find where the discrepancy was so I checked out the some code while looking at this article:SFLASH support addition in WICED - I ended up finding the part defined as 8*MBYTE for size. I tried to change it to 64*MBYTE, but this made the board not function at all, but when I changed it to 16*MB the code worked fin and the flash size was reported as 16MBYTE.
can anyone explain whats going on here?
Show LessHey all:
I have a part that i'm communicating with over SPI, and it wants MOSI to idle high. Looking at the standard gsio driver function, I see that the line is high until the first transmission, and then it idles low after that. Is there something I can do to change this? really appreciate the help - thanks.
Show LessI'm learning /43xxx_Wi-Fi/apps/snip/ap_clients_rssi/ap_clients_rssi.c using Make Target
snip.ap_clients_rssi-CYW954907AEVAL1F-debug download
I could debug normally before
but now I can't debug ..
I don't know why..
the console print out:
[Switching to thread 1 (Thread -1)]
[New Thread -1]
Warning: the current language does not match this frame.
No source file named D:\\Users\\Administrator\\Documents\\WICED-Studio-6.2\\43xxx_Wi-Fi\\apps\\snip\\scan\\scan.c.
No source file named D:\\Users\\Administrator\\Documents\\WICED-Studio-6.2\\43xxx_Wi-Fi\\apps\\snip\\scan\\scan.c.
Warning:
Cannot insert breakpoint 6.
Cannot access memory at address 0x4a42cc
Command aborted.
Quit (expect signal SIGINT when the program is resumed)
Quit
Show LessIt is defined in wwd_constants.h but I found no where it has been modified .
and it print out
it's value of Unknown changed to vWiced_006.002.001.0002 .. I don't why this happen.
Can someone help with that?
Show LessHello all,
I want to setup a bluetooth communication between 2 PSoC 6 WiFi-BT CY8CKIT_062 kits. One of the kits will send a data, and the other kit will receive it. I have managed to read a data from the phone. The phone connects to the PSoC 6 kit easily. But I could not figure out how to connect 2 kits to each other. How can I achieve this purpose? Any help much appreciated.
Respectfully,
Alperen Görmez
Show LessI can see specific parameters to use for GLOBAL_DEFINES in my makefile based on sample code, blogs, this forum, etc. but if I am looking for something specific I do not know where to look. E.g. how do I disable Ethernet?
- Does a comprehensible list exist?
- Is there way to get the IDE to list them?
thank you
Show Lessmy code builds and runs fine in "download run" configuration but the "-debug download" configuration is giving a build error.
Moreover, the error seems to be for Ethernet, which I am not even using.
The error happens in the linker so most likely some thing is missing but not sure what.
Has anybody seen this before?
Build Log (I removed the warnings about typecasting, unused variables, etc. which are the same regardless of debug):
12:24:32 **** Build of configuration Default for project 43xxx_Wi-Fi ****
"…43xxx_Wi-Fi\\make.exe" DB2.db2-CYW943907AEVAL1F-debug download
MAKEFILE MAKECMDGOALS=DB2.db2-CYW943907AEVAL1F-debug 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. |
+-----------------------------------------------------------------------------------------------------+
MAKEFILE MAKECMDGOALS=DB2.db2-CYW943907AEVAL1F-debug download OTA2_SUPPORT is disabled
Building Bootloader waf.bootloader-NoOS-NoNS-CYW943907AEVAL1F-P103-SoC.43909
Building Tiny Bootloader waf.tiny_bootloader-NoOS-NoNS-CYW943907AEVAL1F-P103-SoC.43909
Building Serial Flash Loader App
prgm hdr cnt=3
total_size = 15492, entry_point = 0x696000
Loadsegment_offset = 0xA0 segment_size = 15256, segment_pad = 0
Loadsegment_offset = 0x3C40 segment_size = 32, segment_pad = 0
Loadsegment_offset = 0x3C68 segment_size = 204, segment_pad = 0
Finished Building Bootloader
Processing resources
Finished Building Tiny Bootloader
Creating security credentials
Making DCT image
Compiling apps_DB2_db2
Compiling Platform_CYW943907AEVAL1F_P103_B1
Compiling WICED
Compiling Lib_HTTP_Client
Compiling Lib_SNTP
Compiling Lib_cJSON
Compiling Lib_adc_MAX11615_driver
Compiling Lib_spdif_driver
Compiling WWD_ThreadX_Interface
Compiling WICED_ThreadX_Interface
Finished Building Serial Flash Loader App
Compiling WWD_for_SoC.43909_ThreadX
Compiling Supplicant_BESL
Compiling Lib_DNS
Compiling NetX_Duo
Compiling Lib_Wiced_RO_FS
Compiling MCU_BCM4390x
Compiling Lib_Linked_List
Compiling WICED_Lib_FileX_Interface
Compiling Lib_TLV
Compiling Lib_base64
Compiling Lib_mbedTLS
Compiling Lib_micro_ecc
Compiling WWD_NetX_Duo_Interface
Compiling WICED_NetX_Duo_Interface
Compiling Lib_crc
Compiling Lib_GPIO_button
Compiling common_GCC
Compiling 43909_Peripheral_Drivers
Compiling Lib_Ring_Buffer
Compiling Lib_DHCP_Server
Compiling SPI_Flash_43909_Library_CYW943907AEVAL1F
Compiling Uart_43909_Library_CYW943907AEVAL1F
Compiling Peripherals_Shared_43909_Library_CYW943907AEVAL1F
Compiling Tiny_Crypto_43909_Library_CYW943907AEVAL1F
Compiling SDIO_Host_43909_Library_CYW943907AEVAL1F
Compiling Ethernet_43909_Library_CYW943907AEVAL1F
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/apps_DB2_db2.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/Platform_CYW943907AEVAL1F_P103_B1.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/WICED.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/Lib_HTTP_Client.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/Lib_SNTP.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/Lib_cJSON.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/Lib_adc_MAX11615_driver.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/Lib_spdif_driver.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/WWD_ThreadX_Interface.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/WICED_ThreadX_Interface.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/WWD_for_SoC.43909_ThreadX.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/Supplicant_BESL.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/Lib_DNS.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/NetX_Duo.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/Lib_Wiced_RO_FS.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/MCU_BCM4390x.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/Lib_Linked_List.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/WICED_Lib_FileX_Interface.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/Lib_TLV.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/Lib_mbedTLS.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/Lib_base64.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/Lib_micro_ecc.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/WWD_NetX_Duo_Interface.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/WICED_NetX_Duo_Interface.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/Lib_crc.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/Lib_GPIO_button.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/common_GCC.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/43909_Peripheral_Drivers.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/Lib_Ring_Buffer.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/Lib_DHCP_Server.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/SPI_Flash_43909_Library_CYW943907AEVAL1F.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/Uart_43909_Library_CYW943907AEVAL1F.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/Peripherals_Shared_43909_Library_CYW943907AEVAL1F.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/Tiny_Crypto_43909_Library_CYW943907AEVAL1F.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/SDIO_Host_43909_Library_CYW943907AEVAL1F.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/Ethernet_43909_Library_CYW943907AEVAL1F.a
Making DB2.db2-CYW943907AEVAL1F-debug.elf
build/DB2.db2-CYW943907AEVAL1F-debug/libraries/Ethernet_43909_Library_CYW943907AEVAL1F.a(etc.o): In function `etc_ioctl':
{project}\Software\Code\43xxx_Wi-Fi/WICED/platform/MCU/BCM4390x/peripherals/ethernet/etc.c:574: undefined reference to `et_dump'
build/DB2.db2-CYW943907AEVAL1F-debug/libraries/Ethernet_43909_Library_CYW943907AEVAL1F.a(etcgmac.o): In function `gmac_mf_add':
{project}\Software\Code\43xxx_Wi-Fi/WICED/platform/MCU/BCM4390x/peripherals/ethernet/etcgmac.c:1304: undefined reference to `bcm_ether_ntoa'
collect2.exe: error: ld returned 1 exit status
tools/makefiles/wiced_elf.mk:315: recipe for target 'build/DB2.db2-CYW943907AEVAL1F-debug/binary/DB2.db2-CYW943907AEVAL1F-debug.elf' failed
- make.exe[1]: *** [build/DB2.db2-CYW943907AEVAL1F-debug/binary/DB2.db2-CYW943907AEVAL1F-debug.elf] Error 1
Makefile:351: recipe for target 'main_app' failed
make: *** [main_app] Error 2
12:26:21 Build Finished (took 1m:49s.219ms)
Show LessHi!
There's some part of the code I'm dealing with that needs the mutex to be initialized statically:
static pthread_mutex_t lock = PTHREAD_MUTEX_INITIALIZER;
Is there any way to recreate such thing on WICED platform?
I have included wiced_rtos.h to have access to the wiced_mutex_t definition and added appropriate typedef:
typedef wiced_mutex_t pthread_mutex_t;
Header inclusion and typedef work fine, but static mutex initialization gives the error about undeclared PTHREAD_MUTEX_INITIALIZER.
Thanks in advance for the response!
Show LessAccording to the datasheet (Table 21), I can do SWD debugging over the GPIO1 and 2 ports if I pull them up during POR.
That's nice but I'm unable to find anywhere which GPIO is SWCLK and which GPIO is SWDIO.
Does anyone know where I can find an answer?
Thanks.
Show LessError fetching IP-address list
when I use snip.ap_clients_rssi-CYW954907AEVAL1F download run to test the serial print this. why can't I get access on ap ??
Show Less