共2条
1/1 1 跳转至页
iar,release iar 2.2 编译release版时出错,请教大虾们
问
Building configuration: gas - Release
Error[e16]: Segment DATA16_Z (size: 0xb9 align: 0x1) is too long for segment definition. At least 0x38 more bytes needed. The problem occurred while processing the
segment placement command "-Z(DATA)DATA16_I,DATA16_Z,DATA16_N,HEAP+_HEAP_SIZE=0200-0280", where at the moment of placement the available memory
ranges were "CODE:200-280"
请问该怎么做,是不是有什么设置可以该,还是别的什么,谢谢! 答 1: 定义太长,超出范围(B9H=182>80H=128)。 答 2: 我定义了一个结构体最大了104bytes,没有再大的了,还有,"-Z(DATA)DATA16_I,DATA16_Z,DATA16_N,HEAP+_HEAP_SIZE=0200-0300”是系统自定义的,如下:
//*****************************************************************
// The following segments are defined in this linker command file:
//
// Data read/write segments (RAM)
// ==============================
//
// segment address range usage
// ------- ------------- --------------------------
// DATA16_I 0200-0300 Initialized variables
// DATA16_Z 0200-0300 Zero initialized variables
// DATA16_N 0200-0300 Uninitialized variables
// CSTACK 0200-0300 Run-time stack/auto variables
// HEAP 0200-0300 The heap used by malloc and free in DLIB
请问张工,应该怎么处理?谢谢 答 3: 变量太多的缘故吧! 答 4: 对,对!!
Error[e16]: Segment DATA16_Z (size: 0xb9 align: 0x1) is too long for segment definition. At least 0x38 more bytes needed. The problem occurred while processing the
segment placement command "-Z(DATA)DATA16_I,DATA16_Z,DATA16_N,HEAP+_HEAP_SIZE=0200-0280", where at the moment of placement the available memory
ranges were "CODE:200-280"
请问该怎么做,是不是有什么设置可以该,还是别的什么,谢谢! 答 1: 定义太长,超出范围(B9H=182>80H=128)。 答 2: 我定义了一个结构体最大了104bytes,没有再大的了,还有,"-Z(DATA)DATA16_I,DATA16_Z,DATA16_N,HEAP+_HEAP_SIZE=0200-0300”是系统自定义的,如下:
//*****************************************************************
// The following segments are defined in this linker command file:
//
// Data read/write segments (RAM)
// ==============================
//
// segment address range usage
// ------- ------------- --------------------------
// DATA16_I 0200-0300 Initialized variables
// DATA16_Z 0200-0300 Zero initialized variables
// DATA16_N 0200-0300 Uninitialized variables
// CSTACK 0200-0300 Run-time stack/auto variables
// HEAP 0200-0300 The heap used by malloc and free in DLIB
请问张工,应该怎么处理?谢谢 答 3: 变量太多的缘故吧! 答 4: 对,对!!
共2条
1/1 1 跳转至页
回复
有奖活动 | |
---|---|
【有奖活动】分享技术经验,兑换京东卡 | |
话不多说,快进群! | |
请大声喊出:我要开发板! | |
【有奖活动】EEPW网站征稿正在进行时,欢迎踊跃投稿啦 | |
奖!发布技术笔记,技术评测贴换取您心仪的礼品 | |
打赏了!打赏了!打赏了! |
打赏帖 | |
---|---|
vscode+cmake搭建雅特力AT32L021开发环境被打赏30分 | |
【换取逻辑分析仪】自制底板并驱动ArduinoNanoRP2040ConnectLCD扩展板被打赏47分 | |
【分享评测,赢取加热台】RISC-V GCC 内嵌汇编使用被打赏38分 | |
【换取逻辑分析仪】-基于ADI单片机MAX78000的简易MP3音乐播放器被打赏48分 | |
我想要一部加热台+树莓派PICO驱动AHT10被打赏38分 | |
【换取逻辑分析仪】-硬件SPI驱动OLED屏幕被打赏36分 | |
换逻辑分析仪+上下拉与多路选择器被打赏29分 | |
Let'sdo第3期任务合集被打赏50分 | |
换逻辑分析仪+Verilog三态门被打赏27分 | |
换逻辑分析仪+Verilog多输出门被打赏24分 |