cancel
Showing results for 
Search instead for 
Did you mean: 

WICED Studio Wi-Fi Combo

vtunr
New Contributor II

Hi,

I'm using SDK 5.1.0 and BMUSI23 platform. I'm using ethernet.

I had issues using ethernet because some of wiced method are set to use WICED_STA_INTERFACE, but i modified it, i'll propose a patch once everything is working, but if WICED is supposed to managed STA, and ethernet, it should be built in.

Now, i have issues when trying using the wiced_network_up on ethernet :

if(wiced_network_up(wifi_manager->interface,WICED_USE_EXTERNAL_DHCP_SERVER,NULL) == WICED_SUCCESS){          
     wiced_rtos_set_semaphore(wifi_manager->sem_link_up);          
     wifi_manager->status = ABL_WIFI_OK;
}

Where the wifi_manager->interface is WICED_ETHERNET_INTERFACE.

Then since it can't set it up (no ethernet cable plugged, so no IP), we end in this part of wiced_network_up :

#ifdef WICED_USE_ETHERNET_INTERFACE        
     else if ( interface == WICED_ETHERNET_INTERFACE )       
     {           
               platform_ethernet_deinit( );       
     }
#endif

And i have a malloc error (malloc_error( "Free arg not in malloc list", m );):

pastedImage_0.png

When setting up the interface, the platform_ethernet_init is returning a WICED_SUCCESS, meaning that the etc_attach() worked, so the detach should be ok too.

Let me know if you need more information

Tony

0 Likes
1 Solution
GauravS_31
Moderator
Moderator

I tested snip.ping_ethernet on platform BCM943907AEVAL1F with the macro WICED_USE_ETHERNET_INTERFACE enabled and ran the project in debug mode. I did not connect ethernet cable to the platform. I saw that it entered platform_ethernet_deinit( ) but I did not see this malloc error. The function platform_ethernet_deinit() returned 0. How did you reproduce this malloc error? Did you place breakpoint somewhere in the code? Also which Wi-Fi chip does BCMUSI23 contain?

View solution in original post

8 Replies
MichaelF_56
Moderator
Moderator

Adding jone_yi_1844281​ from USI

0 Likes
AxLi_1746341
Honored Contributor

mifo wrote:

Adding jone_yi_1844281 from USI

vtunr

I'm curious you mark this as CORRECT.

Did you get any fix from USI?

0 Likes
AxLi_1746341
Honored Contributor

vtunr wrote:

Hi,

I'm using SDK 5.1.0 and BMUSI23 platform. I'm using ethernet.

I had issues using ethernet because some of wiced method are set to use WICED_STA_INTERFACE, but i modified it, i'll propose a patch once everything is working, but if WICED is supposed to managed STA, and ethernet, it should be built in.

Now, i have issues when trying using the wiced_network_up on ethernet :

if(wiced_network_up(wifi_manager->interface,WICED_USE_EXTERNAL_DHCP_SERVER,NULL) == WICED_SUCCESS){          
     wiced_rtos_set_semaphore(wifi_manager->sem_link_up);         
     wifi_manager->status = ABL_WIFI_OK;
}

Where the wifi_manager->interface is WICED_ETHERNET_INTERFACE.

Then since it can't set it up (no ethernet cable plugged, so no IP), we end in this part of wiced_network_up :

Does it work if you have cable plugged before boot the device?

0 Likes
vtunr
New Contributor II

Yes it does work when i have a cable plugged and internet available.

I have the same issue using wiced_network_down.

My work around is to comment out the platform_ethernet_deinit, but it's not a long term solution.

0 Likes
AxLi_1746341
Honored Contributor

vtunr wrote:

Yes it does work when i have a cable plugged and internet available.     I have the same issue using wiced_network_down.    My work around is to comment out the platform_ethernet_deinit, but it's not…

Then it is nothing to do with USI.

It is sdk bug.

mifo

0 Likes
mattl_01
Employee

What is the status of this issue?

0 Likes
GauravS_31
Moderator
Moderator

I tested snip.ping_ethernet on platform BCM943907AEVAL1F with the macro WICED_USE_ETHERNET_INTERFACE enabled and ran the project in debug mode. I did not connect ethernet cable to the platform. I saw that it entered platform_ethernet_deinit( ) but I did not see this malloc error. The function platform_ethernet_deinit() returned 0. How did you reproduce this malloc error? Did you place breakpoint somewhere in the code? Also which Wi-Fi chip does BCMUSI23 contain?

View solution in original post

GauravS_31
Moderator
Moderator

Can you reproduce this issue on CYW943907AEVAL1F or any other 43907 based eval board?