Memory map of application

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

cross mob
iono_4292956
Level 1
Level 1
First like given

Hi - I got cypress board with STM32 mcu. I read OTA pdf and it has memory map two option: External or internal+external

How to know what combination used by my application?? I want to know memory map of my current application. For example where is bootlaoder and size, DCT and size, application and size, factory app and size etc. Also I want to know where it is stored (internal or external). How to trace it?

I dont know currently what configuration used by my app. I do OTA successfully but don't know where application got stored???

0 Likes
1 Reply
PriyaM_16
Moderator
Moderator
Moderator
250 replies posted 100 replies posted 50 replies posted

Hello,

You can check the makefile of your project for "RESOURCES_LOCATION".

If RESOURCES_LOCATION is set to RESOURCES_IN_WICEDFS --> the resources go to external flash and the main application is downloaded to internal flash.

If RESOURCES_LOCATION is set to RESOURCES_IN_DIRECT_RESOURCES --> the resources and application, all go to internal flash.

Usually the internal flash is not big enough to hold the resources+ application(As resources contains the wifi firmware and blob file also) so the configuration folowed is internal+external flash.

Alternatively you can check the config.mk file created in the build directory(43xxx_Wi-Fi\build\snip.ota_fr-BCM94343WWCD2\config.mk) for RESOURCES_LOCATION.

It also gives the other resources which constitute all resources in your application(like any html page or image, etc.)

During programming the board, the WICED console shows the data that goes to internal flash(under flash) and the sector addresses for contents/binaries which are copied into external flash

One such log is shown here:

Making snip.apsta-BCM94343WWCD2.bin

snip.apsta-BCM94343WWCD2

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

                                  |         |  Static |

              Module              |  Flash  |   RAM   |

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

App                               |    1126 |    1056 |

crc                               |    1060 |       0 |

DHCP_Server                       |    1428 |     132 |

DNS                               |      64 |      44 |

DNS_Redirect_Daemon               |     659 |       0 |

Host MCU-family library           |   15819 |    2692 |

HTTP_Server                       |    4047 |       8 |

Interrupt Vectors                 |     396 |       0 |

libc                              |   32093 |    3372 |

Linked_List                       |     500 |       0 |

mbedTLS                           |  111980 |      88 |

Networking                        |    6153 |   13952 |

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

Other                             |   48367 |     677 |

Packet Buffers                    |       0 |   22470 |

platform                          |    1316 |     256 |

RAM Initialisation                |    2828 |       0 |

resources                         |   13556 |       0 |

Ring_Buffer                       |     100 |       0 |

SPI_Flash_Library_BCM94343WWCD2   |     512 |       0 |

Startup Stack & Link Script fill  |      73 |      13 |

Supplicant - BESL                 |    3604 |     184 |

ThreadX                           |    8740 |     400 |

WICED                             |    4514 |    1100 |

wiced_log                         |     514 |    1104 |

Wiced_RO_FS                       |     566 |       0 |

WWD                               |   28789 |    3272 |

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

TOTAL (bytes)                     |  285976 |   50836 |

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

Downloading Bootloader ...

Building apps lookup table

No changes detected

Downloading DCT ...

No changes detected

Downloading resources filesystem ... build/snip.apsta-BCM94343WWCD2/filesystem.bin at sector 1  size 100...

Downloading apps lookup table in wiced_apps.mk ... build/snip.apsta-BCM94343WWCD2/APPS.bin @ 0x0000 size

Downloading Application ...

No changes detected

0 Likes