Hello,
I am trying to configure SPI Slave on STM32F4xx in the Laird EWB Platform. The Host MCU is STM32F412.
I have added SPI4 on the STM32 to the Wiced definitions in platform.c. I can use this as SPI master without issues.
When I use the Wiced SPI Slave functions, I am getting a build errors.
build/laird.ampnet_app-LAIRD_EWB-ThreadX-NetX-SDIO/libraries/STM32F4xx.a(wiced_platform_common.o): In function `wiced_spi_slave_init':
C:\Data\AMP_WORK\WICED-Studio-6.6\43xxx_Wi-Fi/WICED/platform/MCU/STM32F4xx/../wiced_platform_common.c:429: undefined reference to `platform_spi_slave_drivers'
collect2.exe: error: ld returned 1 exit status
Another developer had the same issue some years ago. Here is a link to that thread.
The Laird EWB platform has platform_spi_slave_init(...) in the platform file.
...WICED\platform\MCU\STM32F4xx\peripherals\platform_spi.c
This same source file has the functions I used for SPI master.
What step am I missing to use this source for SPI slave?
Thank you,
-Rocko
Module
Mfr : Laird Connectivity
P/N : Sterling-EWB
MCU : STM32F412VEH6
WLAN : BCM4343W Wi-Fi CoB
Antenna : chip
Show LessHi All,
We are planning to create a program with similar functionality to " ble_wifi_introducer " .
[Background]
Our application does not turn off the power once it has been turned on
until something like a power outage occurs.
On the other hand, while checking the WICED Studio Wi-Fi/Combo Forums,
I found the following thread.
https://community.cypress.com/message/156413#156413
It seems that a memory leak occurs when the BT stack is repeatedly
wiced_bt_stack_deinit and wiced_bt_stack_init .
This thread still seems to be open.
[Question]
Is the BT stack memory leak problem solved ?
We believe that our product needs a fix for this issue.
Software environment:
- WICED 6.2.1 or 6.4
Best Regards,
Sakagami
Hello
I want to read 65K portion of FLASH on CYW943907AEVAL1F.
It's a good idea to use
static UCHAR data[65536];
uint32_t start_address;
m2m_unprotected_dma_memcpy( (void*) data, (void*) ( 0x14000000 + start_address), sizeof(data), (wiced_bool_t)WICED_TRUE );
Show Less
Hello.
I'm using CYW943907AEVAL1F.
I load "snip/sd_filesystem" code.
I put on uSD receptacle this model of uSD Scheda MicroSD PRO Endurance - 2018 (128GB) | Samsung IT
This uSD is a 128GB, interface UHS-I, Class 10.
Line 375 of "sd_filesystem.c" calls "wiced_filesystem_mount .. WICED_FILESYSTEM_HANDLE_FILEX" fails.
I dont' understand, in datasheet "002-14829 Rev. *K" page 18 I read UHS-I modes are supported.
Show Less
Hello.
I write this simple code and launch it on CYW943907AEVAL1F.
This simple code configures BCM43907 as WiFi Direct Group Client.
void application_start(void)
{
/* Initializes the WICED system */
wiced_init ( );
/* Lauch CONNECTION_P2P_GC */
if ( connection_launch ( CONNECTION_P2P_GC ) != WICED_SUCCESS )
{
WPRINT_APP_INFO( ("connection_launch failed\n") );
return;
}
}
If I launch this code and I try to connect my HUAWEI MediaPad T5 (Android 8.0.0) using system menù
the connection works properly. Really sometimes the connection failed.
I obtain this Log.
Initialising NetX_Duo v5.12
Creating Packet pools
WLAN MAC Address : A4:08:EA:D9:C0:A2
WLAN Firmware : wl0: Jul 20 2020 00:08:56 version 7.15.168.149 (21d266a) FWID 01-d4dbc762
WLAN CLM : API: 12.2 Data: 9.10.74 Compiler: 1.31.3 ClmImport: 1.36.3 Creation: 2020-07-20 00:01:06
Creating p2p app worker thread
P2P GC Start was successful
No persistent GO information! Wait for the invitation
Launched P2P GC: 00000000
Connection Request from: 36:46:EC:AA:94:B2 HUAWEI MediaPad T5 status=02
Starting group formation in PBC mode
P2P group owner intent = 0
connection_p2p_wps_result_handler: WPS completed successfully
Obtaining IPv4 address via DHCP
L1434 : dhcp_client_init() : DHCP CLIENT hostname = [WICED IP]
IPv4 network ready IP: 192.168.49.178
Setting IPv6 link-local address
IPv6 network ready IP: FE80:0000:0000:0000:A408:EAFF:FED9:C0A2
Storing credentials for DIRECT-6S-HUAWEI MediaPad T5 into WIFI DCT[4] section.
status,COMPLETE,result,CLIENT,groupid,36:46:EC:AA:94:B2 DIRECT-6S-HUAWEI MediaPad T5
*** Associated on channel: 42 ***
If I launch this code and I try to connect my Galaxy Tab S6 (Android 10) using system menù
then connection fails very often. It succeeded just one/two times respect to 30 times.
I obtain this Log.
Starting WICED Wiced_006.006.000.0009
Platform CYW943907AEVAL1F initialised
Started ThreadX v5.9
WICED_core Initialized
Initialising NetX_Duo v5.12
Creating Packet pools
WLAN MAC Address : A4:08:EA:D9:C0:A2
WLAN Firmware : wl0: Jul 20 2020 00:08:56 version 7.15.168.149 (21d266a) FWID 01-d4dbc762
WLAN CLM : API: 12.2 Data: 9.10.74 Compiler: 1.31.3 ClmImport: 1.36.3 Creation: 2020-07-20 00:01:06
Creating p2p app worker thread
P2P GC Start was successful
No persistent GO information! Wait for the invitation
Launched P2P GC: 00000000
Connection Request from: FA:F1:E6:E8:2C:03 Galaxy Tab S6 status=02
Starting group formation in PBC mode
P2P group owner intent = 0
Here my Ggalaxy Tab S6 (Android 10) log taken with Android Studio and ADB ..
P2P - DEVICE - FOUND da: 68:c3: 52:84:27 p2p_dev_addr = da:68:c3: 52:04:27 pri_dev_type = 10 - 0050F204 - 5 name = '[Phone] Galaxy J3(2017)' config_methods = 0x188 dev_capab = 0x25 group_capab = 0xa9 vendor_elems = 1 new= 0 freq = 2412 icon = 0x100 fw_invite
P2P - DEVICE - FOUND a6: 08:ea: d9: c0: e6 p2p_dev_addr = a6:08:ea: d9: c0: e6 pri_dev_type = 10 - 0050F204 - 5 name = 'WICED_WIFI_CM_P2P' config_methods = 0x2388 dev_capab = 0x20 group_capab = 0x8 vendor_elems = 1 new= 0 freq = 2412
P2P - FIND - STOPPED
P2P: Provision Discovery Request with a6: 08:ea: d9: c0: e6(config methods 0x80)
P2P: Set prekey state(NONE->SEND)
P2P: Received Provision Discovery Response from a6:08:ea: d9: c0: e6 with config methods 0x80
P2P: Set prekey state(SEND->NONE)
P2P - PROV - DISC - PBC - RESP a6: 08:ea: d9: c0: e6
P2P: Sending GO Negotiation Request
P2P: Received GO Negotiation Response from a6:08:ea: d9: c0: e6(freq = 2412)
p2p0: P2P - BIGDATA - GROUP - OWNER - INTENT p2p_dev_addr = a6:08:ea: d9: c0: e6 go_intent = 0
P2P: Peer operating channel preference: 5745 MHz
P2P: own channels: 81:1,2,3,4,5,6,7,8,9,10,11,12,13 115:36,40,44,48 116:36,44 117:40,48 124:149,153,157,161 125:149,153,157,161,165,169 126:149,157 127:153,161 128:36,40,44,48 130:36,40,44,48
P2P: peer channels: 81:1,2,3,4,5,6,7,8,9,10,11 115:36,40,44,48 124:149,153,157,161
P2P: Sending GO Negotiation Confirm with status = 0
P2P: own channels: 81:1,2,3,4,5,6,7,8,9,10,11,12,13 115:36,40,44,48 116:36,44 117:40,48 124:149,153,157,161 125:149,153,157,161,165,169 126:149,157 127:153,161 128:36,40,44,48 130:36,40,44,48
P2P: peer channels: 81:1,2,3,4,5,6,7,8,9,10,11 115:36,40,44,48 124:149,153,157,161
P2P: Set prekey mode(ENABLED->ENABLED)
P2P - GO - NEG - SUCCESS role = GO freq = 5745 ht40 = 0 peer_dev = a6:08:ea: d9: c0: e6 peer_iface = a6:08:ea: d9: c0: e6 wps_method = PBC
rfkill: Cannot open RFKILL control device
P2P: Current p2p state = PROVISIONING
p2p - wlan0 - 0: interface state UNINITIALIZED->ENABLED
p2p-wlan0-0: AP-ENABLED
p2p-wlan0-0: CTRL-EVENT-CONNECTED - Connection to fa:f1:e6:e8:ac:03 completed[id = 0 id_str =]
P2P: Set prekey mode(ENABLED -> DISABLED)
p2p-wlan0-0: WPS-PBC-ACTIVE
p2p-wlan0-0: CTRL-EVENT-CHANNEL-SWITCH freq = 5745 ht_enabled=1 ch_offset=1 ch_width=80 MHz cf1 = 5775 cf2=0
p2p-wlan0-0: AP-CSA-FINISHED freq = 5745 dfs=0
p2p-wlan0-0: CTRL-EVENT-SUBNET-STATUS-UPDATE status = 0
p2p-wlan0-0: CTRL-EVENT-EAP-STARTED a6:08:ea:d9:c0:e6
p2p-wlan0-0: CTRL-EVENT-EAP-PROPOSED-METHOD vendor = 0 method=1
p2p-wlan0-0: CTRL-EVENT-SUBNET-STATUS-UPDATE status = 0
p2p-wlan0-0: CTRL-EVENT-EAP-STARTED a6:08:ea:d9:c0:e6
p2p-wlan0-0: CTRL-EVENT-EAP-PROPOSED-METHOD vendor = 0 method=1
p2p-wlan0-0: CTRL-EVENT-SUBNET-STATUS-UPDATE status = 0
p2p-wlan0-0: CTRL-EVENT-EAP-STARTED a6:08:ea:d9:c0:e6
p2p-wlan0-0: CTRL-EVENT-EAP-PROPOSED-METHOD vendor = 0 method=1
p2p-wlan0-0: CTRL-EVENT-SUBNET-STATUS-UPDATE status = 0
p2p-wlan0-0: CTRL-EVENT-EAP-STARTED a6:08:ea:d9:c0:e6
p2p-wlan0-0: CTRL-EVENT-EAP-PROPOSED-METHOD vendor = 0 method=1
p2p-wlan0-0: CTRL-EVENT-SUBNET-STATUS-UPDATE status = 0
p2p-wlan0-0: CTRL-EVENT-EAP-STARTED a6:08:ea:d9:c0:e6
p2p-wlan0-0: CTRL-EVENT-EAP-PROPOSED-METHOD vendor = 0 method=1
p2p-wlan0-0: CTRL-EVENT-SUBNET-STATUS-UPDATE status = 0
p2p-wlan0-0: CTRL-EVENT-EAP-STARTED a6:08:ea:d9:c0:e6
p2p-wlan0-0: CTRL-EVENT-EAP-PROPOSED-METHOD vendor = 0 method=1
p2p-wlan0-0: CTRL-EVENT-SUBNET-STATUS-UPDATE status = 0
p2p-wlan0-0: CTRL-EVENT-EAP-STARTED a6:08:ea:d9:c0:e6
p2p-wlan0-0: CTRL-EVENT-EAP-PROPOSED-METHOD vendor = 0 method=1
p2p-wlan0-0: CTRL-EVENT-SUBNET-STATUS-UPDATE status = 0
p2p-wlan0-0: CTRL-EVENT-EAP-STARTED a6:08:ea:d9:c0:e6
p2p-wlan0-0: CTRL-EVENT-EAP-PROPOSED-METHOD vendor = 0 method=1
p2p-wlan0-0: CTRL-EVENT-SUBNET-STATUS-UPDATE status = 0
p2p-wlan0-0: CTRL-EVENT-EAP-STARTED a6:08:ea:d9:c0:e6
p2p-wlan0-0: CTRL-EVENT-EAP-PROPOSED-METHOD vendor = 0 method=1
p2p-wlan0-0: CTRL-EVENT-SUBNET-STATUS-UPDATE status = 0
p2p-wlan0-0: CTRL-EVENT-EAP-STARTED a6:08:ea:d9:c0:e6
p2p-wlan0-0: CTRL-EVENT-EAP-PROPOSED-METHOD vendor = 0 method=1
p2p-wlan0-0: CTRL-EVENT-SUBNET-STATUS-UPDATE status = 0
p2p-wlan0-0: CTRL-EVENT-EAP-STARTED a6:08:ea:d9:c0:e6
p2p-wlan0-0: CTRL-EVENT-EAP-PROPOSED-METHOD vendor = 0 method=1
P2P-GROUP-FORMATION-FAILURE
P2P-GROUP-REMOVED p2p-wlan0-0 GO reason = FORMATION_FAILED
P2P-BIGDATA-CONNECTION-RESULT p2p_dev_addr = a6:08:ea:d9:c0:e6 result = 12
p2p0: P2P-BIGDATA-CONNECTION-RESULT p2p_dev_addr = a6:08:ea:d9:c0:e6 reason = 12
P2P: Set prekey state(NONE -> NONE)
P2P: Set prekey mode(DISABLED -> ENABLED)
P2P: Clear a pre-passphrase(State NONE)
p2p-wlan0-0: interface state ENABLED->DISABLED
p2p-wlan0-0: AP-DISABLED
p2p-wlan0-0: CTRL-EVENT-DISCONNECTED bssid = fa:f1:e6:e8:ac:03 reason=3 locally_generated=1
nl80211: deinit ifname = p2p - wlan0 - 0 disabled_11b_rates=0
P2P-DEVICE-LOST p2p_dev_addr = a6:08:ea:d9:c0:e6
P2P-DEVICE-LOST p2p_dev_addr = da:68:c3:52:04:27
Messaggio modificato da Mauro Fantina
Show LessHi,
We are using Cypress 43455 (murrata 1MW) with NXP MCU with Wiced SDK. We are trying to connect wifi module with a wifi router configured in AC only mode but are not able to do so. We are able to scan the router but join attempts to the router always fails. We have observed that if we set the country code as USA on the module side we are able to connect to router.
We have tried to make sure that the country selection on router and module match but we don't see any success. We are able to use all the other modes (N, A, mixed etc) with other country code but not AC.
What could be the solution for this? We want to set the country code as UK and run AC mode. What are we missing here?
Firmware and CLM blob information:
WLAN Firmware | : wl0: May 2 2019 02:46:20 version 7.45.189 (r714228 CY) FWID 01-105ab14e |
WLAN CLM | : API: 12.2 Data: 9.10.136 Compiler: 1.29.4 ClmImport: 1.36.3 Creation: 2019-05-02 02:31:24 |
Regards
Show LessHello ...
I have a server tcp socket connected to a client.
I want to get ip address of the client.
Here the code.
wiced_tcp_socket_t tcp_socket_msg;
UINT status;
status = wiced_tcp_create_socket ( &tcp_socket_msg, WICED_AP_INTERFACE );
if ( status != WICED_SUCCESS )
{
WPRINT_APP_INFO( ("wiced_tcp_create_socket failed, status = %d\n", status) );
}
status = wiced_tcp_listen ( &tcp_socket_msg, 50002 );
if ( status != WICED_SUCCESS )
{
WPRINT_APP_INFO( ("wiced_tcp_listen failed, status = %d\n", status) );
wiced_tcp_delete_socket ( &tcp_socket_msg );
return;
}
do
{
status = wiced_tcp_accept ( &tcp_socket_msg );
if ( status == WICED_SUCCESS )
{
WPRINT_APP_INFO( ("wiced_tcp_accept ok!\n") );
break;
}
WPRINT_APP_INFO( ("wiced_tcp_accept failed, status = %d\n", status) );
} while ( status == WICED_TCPIP_SOCKET_CLOSED );
HOW GET TCP CLIENT ADDRESS FROM tcp_socket_msg ???
Show Less
Hi,
I am working with a CYW4343W and WICED Version: Wiced_006.004.000.0061
My Central application is behving as expected for most of the time, scanning for and connecting to a BLE Server, performing Service and Characteristic discovery, writing to the Server's CCCD, pairing and bonding etc. However, if I leave it to run for a few hours it will intermittently receive the BLE management callback event BTM_ENABLED_EVT with a value of WICED_TIMEOUT for p_event_data->enabled.status.
I have found that ignoring these WICED_TIMEOUT events ultimately results in one the of subsequent calles to a WICED BLE API function such as wiced_bt_gatt_send_discover() etc not returning, after which my application will hang awaiting the API call to return.
My short-term solution is to reset my device whenever the application receives BTM_ENABLED_EVT with a value of WICED_TIMEOUT. However, I would like to know what is the recommended procedure for handling such errors, please?
Also, what are the most likely causes of the BTM_ENABLED_EVT with a value of WICED_TIMEOUT, please?
Regards,
R
Show LessHi all,
I've been trying to install the latest download of WICED Studio and it seems that I cannot get it installed (MacOS Catalina). I keep getting a message stating "You can't open the [installer] because it may be damaged". I've tried redownloading from both Chrome and Safari and have the same challenge.
Has anyone else experienced this or have been able to get the software installed?
Show LessSpecifically, where are options to program Murata's 1LD defined?
Could attempts to program be putting code into RAM or the wrong place in flash?
Attempts to program report the device is erased and programmed. After a reset, it reverts back to previous code functionality.
What is the proper way to program via Wiced into flash?
What is the proper way to program the elf file using Segger J-Link
Honored Contributor
Employee
Employee
Employee
Contributor II
Employee