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
- C Global declared in ISR
- kill function from ISR on cortex-m0
- STM32 I-CODE and D-CODE buses
- lpc17xx frequency detection of square wave using polling
- Cortex M0 hardfault; BLC Huffman
- FFT in ARM Cortex-M0 returns NaN or infinite
- How to write to SHPR2 correctly on cortex M0
- Flashing image to STM3220g-EVAL board using Trace 32
- Change Stack Location for Cortex M3 in Startup.s file
- How to change endianess settings in cortex m3?
- Creating a loop within an assembly macro - IAR ARM
- LDMIA instruction not working correctly on external SRAM in cortex M4
- Can I use the "Instruction" TCM in an Atmel SAM E70 processor for data?
- Using LZ4HC algorithm in an ARM Cortex-M3 processor
- Can I port a library compliled for Cortex M3 onto a cortex M4?
Related Questions in IAR
- What is the IAR equiavlent of the gcc linker NOLOAD directive?
- getting Error[Pe020]: identifier "" is undefined in IAR with an typedef enum
- How to add entire path into IAR
- Creating a loop within an assembly macro - IAR ARM
- Communication with SD Card with STM32 Processor - SDIO protocol
- How can I configure Ceedling for an IAR Embedded Workbench project?
- Generate IAR code coverage when running C-Spy outside of the IDE
- IAR Pre-Build batch file python call not working
- Fail in loading flash loader on IAR Workbench
- How can I stop my IAR ide from hanging when changing build configurations
- Getting Fatal Error[Li001] in IAR Embedded Work Bench
- If statement in C not evaluating properly?
- IAR Workbench - How to get the file name and its path of the code appears in dis-assembly window?
- How to play a tone on the MSP430 using Assembly language
- Value <unavailable> 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 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/)