How can I visualise the memory (SRAM) usage of an AVR program?

前端 未结 8 1036
不知归路
不知归路 2020-12-14 08:40

I have encountered a problem in a C program running on an AVR microcontroller (ATMega328P). I believe it is due to a stack/heap collision but I\'d like to be able to confirm

8条回答
  •  时光说笑
    2020-12-14 08:55

    Don't use the heap / dynamic allocation on embedded targets. Especially with a processor with such limited resources. Rather redesign your application because the problem will reoccur as your program grows.

提交回复
热议问题