Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong RAM/flash usage reported by Mbed CLI #998

Open
swapnilsayansaha opened this issue Nov 22, 2021 · 0 comments
Open

Wrong RAM/flash usage reported by Mbed CLI #998

swapnilsayansaha opened this issue Nov 22, 2021 · 0 comments

Comments

@swapnilsayansaha
Copy link

swapnilsayansaha commented Nov 22, 2021

Sample resource usage of program compiled “claimed” by GCC_ARM via Mbed CLI for STM32F746ZG NUCLEO board:

image

Sample resource usage of program compiled “claimed” by ARM compiler via Mbed Studio for the same program and same hardware:
image

Why is the output different? GCC_ARM completely ignores the contribution coming from model.o and also underreports the overall flash and RAM contributions of each component. Note that the program runs fine in both cases on the target hardware. This is important for me because I need to profile how much flash and RAM a tensorflow lite micro model consumes. I tried using ARM compiler with CLI but it wants license.

It seems like a well-known issue: https://forums.mbed.com/t/code-size-reporting-does-not-take-into-account-rodata/15269
ARMmbed/mbed-os#12541

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant