cancel
Showing results for 
Search instead for 
Did you mean: 

WICED Studio Wi-Fi Combo

Anonymous
Not applicable

Download errors for Murata SN8205 wiced 3.1.2 snip.ota_fr


It seems these are undefined:

FR_APP_SECTOR_START

DCT_IMAGE_SECTOR_START



SDK version 3.1.2

Murata SN8205x EVK


**** Build of configuration Default for project Wiced-SDK ****

C:\WICED\WICED-SDK-3.1.2\Wiced-SDK\make.exe snip.ota_fr-SN8205x download download_apps run

Making .gdbinit

Building Bootloader

Building Serial Flash Loader App

Finished Building Bootloader

waf_sflash_write-NoOS-NoNS-SN8205x-SDIO

----------------------------------|---------|---------|

                                  |         |  Static |

              Module              |  Flash  |   RAM   |

----------------------------------+---------+---------|

App                               |       0 |   21138 |

Host MCU-family library           |       0 |   12558 |

Interrupt Vectors                 |       0 |     424 |

Other                             |       0 |     548 |

platform                          |       0 |     888 |

Ring_Buffer                       |       0 |      36 |

SPI_Flash_Library_SN8205x         |       0 |     748 |

Startup Stack & Link Script fill  |       0 |     486 |

WWD                               |       0 |     142 |

----------------------------------+---------+---------|

TOTAL (bytes)                     |       0 |   36968 |

----------------------------------|---------|---------|

Build complete

Finished Building Serial Flash Loader App

snip_ota_fr-SN8205x

----------------------------------|---------|---------|

                                  |         |  Static |

              Module              |  Flash  |   RAM   |

----------------------------------+---------+---------|

App                               |     269 |       0 |

base64                            |     518 |       0 |

DHCP_Server                       |    1510 |     132 |

DNS                               |      64 |      44 |

Host MCU-family library           |   14280 |    2740 |

Interrupt Vectors                 |     424 |       0 |

libc                              |     223 |       4 |

Networking                        |    3658 |   14318 |

NetX                              |   54658 |     536 |

NetX-Duo - Interfaces & Stacks    |       0 |      12 |

OTA_Server                        |    8235 |     676 |

Other                             |   33734 |    2332 |

Packet Buffers                    |       0 |   23142 |

platform                          |    1024 |     176 |

RAM Initialisation                |    2424 |       0 |

resources                         |      16 |       0 |

Ring_Buffer                       |      92 |       0 |

SPI_Flash_Library_SN8205x         |     636 |       0 |

Startup Stack & Link Script fill  |      39 |     804 |

Supplicant - BESL                 |   89992 |     516 |

ThreadX                           |    9168 |     396 |

Wi-Fi Firmware                    |  210412 |       0 |

WICED                             |    2844 |     820 |

WWD                               |   13416 |    1112 |

----------------------------------+---------+---------|

TOTAL (bytes)                     |  445212 |   47760 |

----------------------------------|---------|---------|

Downloading Bootloader ...

Illegal division by zero at ./tools/text_to_c/sector_count.pl line 27.

Illegal division by zero at ./tools/text_to_c/sector_count.pl line 27.

Building apps lookup table

No changes detected

Downloading DCT ...

./WICED/platform/MCU/wiced_apps_lut.c:63:46: error: expected expression before ',' token

             .sectors = { {FR_APP_SECTOR_START,FR_APP_SECTOR_COUNT} }

                                              ^

./WICED/platform/MCU/wiced_apps_lut.c:68:49: error: expected expression before ',' token

             .sectors = { {DCT_IMAGE_SECTOR_START,DCT_IMAGE_SECTOR_COUNT} }

                                                 ^

./WICED/platform/MCU/wiced_apps_lut.c:73:49: error: expected expression before ',' token

             .sectors = { {DCT_IMAGE_SECTOR_START,DCT_IMAGE_SECTOR_COUNT} }

                                                 ^

tools/makefiles/wiced_apps.mk:64: recipe for target 'build/snip_ota_fr-SN8205x/APPS.elf' failed

make.exe[1]: *** [build/snip_ota_fr-SN8205x/APPS.elf] Error 1

make.exe[1]: *** Waiting for unfinished jobs....

No changes detected

Makefile:185: recipe for target 'main_app' failed

make: *** [main_app] Error 2

