[英]Out of RAM Memory on Msp430
我的 MSP430 上的 RAM 用完了,因為我收到了這條消息;
Error[e16]: Segment DATA16_Z (size: 0x638 align: 0x1) is too long for segment definition. At least 0x44 more bytes needed. The problem occurred while
processing the segment placement command "-Z(DATA)DATA16_I,DATA16_Z,DATA16_N=0200-_SYS_RAM_END", where at the moment of placement
the available memory ranges were "CODE:20b-7ff"
Reserved ranges relevant to this placement:
200-7ff DATA16_I
Error while running Linker
所以我發現問題出在我的一個函數中的這些靜態變量;
static float circularBufferTemp[CIRC_BUFF_WIDTH_SCH3] = {0};
static float circularBufferHumi[CIRC_BUFF_WIDTH_SCH3] = {0};
static UCHAR indexMeasTemp = 0;
static UCHAR indexMeasHumi = 0;
現在的問題是; 考慮到每次應用程序代碼調用該函數時我都必須將這些變量保存在該函數中,我該如何避免這個問題?
你可以考慮:
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.