Wi-Fi Combo Forum Discussions
Hi ,
I am getting the below issue when I updated the MFG Test Application in Murata board. I haved updated the external flash with respective APPS.bin,filesystem,etc
****************************************************
** ERROR: WLAN: could not download clm_blob file
** FATAL ERROR: system unusable, CLM blob file not found or corrupted.
****************************************************
Is any extra thing need to be added in mfg_test.mk?
Show LessHi everyone, I am following a firmware development project based on the WICED 4.1 SDK, I need to update the SDK to solve the famous WPA2 KRACK vulnerability.
Unfortunately, between version 4.1 and the latest 6.6.x.y versions there is no bootloader compatibility and this makes an update via OTA impossible.
So, inevitably, to fix the vulnerability I must necessarily update to version 4.1.3 as it is the last one that maintains the compatibility of the bootloaders. Now I have the problem of having to find the SDK for linux versions.
I found this topic on the support page but the links are not working: https://community.infineon.com/t5/Blogs/WICED-Studio-4-3-1-has-been-released-backport-to-address-KRACK/ba-p/129833
Can you help me by providing me the sdk for linux versions?
Thank you
Show Less1GC sends data using UDP, Call wiced_result_t wiced_udp_send(wiced_udp_socket_t * socket, const wiced_ip_address_t * address, uint16_t port, wiced_packet_t * packet), can only send 1472 bytes?
I have changed NX_DONT_FRAGMENT to NX_FRAGMENT_OKAY when I call wiced_UDP_create_socket to create UDP socket. The result is also not supported.
Call wiced_packet_create_udp(socket, 4000, &packet, (uint8_t**) &data, &available_data_length), The value of available_data_length is 1508.
We have a issue with non-working BLE advertisement after exit from Sleep mode.
Our procedures of enter to and exit from sleep mode looks more or less like that:
// turn on powersave mode (enter to sleep mode)
wiced_wlan_connectivity_deinit(); // WIFI module deinitialization
wiced_gpio_init( WIFI_EN, INPUT_HIGH_IMPEDANCE ); // WIFI module power off (LDO disable)
wiced_platform_mcu_enable_powersave(); // enable MCU sleep mode
// here we have very nice power consumption, about 500uA
// device sleep
// device wakeup
// turn off powersave mode (exit from sleep mode)
wiced_platform_mcu_disable_powersave(); // disable MCU sleep mode
wiced_gpio_init( WIFI_EN, OUTPUT_PUSH_PULL ); // WIFI module power on (LDO enable)
wiced_gpio_output_high ( WIFI_EN );
wiced_wlan_connectivity_init( ); // WIFI module initialization
// enable BLE advertisement after exit from sleep mode
wiced_bt_start_advertisements( BTM_BLE_ADVERT_UNDIRECTED_HIGH, 0, NULL );
Deinitialization WLAN connectivity only (without turning off WiFi power cause high power consumption, above 10mA).
Turning OFF WiFi RF power (by external LDO) decrease power consumption below 500uA which is expected.
Reintialization everything in a clear way, together with turning ON WiFi RF works well until start BLE advertisement.
Starting BLE advertisement causes continuous periodic (every 8.5s) receiving BLE_ENABLE_EVT events from bluetooth stack.
And advertisement doesn't work, we are not able to see any advertisement packets.
We definitely would like to turning off/on WiFi power by external LDO, because it gives us additional 1mA of power savings in compare to powersave only without WiFi deinitialization.
What could be a reason for this behaviour?
Are our enter/exit sleep mode procedures correct?
Show LessI'm trying to build up a test platform for our device off a raspberry pi which is running 32-bit Linux and is an ARM platform. I am trying to j-link flash the device from it. I copied over my build/, my apps/, and my tools/ folders but it looks like the ./tools/OpenOCD/Linux32/openocd-all-brcm-libftdi executible doesn't work on ARM.
Downloading Bootloader ...
./tools/OpenOCD/Linux32/openocd-all-brcm-libftdi: cannot execute binary file: Exec format error
**** OpenOCD failed ****
I don't believe that is built during the normal build process. I think it is just packaged with WICED Studio. Is there any way I can get flashing working on ARM 32-bit? I don't need it to build the full file, just be able to flash it. I'm currently running WICED-Studio 6.6.1
I'm trying to initialize a new sflash chip on an ISM43340. Reading the community content, I was able to determine how to add the flash chip and size to the Wiced configuration.
However, determining how to initialize the sflash chip for the first time, took several days of digging, and I'm not sure it's the correct change or in the proper place.
=== Solution ?? ===
The line below was added to initialize the sflash when running the make: snip.sflash_write-.
- Is this the correct change? Is this the correct placement?
../43xxx_Wi-Fi/platforms/ISM43340_M4G_L44/ISM43340_M4G_L44.mk
RESOURCES_LOCATION ?= RESOURCES_IN_WICEDFS
=== Fix Attempts ===
The first attempt was to run snip.ota_fr-ISM43340_M4G_L44 because that's what the documentation suggests to use to flash a new OTA app file. However, that failed because the wiced_apps_common.c / wiced_apps_get_size code isn't designed to detect an uninitialized sflash chip.
When building the sflash_write, the filesystem.bin file wasn't being generated nor was the sflash being initialized. See below for the missing messages. It took a couple of days to root cause the problem and find a possible solution. BTW, this sflash initialization worked fine out of the box for the eval board: CYW943907AEVAL1F, but not for the ISM43340.
=== wiced_apps_common.c / wiced_apps_get_size code improvement? ===
There was no indication of a problem when running the http://192.168.10.1/wiced_ota_server/upgrade.html that there was a problem with the sflash. The wiced_apps_get_size() code essentially went into a nearly infinite loop because the entire chip was set to all 1s. It seems feasible to add a code check to prevent this problem. The chip being used was (MX25U1633FM2I) apparently factory initialized to all 1s, because the error eventually found in debugging that (wiced_apps_get_size) method was reading all 1s for the app_header.count field. That is, under the assumption that all sflash chips are either factory initialized to all 1s or all zeros.... perhaps a code check would be helpful.
===wiced_apps_common.c / wiced_apps_get_size code suggested change ===
wiced_result_t wiced_apps_get_size( const image_location_t* app_header_location, uint32_t* size ) {
...
WICED_VERIFY( init_sflash( &sflash_handle, PLATFORM_SFLASH_PERIPHERAL_ID, ...));
WICED_VERIFY( sflash_read( &sflash_handle, app_header_location->detail.external_fixed.location, .......));
// code change here suggested checking for 255 or 0, which will be an error 99.999999% of the time
if (app_header.count > 254 || app_header.count == 0) return ERR_CODE_SFLASH_NOT_INITIALIZED;
=== The messages below would NOT appear in the make/build log until after adding the make file line as mentioned above
(RESOURCES_LOCATION ?= RESOURCES_IN_WICEDFS) ====
16:20:54.367 -> NO Support Range Erase Command!!
16:21:05.562 -> Waiting for command
............
Hello.
I bought CYW943907AEVAL1F .
I want to configure WICED_GPIO_39 as GPIO using
wiced_result_t wiced_result = wiced_gpio_init ( PIN_CS_MESSAGE_FPGA, OUTPUT_PUSH_PULL );
But I get wiced_result = 7 (Unsupported function)
WICED_GPIO_39 is at J6:11 on EVAL and it is named as SPI_1_MISO
Show LessTo anyone listening. We developed system using a Laird_EWB module. We used the EWB-DevKt to build some basic apps, Dual Mode BT, TCP Server, etc. I am currently using OLIMEX ARM-USB-TINY-H to debug in eclipse. We attempted to make this work with the standard WICED apps with no joy. I have two versions of wiced studio. One is vanilla which allows me to test a small dual mode bt app using the LAIRD DEV kit. The other wiced studio has been modified slightly to allow for the OLIMEX debugger. I am able to build and download in eclipse using OLIMEX with some issues that I have worked out. I begin debugging my app on OUR module and while progressing through the application I keep coming across two unhandled interrupts. The active interrupts are shown to be 33 and 54. I decided to tackle INTERRUPT 33 first. According 8to the STM32F412 manual this is associated with the I2C channel 2 event. When I created my own platform file, I did not include any I2C. I have two USARTS, JTAG header, and power, and a few jumpers. What I am looking for is the steps necessary to override the "unhandled interrupt" using the wiced platform. In fact if there is any manual or detailed document that provides the steps necessary to incorporate interrupts either RTOS or native, please let me know. I have been through WICED-101 but the info that I am looking for appears to be a little more in depth than what WICED-101 provides.
I have also successfully tested our UART app with RTOS with no issues. I would really appreciate if someone could throw me a bread crumb.
Many Thanks,
Dan T
Show LessHi everyone I'm trying to flash ISM43903_R48_L54 with a particular test target "flash_emc".
Building apps lookup table
make [1]: *** [download_dct] Error 1
make: *** [main_app] Error 2
make: *** [Makefile.wiced: 428: flash_emc] Error 2
I am under ubuntu 22.04 and the problem is present only with this target, with others the firmware is flashed correctly.
As you will see from the logs the wiced version is 4.1. Do you have any suggestions to try?