Wi-Fi Combo Forum Discussions
Hello!
I've got a working WICED project from a customer for doing addons. I copied the entire project to my harddisk and installed WICED-SDK V2.4.1 but the project does not compile. My first problem was, that make could not be found. I had to adjust the path since the project I got is named "WICED-SDK" and the original one is named "Wiced-SDK". Now this error is gone but I get a lot of errors such as the following
**** Build of configuration Default for project WICED-SDK ****
D:\Projekte\PhilipsAustria\EOLEDC\Firmware\WICED-SDK\make.exe di.DiIntegration-MurataTypeYD-ThreadX-NetX download
Applying changes made to: Makefile wiced_toolchain_common.mk Library/daemons/dhcp_server/dhcp_server.mk Library/utilities/crc/crc.mk Library/utilities/json/json.mk Library/protocols/dns/dns.mk Library/daemons/dns_redirect/dns_redirect.mk Library/daemons/http_server/http_server.mk
+-----------------------------------------------------------------------------------------------------+
| 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. |
+-----------------------------------------------------------------------------------------------------+
Wiced/RTOS/ThreadX/ThreadX.mk:42: Wiced/RTOS/ThreadX/ThreadX_src.mk: No such file or directory
| MCU & Wi-Fi Power Save |
Wiced/Network/NetX/NetX.mk:47: Wiced/Network/NetX/NetX_src.mk: No such file or directory
| It is *critical* that applications using WICED Powersave API functions connect an accurate 32kHz |
make.exe[1]: *** No rule to make target 'Wiced/Network/NetX/NetX_src.mk'. Stop.
| reference clock to the sleep clock input pin of the WLAN chip. Please read the WICED Powersave |
make: *** No rule to make target 'build/di_DiIntegration-MurataTypeYD-ThreadX-NetX/config.mk', needed by 'main_app'. Stop.
| Application Note located in the documentation directory if you plan to use powersave features. |
+-----------------------------------------------------------------------------------------------------+
As a workaround I will copy the project source over the install folder of the SDK, but that is now what I want to do, since the project is in a SVN repository and should be on a special location on disk. I can try to reinstall the SDK and change the SDK-path to that location, but isn't it possible to import a project?
SDK 2.4.1 as used from our customer so I don't want to change that for the moment!
Best regards and thanks for any responses,
Markus Schwarzl
Hi,
I'm having this strange issue. I'm running my board on dual mode. I've opened a few tcp ports. One port is connected to my MQTT broker and another TCP port is working as server in softAP mode(for OTA code update). Everything works fine till the time I'm not using the softAP. communication with my broker works perfectly.
As soon as I connect my cellphone to softAP, I dont see any communication happening with broker. I'm analyzing this data on my computer using wireshark and I don't see any traffic being generated by my board.
Looks like TCP is getting confused on something for where to send data. Has anyone else faced similar problem??
I'm using freeRTOS with LwIP. For MQTT, I'm using Paho library. Wiced 3.1.2 sdk
Show LessHi support team
I have WICED Bridge evaluation board.(BCM43362+BCM20702)
How to get Quick start guide document for WICED Bridge?
Please refer attached file.
Thanks a lot!!
Show LessHi.
I am trying to JTAG flash using OpenOCD and Olimex-USB-OCD-H interface onto the Inventek ISM43341_M4G_L44 module ...
The boot0 pin on the module is NC (or floating). I am not sure what should this pin be set to pulled to GND, pulled up 3v3 or left floating. We wish to use the internal boot loader provided by WICED and downloaded as part of flash.
$make.exe snip.scan-ISM43341_M4G_L44 JTAG=Olimex_ARM-USB-OCD-H download run
This is the openocd_log.txt ...
Open On-Chip Debugger 0.9.0-00029-g9f797a3-dirty (2015-09-16-09:22)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'jtag'
trst_and_srst separate srst_gates_jtag trst_push_pull srst_open_drain connect_deassert_srst
adapter speed: 1000 kHz
adapter_nsrst_delay: 100
jtag_ntrst_delay: 100
Warn : target name is deprecated use: 'cortex_m'
jtag_init
Warn : Using DEPRECATED interface driver 'ft2232'
Info : Consider using the 'ftdi' interface driver, with configuration files in interface/ftdi/...
Info : max TCK change to: 30000 kHz
Info : clock speed 1000 kHz
Info : JTAG tap: stm32f4xx.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4)
Info : JTAG tap: stm32f4xx.bs tap/device found: 0x06413041 (mfg: 0x020, part: 0x6413, ver: 0x0)
Info : stm32f4xx.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : JTAG tap: stm32f4xx.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4)
Info : JTAG tap: stm32f4xx.bs tap/device found: 0x06413041 (mfg: 0x020, part: 0x6413, ver: 0x0)
Error: checksum mismatch
Open On-Chip Debugger 0.9.0-00029-g9f797a3-dirty (2015-09-16-09:22)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'jtag'
trst_and_srst separate srst_gates_jtag trst_push_pull srst_open_drain connect_deassert_srst
adapter speed: 1000 kHz
adapter_nsrst_delay: 100
jtag_ntrst_delay: 100
Warn : target name is deprecated use: 'cortex_m'
jtag_init
Warn : Using DEPRECATED interface driver 'ft2232'
Info : Consider using the 'ftdi' interface driver, with configuration files in interface/ftdi/...
Info : max TCK change to: 30000 kHz
Info : clock speed 1000 kHz
Info : JTAG tap: stm32f4xx.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4)
Info : JTAG tap: stm32f4xx.bs tap/device found: 0x06413041 (mfg: 0x020, part: 0x6413, ver: 0x0)
Info : stm32f4xx.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : JTAG tap: stm32f4xx.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4)
Info : JTAG tap: stm32f4xx.bs tap/device found: 0x06413041 (mfg: 0x020, part: 0x6413, ver: 0x0)
auto erase enabled
Info : device id = 0x10036413
Info : flash size = 1024kbytes
wrote 475136 bytes from file build/snip.scan-ISM43341_M4G_L44/binary/snip.scan-ISM43341_M4G_L44.stripped.elf in 14.742631s (31.473 KiB/s)
shutdown command invoked
Open On-Chip Debugger 0.9.0-00029-g9f797a3-dirty (2015-09-16-09:22)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'jtag'
trst_and_srst separate srst_gates_jtag trst_push_pull srst_open_drain connect_deassert_srst
adapter speed: 1000 kHz
adapter_nsrst_delay: 100
jtag_ntrst_delay: 100
Warn : target name is deprecated use: 'cortex_m'
jtag_init
Warn : Using DEPRECATED interface driver 'ft2232'
Info : Consider using the 'ftdi' interface driver, with configuration files in interface/ftdi/...
Info : max TCK change to: 30000 kHz
Info : clock speed 1000 kHz
Info : JTAG tap: stm32f4xx.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4)
Info : JTAG tap: stm32f4xx.bs tap/device found: 0x06413041 (mfg: 0x020, part: 0x6413, ver: 0x0)
Info : stm32f4xx.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : JTAG tap: stm32f4xx.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4)
Info : JTAG tap: stm32f4xx.bs tap/device found: 0x06413041 (mfg: 0x020, part: 0x6413, ver: 0x0)
Info : JTAG tap: stm32f4xx.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4)
Info : JTAG tap: stm32f4xx.bs tap/device found: 0x06413041 (mfg: 0x020, part: 0x6413, ver: 0x0)
target state: halted
target halted due to debug-request, current mode: Handler HardFault
xPSR: 0x61000003 pc: 0x20000042 msp: 0x2001ecf0
shutdown command invoked
Show LessI've tried to use the captive portal test ( via the snip.config_mode ), but it did't seems to work with 3.1.2 and the following clients:
1. MAC OS 10.10
2. Android 4.3
Could you please conduct the trivial test to see if it does work and list the clients that you've been testing it against ?
( it might have been fixed in 3.3.1 since )
Thanks !
Tsachi
Show LessWe are using a murata SN8000 module connected via SPI mode 0 operating with 25Mhz to a cortex m3 lpc1837. We are using a WWD ported from the SDK 3.1.2 (including matching patch from murata). We are using a custom PCB with SPI Flash, SDRAM, MSU and SN8000. The MCU is operating with 180MHz. We are using an older version of freertos and LWIP (not taken from the SDK). The SPI interrupt has the second highest interrupt priority and SPI DMA has the highest interrupt priority. The wwd task has the highest priority as a task. There should be no long interrupt processing during the test.
During initialization we experience reproducable timeouts of ioctl commands issued after the firmware download.
The wwd_bus_init() function completes successfull but the further ioctl interactions of wwd_management_wifi_on() fail on different calls (timing dependant). An oscziloscope trace shows that after a couple of commands the SN8000 does not singal a SPI IRQ anymore.
The initialization function returns "Could not set AMPDU parameters" with an errorcode 2 (timeout).
The error does not occure at every start and if initialization completes successfully the SPI communication seems to work allowing conifguration of the WLAN module and exchange of data. Modifications of the timing make the error appear on different ioctl calls within wwd_management_wifi_on(). The traces show half completed communication sequences with missing SPI IRQ after a couple of successfull communication sequences with interrupts from SN8000.
If we continously using IOCTLs (by calling wwd_wifi_get_rate() in a loop) after initialization the WLAN module stops responding after some retries. If we delay the first call to wwd_wifi_get_rate() after the initialization (wwd_init()) the error occures faster! If we continue to use the 1ms delay for every SPI transaction even after intialization the IOCTL does not fail.
Some other users seem to have similar problems, but we have found no solution on the forum:
For now we added a delay of 1 ms for the first couple of SPI transfers which resolved the problem. However to gurantee a safe and stable operation we would really like to understand the cause of this behaviour.
We tried to rule out hardware based SPI problems.
We performed some tests driectly inside the wwd_bus_init function after reading the reset where the comment "/* Check feedbead can be read - i.e. the device is alive */" is located.
The Test–Read only register of the gSPI Interface returns always the same vaule when read in a loop.
Continously writing the Test-R/W register of the gSPI Interface with increasing numbers always returned the written number when reading.
Additionally we have sent 1200 byte UDP packets to an echo server and checked the returned packets for data inegrity using IP and UDP checksum. The test never returned an invalid checksum.
Show LessBy changing the following lines in the JSON.c, escape handling in strings handles back slashes correctly.
Line 686 in JSON.c
case ESCAPE_TOKEN:
++ if (escape_token)
++ escape_token = WICED_FALSE;
++ else
escape_token = WICED_TRUE;
break;
Show LessDoes Broadcom have any driver for this mode? Does anybody know? Thanks.
Vinh
Creating a Cloud-Supported WICED™ IoT Solution
This document provides information for IoT device and application developers who plan to: use Broadcom chips in their IoT devices, use the Broadcom WICED SDK to develop IoT device applications, and integrate Amazon Web Services (AWS) into their IoT system solutions.
I have being working for our company's cortex-m4 device to support WICED SDK.
I ported WICED SDK libraries and checked that the built image was downloaded and run by writing data on SRAM using WICED openocd.
Eventually I want write the image on our device's flash memory.
But to write data to the flash memory, extra work seems to be necessary.
However, Unfortunately, I am not familiar with how to use openocd...
So I want to get tips or helps to solve it.
Please tell me in detail about how to workaround this problem.
Thanks.
Show Less