DagAgren
Posts: 3
Joined: Sun Jan 10, 2016 11:13 pm

Up-to-date LwIP and FreeRTOS with Broadcom WWD-based WiFi driver

Sun Jan 10, 2016 11:40 pm

Hello!

I am the kind of person who really hates having to use complicated frameworks when programming, especially for embedded systems. So when I got my EMW3165, I was immediately annoyed by WICED and MICO (which I can't even use anyway, since I want my gcc), and how overly complicated they are.

So I set out to run a basic system based on nothing but up-to-date LwIP and FreeRTOS. This took a bit of doing, but I managed to bash the WICED WiFi Driver into building separately from the rest of WICED, and to run under LwIP 1.4.1 and FreeRTOS 8.2.3.

If you are also the kind of person who'd rather do things by yourself rather than rely on systems like WICED, have a look at my test application:

https://bitbucket.org/WAHa_06x36/emw3165-template

Currently it only implements a simple pinger, but it should contain everything needed to build more complicated programs. I have not yet had time to test it, though! Do let me know if any of this seems useful to you, or if you're going to try it out!

(I also really hate the STM libraries, so I am not including those either, just accessing everything through hardware registers. If you don't like this, you can easily add them yourself.)

DagAgren
Posts: 3
Joined: Sun Jan 10, 2016 11:13 pm

Re: Up-to-date LwIP and FreeRTOS with Broadcom WWD-based WiFi driver

Mon Jan 11, 2016 4:54 pm

I noticed something odd while testing: The MAC address specified in the NVRAM data image seems to be completely ignored by the wifi chip firmware. Instead I get the MAC address "d0:ba:e4:00:7e:ba", which seems to belong to a range owned by MXCHIP.

Doing some more testing, at least one of the original WICED test apps seems to be the exact same. It also ignores the specified MAC address.

Has anyone else noticed this? Is the default MAC address specific to the chip, or is it hardcoded in the firmware?

AriZuu
Posts: 1
Joined: Wed Feb 17, 2016 7:32 pm

Re: Up-to-date LwIP and FreeRTOS with Broadcom WWD-based WiFi driver

Wed Feb 17, 2016 7:38 pm

DagAgren wrote:Is the default MAC address specific to the chip, or is it hardcoded in the firmware?


I remember reading from somewhere that some Broadcom Wifi chips have MAC address on chip. When that is the case
the address in nvram is not used.

For another attempt to integrate Wiced SDK with fresh LwIP (I'm using lwip development version from git repository) take a look at

https://github.com/AriZuu/wiced-driver
https://github.com/AriZuu/wiced-test

It works quite nice, I even got IPv6 working. However, my work is not FreeRTOS based, I'm using Pico]OS.

Regards,

Ari S.

loboris
Posts: 40
Joined: Tue Sep 15, 2015 7:47 am
Location: Zagreb, Croatia

Re: Up-to-date LwIP and FreeRTOS with Broadcom WWD-based WiFi driver

Sat Feb 20, 2016 10:33 am

Thank you for your very interesting work.

ammaree
Posts: 1
Joined: Fri Feb 26, 2016 4:07 pm

Re: Up-to-date LwIP and FreeRTOS with Broadcom WWD-based WiFi driver

Fri Feb 26, 2016 4:29 pm

Hi there,

Only came across you post now, and cannot agree more with you. The KiSS principle (keep it Short and Simple) absolutely apply to reliable software development.

Just as a point of reference, here are some links taking up the WICED complexity problems...

[url]
https://community.broadcom.com/thread/5302
https://community.broadcom.com/thread/5410
https://community.broadcom.com/thread/5942
[/url]

I will have a look at your link this weekend and provide some feedback.

Andre


Return to “Firmware Development”

Who is online

Users browsing this forum: No registered users and 3 guests