For Cortex-M3, how to check maximum SRAM usage by an embedded application running on it. Should we check linker map file and stack usage generated by IAR or should we try with writing a function which check current SRAM and call it in application at various place at runtime. Which method should be used.
How to check SRAM usage for cortex m3 for an application
292 Views Asked by Deepak Sharma At
1
There are 1 best solutions below
Related Questions in ARM
- Jiobook flashing
- How to flush denormal numbers to zero for apple silicon?
- How to exploit Unified Memory in OpenCL with CL_MEM_ALLOC_HOST_PTR flag?
- ARM Assembly code is not executing in Vitis IDE
- Which version of ARM does the M1 chip run on?
- Vector by Scalar Division with -ffast-math
- Why veneer code generated by gcc for cortex-m0 seems 8-byte aligned?
- Getting almost random time stamp counter on ARM
- Portenta H7 Baremetal Development and a Little Guidance on Embedded System Learning Roadmap
- STM32 RTC3 Mixed Mode: Writing TR resets SSR
- Implementing Quick Sort Algorithm in Visual2 with armv7
- How can I create an Inline assembly command with a multi-variable register offset?
- Inquiry: ARM Compatibility for Puppeteer
- Confusion with thumb instructions while compiling recipe for cortexm4 CPU
- Difficulty understanding virtual LPIs in GICv3
Related Questions in CORTEX-M
- Why veneer code generated by gcc for cortex-m0 seems 8-byte aligned?
- STM32G030 refuses write to flash
- Unable to read value from gpio set as input
- Microcontroller hangs with LWIP UDP
- Can't connect ST-Link with APM32F003 through OpenOCD
- programming and debugging of different sam types
- VTOR not found in STM32F030
- Unit tests on registers with bare metal programming
- Force .bss section to be in last program header
- J-Link script to flash program in S32K144 (allow security)
- Cortex-M external interrupt occurs when executing fault handler with higher priority
- Why gcc is not using S16-S31 registers of Cortex M7?
- Issue with measuring ARM MCU interrupt latency
- What is the most efficient way to write two (for example) bits of a register using cortex-m0 instruction set?
- How to do unaligned int store on ARM Cortex M4?
Related Questions in IAR
- PC-Lint on IAR not understanding std::atomic<>
- changing white space character in IAR embedded
- How can i download IAR EWARM 8.30.1
- Running a C code developed in IAR on Windows
- Initializing Global Variables in IAR
- Writing problem after placing a group of variables in a specific section with IAR arm linker
- Timers window of the ThreadX IAR plugin crashing IAR when a 10th timer is created
- Memory intersection problem in IAR Embedded Workbench
- how to make a common linker for keil and IAR
- extern const declaration as pointer causes hard fault in C?
- How to create a test.out file to sue for Unity Ceedling testing framework in IAR compiler
- Using IAR Embedded Workbench to configure an Arduino Due through J-link, the debugger never reaches the main function of my C-Code
- STM32 Stop mode
- IAR Workbench color customization
- How to choose FlexSpi channel in IAR
Related Questions in MEMORY-SIZE
- adressability of memory system of a computer is 2 bytes.I need 18 bits to access a location in memory.What is the total size of the memory in bytes?
- AdapterRAM property not showing correct value for discrete card
- Why float to int is not implicitly converted in Java when both uses 4 bytes in memory?
- Saving Random Forest Classifiers (sklearn) with picke/joblib creates huge files
- Estimating how much memory a list requires - understanding how sys.getsizeof() work
- How to check memory size of HtmlDocument created with HtmlAgilityPack, or any other document?
- How can I set a variable to use exactly X bits?
- Allowed memory size of 1073741824 bytes exhausted Opencart
- FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory while building an angular 8 project
- How to check SRAM usage for cortex m3 for an application
- Allowed memory size exhausted in PHP for loop
- Fatal error: Allowed memory size exhausted while looping through a 14 element long single-character-array
- Naive approach to finding table size in SQL Developer?
- How many memory the bit-vector using in sbcl?
- Errors while run project or build apk
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Not easily, because stack usage differs by quite a lot, and can not be known at compile time, unless you have some restrictions (no proper recursion for example).
That said, there are some tools that might help you get worst-case stack usage:
(There's also some development on this topic in Rust: https://blog.japaric.io/stack-analysis/)