打印
[PIC®/AVR®/dsPIC®产品]

dsPIC33FJ128GP706 链接出问题

[复制链接]
3826|2
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
hufa123|  楼主 | 2014-4-11 09:46 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
----------------------------------------------------------------------
Release build of project `D:\LKXB\LKXB.mcp' started.
Language tool versions: pic30-as.exe v3.30, pic30-gcc.exe v3.30, pic30-ld.exe v3.30, pic30-ar.exe v3.30
Fri Apr 11 09:13:39 2014
----------------------------------------------------------------------
Make: The target "D:\LKXB\adcDrv1.o" is out of date.
Executing: "C:\Program Files\Microchip\mplabc30\v3.30b\bin\pic30-gcc.exe" -mcpu=33FJ128GP706 -x c -c   "SRC\adcDrv1.c" -o"adcDrv1.o" -I"D:\LKXB\H" -g -Wall
SRC\adcDrv1.c: In function 'ProcessADC_Samples_4dp':
SRC\adcDrv1.c:164: warning: control reaches end of non-void function
Make: The target "D:\LKXB\ATT7026.o" is up to date.
Make: The target "D:\LKXB\deal.o" is up to date.
Make: The target "D:\LKXB\define.o" is up to date.
Make: The target "D:\LKXB\drvi2c.o" is up to date.
Make: The target "D:\LKXB\guzhang.o" is up to date.
Make: The target "D:\LKXB\i2c_Func.o" is up to date.
Make: The target "D:\LKXB\LCD160128.o" is up to date.
Make: The target "D:\LKXB\LCDInterface.o" is up to date.
Make: The target "D:\LKXB\main.o" is up to date.
Make: The target "D:\LKXB\zimo.o" is up to date.
Make: The target "D:\LKXB\uart1Drv.o" is up to date.
Make: The target "D:\LKXB\R3223.o" is up to date.
Make: The target "D:\LKXB\OUTPUT\LKXB.cof" is out of date.
Executing: "C:\Program Files\Microchip\mplabc30\v3.30b\bin\pic30-gcc.exe" -mcpu=33FJ128GP706 "adcDrv1.o" "ATT7026.o" "deal.o" "define.o" "drvi2c.o" "guzhang.o" "i2c_Func.o" "LCD160128.o" "LCDInterface.o" "main.o" "zimo.o" "uart1Drv.o" "R3223.o" -o"D:\LKXB\OUTPUT\LKXB.cof" -Wl,-Tp33FJ128GP706.gld,--defsym=__MPLAB_BUILD=1,-Map="D:\LKXB\OUTPUT\LKXB.map",--report-mem


Program Memory  [Origin = 0x200, Length = 0x155fe]

section                    address   length (PC units)   length (bytes) (dec)
-------                    -------   -----------------   --------------------
.text                        0x200               0x3ac           0x582  (1410)
.const                       0x5ac              0x1cb0          0x2b08  (11016)
.text                       0x225c              0xf532         0x16fcb  (94155)
.dinit                     0x1178e                0x50            0x78  (120)
.text                      0x117de                0x36            0x51  (81)

                     Total program memory used (bytes):        0x1a11e  (106782) 81%


Data Memory  [Origin = 0x800, Length = 0x4000]

section                    address      alignment gaps    total length  (dec)
-------                    -------      --------------    -------------------
.nbss                        0x800                   0           0x8b4  (2228)
.ndata                      0x10b4                   0             0xa  (10)
.nbss                       0x10be                   0             0x8  (8)
.ndata                      0x10c6                   0             0x4  (4)
.nbss                       0x10ca                   0             0x2  (2)
_029f4000534741c5           0x4700                   0            0x50  (80)
_03587d20534741c5           0x4750                   0            0x50  (80)

                        Total data memory used (bytes):          0x96c  (2412) 14%


Dynamic Memory Usage

region                     address                      maximum length  (dec)
------                     -------                      ---------------------
heap                             0                                   0  (0)
stack                       0x10cc                              0x3634  (13876)

                        Maximum dynamic memory (bytes):         0x3634  (13876)

LCD160128.o(.text+0x568): In function `Dis_float':
D:\LKXB\SRC\LCD160128.c:358: Link Error: PC Relative branch to '___ltsf2' is out of range. Suggest large-code model.
LCD160128.o(.text+0x576):D:\LKXB\SRC\LCD160128.c:360: Link Error: PC Relative branch to '___subsf3' is out of range. Suggest large-code model.
LCD160128.o(.text+0x578):D:\LKXB\SRC\LCD160128.c: Link Error: PC Relative branch to '___fixunssfsi' is out of range. Suggest large-code model.
LCD160128.o(.text+0x592):D:\LKXB\SRC\LCD160128.c:365: Link Error: PC Relative branch to '___mulsf3' is out of range. Suggest large-code model.
LCD160128.o(.text+0x594):D:\LKXB\SRC\LCD160128.c: Link Error: PC Relative branch to '___fixunssfsi' is out of range. Suggest large-code model.

Link step failed.

----------------------------------------------------------------------
Release build of project `D:\LKXB\LKXB.mcp' failed.
Language tool versions: pic30-as.exe v3.30, pic30-gcc.exe v3.30, pic30-ld.exe v3.30, pic30-ar.exe v3.30
Fri Apr 11 09:13:47 2014
----------------------------------------------------------------------
BUILD FAILED


1.这个程序比较大,提示要用大代码模式?,这怎么去设置?
2.这个程序空间才81%,编译能过,为什么链接有问题?
有谁遇到过的,帮忙指点下,谢谢
沙发
huangxz| | 2014-4-11 10:25 | 只看该作者
这个 吧

使用特权

评论回复
板凳
hufa123|  楼主 | 2014-4-11 11:22 | 只看该作者
是这个,能链接成功了,谢谢资深工程师,但我有还一个疑问,普通,小代码,大代码模式编译出来的东西 有什么区别?能不能提供这块资料?感谢

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

186

主题

393

帖子

2

粉丝