Wi-Fi Combo Forum Discussions
Hi! I am using BCM943362WCD4_3 evaluation board, runing the WICED-SDK-3.1.2 test.console-BCM943362WCD4 demo.
When I first started AP, the function is normal, the stations can join in this AP, then I stop this AP and restart it, I found that the stations could not successfully to join, through the capture tool can see BCM43362 could not sends the DHCP offer packets.
Please confirm if there is this BUG.
Show LessHello,
I am trying to use the wiced_bt_smartbridge_gatt_read_long_characteristic_value function to read a characteristic value and it is causing the system to crash. Reading the same characteristic with wiced_bt_smartbridge_gatt_read_characteristic_value does work but doesn't return the entire value of the characteristic.
Watching the transaction with a sniffer shows why it's failing. First an ATT Read Blob Request with offset 0 is sent and it gets bytes 0 through 21 of the value. Then, an ATT Read Blob Request with offset 22 is sent and it gets bytes 22 through 43 of the value. Up til this point everything is correct. But then, instead of sending an ATT Read Blob Request with offset 44, the stack goes into a loop sending the ATT Read Blob Request with offset 22 repeatedly until the system crashes. Maybe it overflowed a buffer or ran out of memory.
I have tested this from the bt_smartbridge_console demo and my own application and saw the same behavior in both. Is this a bug in the bt smart stack, and would an update to the stack be required to fix it?
Thanks,
Paolo
Show LessHi,
I recently got BCM43909KRFBG based development and 3.3.1 SDK , When I received I just tested the board everything was working .. I tested few things of console app , like scan , join etc .. I tried the same app from the 3.3.1 SDK buy going through the README guide .
I jut tried the below command
$make test.console-BCM943909WCD1 download run
Everything went fine and the app got downloaded to the board ..
But when I run >scan , it was not able to scan any APs .. none of the wifi related commands are working ..
>status command showing that
WICED Version : 3.3.1
Platform : BCM943909WCD1
MAC Address : EF:EF:EF:EF:EF:EF
STA Interface : Down
AP Interface : Down
P2P Interface : Down
Ethernet Interface : Down
Am I need to enable anything to make wifi working ? is there any setting am missing ?
Show LessHow to use the SWO pin to print the debug message instead serial?I use Wiced IDE ,SDK3.1.1
Hi! all.
I just want to use the external interrupt with CMSIS directly on WICED-SDK-3.1.2, SSBWMN01.
At the first, I did not find the external interrupt handler name.
Although I can find the external interrupt handler name now, I've encountered the error message.
build/Hahm_peripherals_Ext_INT1-SSBWMN01-debug/libraries/External_interrupt_Test!!!.a(main_app.o):C:\Users\CYHahm\Documents\WICED\WICED-SDK-3.1.2\Wiced-SDK/apps/Hahm/peripherals/Ext_INT1/main_app.c:102: first defined here
make.exe[1]: *** [build/Hahm_peripherals_Ext_INT1-SSBWMN01-debug/binary/Hahm_peripherals_Ext_INT1-SSBWMN01-debug.elf] Error 1
tools/makefiles/wiced_elf.mk:215: recipe for target 'build/Hahm_peripherals_Ext_INT1-SSBWMN01-debug/binary/Hahm_peripherals_Ext_INT1-SSBWMN01-debug.elf' failed
make: *** [main_app] Error 2
Makefile:185: recipe for target 'main_app' failed
How can I resolve this error?
This is a my code ( I omit some code).
#include "wiced.h"
#define LED_T GPIO_ToggleBits(GPIOB, GPIO_Pin_15) //Test LED Toggle
void init_GPIO( void );
void application_start( void )
{
/* Initialize the WICED device */
wiced_init();
for(int i = 0 ; i < 3 ; i++)
WPRINT_APP_INFO( ( "\n" ) );
WPRINT_APP_INFO( ( "Start the Comm. with ADS1192!\n" ) );
init_GPIO();
RCC_APB2PeriphClockCmd(RCC_APB2Periph_SYSCFG, ENABLE);
SYSCFG_EXTILineConfig(EXTI_PortSourceGPIOH, EXTI_PinSource11);
//External interrrupt source GPIOH.11, The input interrupt signal is periodic about 200 Hz
GPIO_InitTypeDef GPIO_EXTI_Structure;
GPIO_EXTI_Structure.GPIO_Pin = GPIO_Pin_11;
GPIO_EXTI_Structure.GPIO_Mode = GPIO_Mode_IN;
GPIO_EXTI_Structure.GPIO_PuPd = GPIO_PuPd_NOPULL;
GPIO_EXTI_Structure.GPIO_Speed = GPIO_Speed_50MHz;
GPIO_Init(GPIOH, &GPIO_EXTI_Structure);
EXTI_InitTypeDef EXTItypeStructure;
EXTItypeStructure.EXTI_Line = EXTI_Line11;
EXTItypeStructure.EXTI_Mode = EXTI_Mode_Interrupt;
EXTItypeStructure.EXTI_Trigger = EXTI_Trigger_Falling;
EXTItypeStructure.EXTI_LineCmd = ENABLE;
EXTI_Init(&EXTItypeStructure);
NVIC_InitTypeDef NVICtypeStructure;
NVICtypeStructure.NVIC_IRQChannel = EXTI15_10_IRQn;
NVICtypeStructure.NVIC_IRQChannelPreemptionPriority = 0x0F;
NVICtypeStructure.NVIC_IRQChannelSubPriority = 0x0F;
NVICtypeStructure.NVIC_IRQChannelCmd = ENABLE;
NVIC_Init(&NVICtypeStructure);
NVIC_EnableIRQ(EXTI15_10_IRQn);
RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOH, ENABLE);
init_GPIO();
while(1)
{ }
}
/*
* Handles key events
*/
void EXTI15_10_irq(void) // error
{
LED_OFF;
if(EXTI_GetITStatus(EXTI_Line11) != RESET)
{
LED_T;
EXTI_ClearITPendingBit(EXTI_Line11); //Clear the interrupt flag
}
}
void init_GPIO( void )
{
GPIO_InitTypeDef GPIOInit;
RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOB, ENABLE);
//TEST LED
GPIOInit.GPIO_Pin = GPIO_Pin_15;
GPIOInit.GPIO_Mode = GPIO_Mode_OUT;
GPIOInit.GPIO_Speed = GPIO_Speed_50MHz;
GPIOInit.GPIO_OType = GPIO_OType_PP;
GPIOInit.GPIO_PuPd = GPIO_PuPd_UP;
GPIO_Init(GPIOB, &GPIOInit);
LED_OFF;
}
We need to generate unique DCTs for our production boards. The procedure documented in "3.2 Generating DCT Images" is no longer working in SDK 3.2 and a "make factory_reset_dct" fails with "no rule" error.
How do you suggest we generate these files? I can see there is a "make" DCT_IMAGE variable supported in the application makefile but how would that work if we need thousands of different DCTs? Is the factory_reset_dct.c template still to be used?
Thanks.
Show LessHi,
What is the recommended method to measure WICED (STM CPU) CPU performance? I'm thinking of creating a lowest priority thread and calculate NOP execution count per seconds and calculate the % usage base on platform running at XXX Mhz... However, its just an idea but I cannot be sure how do such calculation or executing in details... did anyone done this before?
Show LessI noticed that the http server thread stack size is defined as : ( MACOS SDK 3.1.2 )
#if (defined(WPRINT_ENABLE_WEBSERVER) && (defined(WPRINT_ENABLE_DEBUG) || defined(WPRINT_ENABLE_ERROR)))
#define HTTP_SERVER_STACK_SIZE (5000) /* printf requires 4K of stack */
#else
#define HTTP_SERVER_STACK_SIZE (10000)
#endif
Could you please confirm that the logic here is correct and not reversed ?
( i.e. I suspect that while we don't have wprints, we would like to allocate *smaller* stack size.. )
thanks!
Tsachi
Show LessI'm trying to interface SN8000x module with my custom board using SPI, So I took BCM943362WCD4 platform file as reference
In platform.c of BCM943362WCD4 I could see that
/* Wi-Fi gSPI bus pins. Used by WICED/platform/STM32F2xx/WWD/wwd_SPI.c */
const platform_gpio_t wifi_spi_pins[] =
{
[WWD_PIN_SPI_IRQ ] = { GPIOC, 9 },
[WWD_PIN_SPI_CS ] = { GPIOC, 11 },
[WWD_PIN_SPI_CLK ] = { GPIOB, 13 },
[WWD_PIN_SPI_MOSI] = { GPIOB, 15 },
[WWD_PIN_SPI_MISO] = { GPIOB, 14 },
};
In I understood that WWD_PIN_SPI_IRQ is the line DAT1 from the SN8000x module board, But as per my schematics
DAT1 is not connected to anywhere.. So Can I really interface the SN8000x module using SPI on my custom board ?
Show LessWe are just getting started with the Wiced SDK and are trying to understand how to use the HTTP server functionality. While there are numerous demos, the use case contexts are not clear. The simple case of displaying a static web page is self evident, but we need to have a web page where there is information displayed in editable fields, allow the user to change the data, and submit the page back so we can react to the changes.
There is a config_http_content module that seems close to what we want to do, but it is not clear how some of the elements in the http page are accessed or processed.
I am searching for documentation that might describe the api and processing model for this sub component of the SDK. Any pointers or suggestions for how to learn the conceptual model without having to grind through chanding and testingwith the examples?
Show Less