This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] MSP430G2553:内存不足、程序崩溃

Guru**** 2582425 points
Other Parts Discussed in Thread: MSP430G2553, ENERGIA

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/670183/msp430g2553-low-on-memory-program-crashing

器件型号:MSP430G2553
主题中讨论的其他器件: Energia

我有一个16*2液晶屏、4*4键盘和与 MSP430G2553连接的软件串行器。 代码在 LCD 和键盘上工作正常、全局变量占存储器的57%。 但是、一旦我初始化软件串行器、85%的内存被占用、每次代码都会崩溃。 Energia 警告:"可用内存不足、可能会出现稳定性问题。" 如何在不使用任何库和不转换到更大电路板的情况下解决此问题?

 

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Diptangshu、
    我认为 Energia 没有任何编译器选项来帮助解决这个问题、唯一的方法是修整您的代码或移动到更大的 plat 形式。

    CCS 是否适合您? 如果是这样、它确实具有编译器优化选项、可以将代码缩减到大小。