You have the "build analyzer" view that can show the Flash size for each function.
RAM size for functions? Are you referring to how much stack they will consume once called?
If so the view called "Static stack analyzer" can help you with this.
Both are documented in the User Guide reached from Help > Information Center > Read STM32CubeIDE Documentation > STM32CubeIDE User Guide.
Does this answer the question, or did I missunderstand?
In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.
Hi What settings do I need to set so as to find the stack usage in the static analyzer ? There are so many Settings in the IDE but which is the correct one here ? thanks