How to store Wifi FW into MCU internal flash

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
HeCh_2137836
Level 3
Level 3
5 likes given First like received First like given

Hi Sir,

   We got the BCM94343WWCD2 EVB. The platform default setting wifi firmware store into external flash, we would like to know how to store wifi firmware into the MCU internal flash.

0 Likes
1 Solution
DaBa_2244756
Level 5
Level 5
25 likes received 10 likes received 10 likes given

WIFI firmware not 6Mb it about 360kb (4343WA1.bin), so you can load into internal flash. (At this choice, you have very big loading speed and external spi flash chip free, but lost internal flash for apps )

Try insert in platform makefile this.... it tested in sdk 3.5 maybe in 3.7.

WIFI_FIRMWARE_IN_SPI_FLASH = NO

#WIFI_FIRMWARE_IN_SPI_FLASH = YES

#if YES, USES_RESOURCE_FILESYSTEM also must be define in platform_config.h

#if not defined  WIFI_FIRMWARE  then it became internal

ifneq ($(WIFI_FIRMWARE_IN_SPI_FLASH),YES)

#darius nuskaitymas is savo flash

GLOBAL_DEFINES          += WWD_DIRECT_RESOURCES

else

    # Set the WIFI firmware in multi application file system to point to firmware

    ifeq ($(NO_WIFI_FIRMWARE),)

        MULTI_APP_WIFI_FIRMWARE   := resources/firmware/$(WLAN_CHIP)/$(WLAN_CHIP)$(WLAN_CHIP_REVISION)$(WLAN_CHIP_BIN_TYPE).bin

    endif

ifeq ($(MULTI_APP_WIFI_FIRMWARE),)

    ifeq ($(BUS),SDIO)

        GLOBAL_DEFINES          += WWD_DIRECT_RESOURCES

    endif

else

    # Setting some internal build parameters

    WIFI_FIRMWARE           := $(MULTI_APP_WIFI_FIRMWARE)

    WIFI_FIRMWARE_LOCATION     := WIFI_FIRMWARE_IN_MULTI_APP

    GLOBAL_DEFINES          += WIFI_FIRMWARE_IN_MULTI_APP

endif

BR

Darius

View solution in original post

3 Replies
VinayakS_26
Moderator
Moderator
Moderator
100 replies posted 50 replies posted 25 replies posted

Hey,

    

     The WiFi firmware stored in the external flash is about 6MB , and the internal flash memory of the host MCU is limited to only 1MB. Hence storing the firmware in internal flash of MCU may not be possible.

DaBa_2244756
Level 5
Level 5
25 likes received 10 likes received 10 likes given

WIFI firmware not 6Mb it about 360kb (4343WA1.bin), so you can load into internal flash. (At this choice, you have very big loading speed and external spi flash chip free, but lost internal flash for apps )

Try insert in platform makefile this.... it tested in sdk 3.5 maybe in 3.7.

WIFI_FIRMWARE_IN_SPI_FLASH = NO

#WIFI_FIRMWARE_IN_SPI_FLASH = YES

#if YES, USES_RESOURCE_FILESYSTEM also must be define in platform_config.h

#if not defined  WIFI_FIRMWARE  then it became internal

ifneq ($(WIFI_FIRMWARE_IN_SPI_FLASH),YES)

#darius nuskaitymas is savo flash

GLOBAL_DEFINES          += WWD_DIRECT_RESOURCES

else

    # Set the WIFI firmware in multi application file system to point to firmware

    ifeq ($(NO_WIFI_FIRMWARE),)

        MULTI_APP_WIFI_FIRMWARE   := resources/firmware/$(WLAN_CHIP)/$(WLAN_CHIP)$(WLAN_CHIP_REVISION)$(WLAN_CHIP_BIN_TYPE).bin

    endif

ifeq ($(MULTI_APP_WIFI_FIRMWARE),)

    ifeq ($(BUS),SDIO)

        GLOBAL_DEFINES          += WWD_DIRECT_RESOURCES

    endif

else

    # Setting some internal build parameters

    WIFI_FIRMWARE           := $(MULTI_APP_WIFI_FIRMWARE)

    WIFI_FIRMWARE_LOCATION     := WIFI_FIRMWARE_IN_MULTI_APP

    GLOBAL_DEFINES          += WIFI_FIRMWARE_IN_MULTI_APP

endif

BR

Darius

HeCh_2137836
Level 3
Level 3
5 likes given First like received First like given

sqlsql_2244756​ Excellent, it worked on wiced studio 4.x. Thanks!

0 Likes