2016-03-03 12:22 AM
Hi all,
Thanks in advance for your time spent on this topic.I have spent several months on STM32 project, fine with software coding, but keep confusion on the startup file, which would appear inalmost every project as below. I think everyone of you also should be very familiar with it.Thanks~~ #startup-file
2016-03-03 08:56 AM
Hi lao.jian,
You may find more explanation on the startup file content in https://www.keil.com/pack/doc/CMSIS/Core/html/startup_s_pg.html.-Mayla-To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2016-03-03 10:30 AM
Do your subroutines use local/auto variables? How do those stack up for your deepest call chain? The default stack is often inadequate, especially when used with sscanf/sprintf type functionality. It also often catches PC coders used to huge limitless stacks, and not aware of static or const directives and there appropriate use in subroutines.
Do you malloc any variables or allocations during initialization, or run time? Is the heap provided adequate to support your needs?If you can answer these questions, then you should be able to determine *your* heap/stack requirements.