Wi-Fi Combo Forum Discussions
[WICED-SDK-2.2.1]
I want to create a simple program that calls sntp_get_time() periodically.
I attempted to register a timed event, similarly to the UDP timed event which works fine.
/* Register a function to process received UDP packets */ wiced_rtos_register_timed_event( &process_udp_rx_event, WICED_NETWORKING_WORKER_THREAD, &process_received_udp_packet, UDP_CHECK_PERIOD, 0 ); /* Register a function to update the time */ wiced_rtos_register_timed_event( &process_ntp_event, WICED_NETWORKING_WORKER_THREAD, &process_ntp_time, TIME_UPDATE_PERIOD, 0 );
The above timed event called the function below around 8 times and
then stopped. If I commented out the UDP timed event it would run OK.
Why doesnt this work?
Show Less[WICED-SDK-1.x -> WICED-SDK-2.x]
I see that some SDK-2.x example applications use wiced_init().
This API function includes code to do things like scanning that I will not need.
In the older SDK-1.x, we used wiced_management_init( COUNTRY, NULL ) .
What is the intent of the higher layer SDK-2.x API and is there any reason I cant use the old method to avoid unnecessary code?
Im also confused what this new WWD_ component is and why some of the previously existing functions have moved into it.
Show Less[WICED-SDK-2.2.1, MCU: STM32F205]
From what I see in code, the Broadcom External Flash talks over SPI2 and we are using SPI1 for our CGI External Flash.
When I look at SDK/Apps/waf/bootloader/bootloader.c and try to mimic the function of platform_restore_factory_app() but change the SPI port to our external flash (SPI 1) I see init_sflash and sflash_read.
init_sflash then calls sflash_platform_init with the requested SPI port. At that point the requested SPI port is ignored and the SFLASH (SPI 2) is always used. There is no way to change the spi port to our external flash.
Furthermore when you follow the sflash_read path, even if you were to manually update the SPI port to our SPI1, you eventually get to a call sflash_platform_send_recv_byte which then ignores the requested SPI port and uses the sflash spi, SPI 2.
There is no way for me to use these functions and supply a different SPI port. Can this be changed so that we can input the SPI we need? Is there some other function I am supposed to use to talk to SPI1?
Show LessI have an app that works with WICED_SDK-1.3, how do I make it work with WICED-SDK-2.2.1 ?
- « Previous
- Next »