gpt4 book ai didi

c - 无法使用 C30 编译器复制 PIC24FJ256GB206 中的数组

转载 作者:太空宇宙 更新时间:2023-11-04 04:16:30 24 4
gpt4 key购买 nike

我正在尝试使用 C30 编译器将数组复制到 PIC24 PIC24FJ256GB206 microcontroller 中的另一个数组。我的数组长度超过 1500 字节。这是我的代码:-

int i=0;
int count = sizeof(rx.data.buff.fields.data);
for(i=0;i<count;i++)
{
rec.data.data_block.data[i] = rx.data.buff.fields.data[i];
}

但是当我编译我的代码时,我得到这个错误:-

build/SINGLE_PORT_BAUD57600/production/_ext/733800733/rdso_icd_0065.o(.text+0x1604)c:\program files (x86)\microchip\mplab c30\bin\bin\..\bin/pic30-elf-ld.exe: Dwarf Error: found address size '3', this reader can only handle address sizes '2', '4' and '8'.
: In function `.LM403':
: undefined reference to `_rec'
make[2]: *** [dist/SINGLE_PORT_BAUD57600/production/StandaloneHCD.X.production.hex] Error 255
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2

显然这不是逻辑问题。但这可能是什么原因?解决方案是什么?谢谢

最佳答案

如果您的数据超过 8 KB,则必须将数据模型切换为大型:

ProjectProperties / Conf: / Memory model / Data model = Large

关于c - 无法使用 C30 编译器复制 PIC24FJ256GB206 中的数组,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51592603/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com