0 Likes
10 Replies
Anonymous
Not applicable

Hi,

The multi application file system is utilizing an external flash which needs to be configured in your platform files (along with location size and sector size, etc.). you need to contact your platform provider for multi application support in your platform.

Regards,

Bassem

0 Likes
Anonymous
Not applicable

Can you point me to some platforms as examples for how these values were defined?

0 Likes
Anonymous
Not applicable

All of our released platforms support OTA, so you can have a loot at any of them, so have a look  at BCM943362WCD6 for example.

I'd point to few parameters that need to be set:

- First i'm assuming you are using the default download_targe.mk file (that is your platform include a single make file and is not defining hte PLATFORM_TARGETS_MAKEFILE)

- you need to define two parameters in your plaform make file

# WICED APPS LOOKUP TABLE

APPS_LUT_HEADER_LOC := 0x0000

APPS_START_SECTOR := 1

those define where your look up table  and applications will be located will be located. In this example look up table will be in address 0x0000 and applications will start from sector 1 (for now the sector size is set to 4096 which can't be changed)

- in your paltform.h file you need to define the has OTA flag. This is to enable factory reset check (though a push button read)

- in plaform.c you need to implement the function wiced_bool_t platform_check_factory_reset( void ), this should basically check your push button and return true if the button is pressed.

again have a look at BCM943362WCD6 it has all the definitions and implementations.

Regards,

Bassem

0 Likes
Anonymous
Not applicable

Hi guys,

I am also looking for definitions (examples where they are defined) of:

FR_APP_SECTOR_START

DCT_IMAGE_SECTOR_START

FILESYSTEM_IMAGE_SECTOR_START

WIFI_FIRMWARE_SECTOR_START

APP0_SECTOR_START

APP1_SECTOR_START

APP2_SECTOR_START

Where can I find them?

Thanks in advance.

Oleg

0 Likes
Anonymous
Not applicable

Hi,

The definitions of these parameters are dynamically generated in wiced_apps.mk. The make scripts, look at each APP variable (eg. FR_IMAGE, DCT_IMAGE, etc.) and if set, read the file size and use this as an index to the starting address of the next file. Every time a file is set, the  start of it is then set to the current address and then the current address is incremented by the size of the file (aliged to the flash section size).

Regards,

Bassem

0 Likes
Anonymous
Not applicable

Thank you for the information. The ota_fr app kind of works for me.

I can load the snip.scan app but when I try to load a larger app like test.console

it does not restart. Same problem as described here:

OTA upgrade problem

My platform is using Winbond W25Q80BL 8Mbit flash. Is that problem due to flash size?

0 Likes
Anonymous
Not applicable

Hi Oleg,

Have you find a solution for the restarting problem ? I am facing the same issue with my application (i am able to upload snip.scan application but neither test.console nor my application which has a size of 750kB)

Thanks

Frederic

0 Likes
Anonymous
Not applicable

Hi Oleg,

There was a recent post @ Patch to put firmware on external flash This would put the firmware in to external flash and hence may be save some room from you apps.

See if this fixes your problem.

PS: WICED 3.3.0 (not sure if it finally released or not ) should have a standard feature of putting the WIFI firmware in external flash, try to grab this version and see if this option helps you.

Regards,

Bassem

0 Likes
Anonymous
Not applicable

Hi Frederic,

Yes I have. Bassem provided a solution. Please see his patch.

Oleg

0 Likes
Anonymous
Not applicable

Hi Bassem, Oleg,

Thanks for the input. In fact, even if I'm not trying (for the moment) to put the ressources in an external filesystem, your input has helped me to find my problem.

The main problem was that I didn't add the following lines in my platform make rules file (SN8205x.mk):

# WICED APPS LOOKUP TABLE

APPS_LUT_HEADER_LOC := 0x0000

APPS_START_SECTOR := 1

With these two lines, the make process create the symbols needed by wiced_apps_lut variable (in wiced_apps_lut.c).

Moreover, it allows the download of this apps LUT into external flash during the programming process (thru openOCD) :

Downloading FR_APP (build/snip_ota_fr-SN8205x/binary/snip_ota_fr-SN8205x.stripped.elf) at sector 1...

Downloading apps lookup table at 0x0000...

Now, I am able to upload my own application, test-console and snip-scan thru OTA server.

Best regards,

Frederic

0 Likes