亿加合和智能车制作

标题: 这个程序 哪有问题 新手求解决 [打印本页]

作者: 芸纤飘羽    时间: 2011-11-9 12:06
标题: 这个程序 哪有问题 新手求解决
#pragma CODE_SEG __NEAR_SEG NON_BANKED  //指示该程序在不分页区
void interrupt 24 V_ISR(void)  //Pj7   行
{
  PIFJ = 0xff;   //clear the flag
   
  Y_FLAG++;
  if(Y_FLAG%6==0 && Y_FLAG<=292)
     line_Pixle_AD();
  else if(Y_FLAG>=300)
      Y_FLAG=0;   
}

void interrupt 6 H_ISR(void)  //IRQ   场
{
    IRQCR_IRQE=1;   
    IRQCR_IRQEN=1;
    Y_FLAG=0;
    image_Y=0;
    transmit_image();
}
作者: 芸纤飘羽    时间: 2011-11-9 12:52
加上中断 程序编译不通过 也找不到哪儿出问题了
作者: sonwendi    时间: 2011-11-9 15:31
错误号是什么?在帮助里面可以查找,看一下吧~
作者: 芸纤飘羽    时间: 2011-11-9 19:29
line_Pixle_AD();transmit_image();
这两个函数 不会调用 显示超出 范围 查不到具体原因
作者: 芸纤飘羽    时间: 2011-11-9 19:32
link Error 1102 OUT of allocation space in sdgment RAM at address 0x2104
这样的错误
作者: sonwendi    时间: 2011-11-9 22:39
本帖最后由 sonwendi 于 2011-11-9 22:51 编辑

回复 5# 芸纤飘羽

  1. Description
  2. The specified segment is not big enough to contain all objects from the sections placed in it.
  3. <segment name>: is the name of the segment, which is too small.
  4. <first address free>: is the first address free in this segment (i.e. the address following directly the last address used).
  5. Example
  6. In the following example, suppose the section .data contains a character variable and then a structure which size is 5 bytes.
  7. Out of allocation space in segment MY_RAM at address 0x801
  8. LINK fibo.abs
  9. NAMES fibo.o startup.o END
  10. SEGMENTS
  11. MY_RAM = READ_WRITE 0x800 TO 0x803;
  12. MY_ROM = READ_ONLY 0x805 TO 0xAFF;
  13. MY_STK = READ_WRITE 0xB00 TO 0xBFF;
  14. END
  15. PLACEMENT
  16. .text INTO MY_ROM;
  17. .data INTO MY_RAM;
  18. .stack INTO MY_STK;
  19. END
  20. // Set reset vector on _Startup
  21. VECTOR ADDRESS 0xFFFE _Startup

  22. Tips
  23. Set the end address of the specified segment to an higher value.
复制代码

作者: 芸纤飘羽    时间: 2011-11-10 09:54
谢谢还是 有点不是很懂 这个问题我也查到了就是我 交换数据 时出现的  不知道该怎么解决!!比以前有进展!
作者: 蓝鲸    时间: 2011-11-10 10:20
......
作者: hyshallow0    时间: 2012-4-2 19:17
应该是数据太多了,超出了raw的范围。




欢迎光临 亿加合和智能车制作 (http://111.231.132.190/) Powered by Discuz! X3.2