• slider image 442
  • slider image 497
  • slider image 498
  • slider image 499
  • slider image 500
  • slider image 502
:::


Browsing this Thread:   1 Anonymous Users






Re: rtos build
#5
新會員
新會員


查看用戶資訊
请版主就上面的问题指点迷津,解燃眉之急!

發表於: 2007/8/16 9:46
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: rtos build
#4
新會員
新會員


查看用戶資訊
IDE版本:7.60
C30版本:3.01
dsPIC30_v1.1中的实例

Build Option: -mlarge-data -mlarge-scalar
Build时出現:
.....
E:\MICRIUM\Software\os_tmr.o(.text+0x1d8): In function `OSTmr_Init':
E:\MICRIUM\Software\uCOS-II\Source\os_tmr.c:445: multiple definition of `OSTmr_Init'
E:\MICRIUM\Software\ucos_ii.o(.text+0x259c):E:\MICRIUM\Software\uCOS-II\Source\ucos_ii.c:445: first defined here
E:\MICRIUM\Software\os_core.o: Link Error: Could not allocate section .bss, size = 3690 bytes, attributes = bss
E:\MICRIUM\Software\app.o: Link Error: Could not allocate section .bss, size = 1602 bytes, attributes = bss
Link Error: Could not allocate data memory

出现multiple definition 是何原因?
在哪里寻UCOSII移植到dsPIC30的成功例子.谢谢!

發表於: 2007/8/15 11:15
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: rtos build
#3
新會員
新會員


查看用戶資訊
IDE版本:7.60
C30版本:3.01
AN-1017範例:p24fj128ga010

Build
會出現:
Executing: "C:\Program Files\Microchip\MPLAB C30\bin\pic30-gcc.exe" -c "C:\Micrium\Software\EvalBoards\Microchip\PIC24FJ128\MPLAB\BSP\bsp_a.s" -o"C:\Micrium\Software\EVALBO~1\MICROC~1\PIC24F~2\MPLAB\OS-View\Output\bsp_a.o" -Wa,-p=24FJ128GA010,-g
C:\Micrium\Software\EvalBoards\Microchip\PIC24FJ128\MPLAB\BSP\bsp_a.s: Assembler messages:
C:\Micrium\Software\EvalBoards\Microchip\PIC24FJ128\MPLAB\BSP\bsp_a.s:32: Error: can't open os_cpu_util_a.s for reading
C:\Micrium\Software\EvalBoards\Microchip\PIC24FJ128\MPLAB\BSP\bsp_a.s:62: Error: Invalid mnemonic: 'os'
C:\Micrium\Software\EvalBoards\Microchip\PIC24FJ128\MPLAB\BSP\bsp_a.s:77: Error: Invalid mnemonic: 'os'
C:\Micrium\Software\EvalBoards\Microchip\PIC24FJ128\MPLAB\BSP\bsp_a.s:93: Error: Invalid mnemonic: 'os'
C:\Micrium\Software\EvalBoards\Microchip\PIC24FJ128\MPLAB\BSP\bsp_a.s:108: Error: Invalid mnemonic: 'os'
Halting build on first failure as requested.

将os_cpu_util_a.s直接用宏代替,
Build
會出現:
Executing: "C:\Program Files\Microchip\MPLAB C30\bin\pic30-gcc.exe" -mcpu=24FJ128GA010 -c -x c "C:\Micrium\Software\EvalBoards\Microchip\PIC24FJ128\MPLAB\BSP\bsp.c" -o"C:\Micrium\Software\EVALBO~1\MICROC~1\PIC24F~2\MPLAB\OS-View\Output\bsp.o" -g -mlarge-data -mlarge-scalar -I "C:\Micrium\Software\EvalBoards\Microchip\ PIC24FJ128\MPLAB\OS-View\" -I "C:\Micrium\Software\EvalBoards\Microchip\ PIC24FJ128\MPLAB\BSP\" -I "C:\Micrium\Software\uC-CPU\" -I "C:\Micrium\Software\uC-CPU\Microchip\PIC24FJ128\" -I "C:\Micrium\Software\uCOS-II\Ports\Microchip\PIC24FJ128\" -I "c:\Micrium\Software\uCOS-II\Source\" -I "C:\Micrium\Software\uCOSView\Source\" -I "C:\Micrium\Software\uCOSView\Ports\Microchip\PIC24FJ\"
pic30-coff-gcc.exe: cannot specify -o with -c or -S and multiple compilations
Halting build on first failure as requested.

請問是什麼問題?

發表於: 2007/8/13 15:13
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: rtos build
#2
版主
版主


查看用戶資訊
.nbss 是屬資料為 Uninitialized Data,並放置在RAM (0x800 – 0x1FFF 不同IC其 .nbss 空間會不一樣的) 的區間,其排定的優先順序為 .xbss 會最先排定位址,再來是 .nbss,.bss 最後是 .ybss

看起來程式所使用到的 RAM 已超過 .nbss 的範圍,考慮部份的RAM移到 .bss (0x800~0x2800) 看看,或換一顆較大的RAM的IC。

發表於: 2007/8/10 17:46
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


rtos build
#1
新會員
新會員


查看用戶資訊
在MPLAB IDE中用C30 Build UCOSII,PORTS和APP.编译通过,但Link Error:Could not allocate section .nbss size=3720bytes attributes=bss.near
Could not allocate data memory
请教如何解决?谢谢!

發表於: 2007/8/10 16:40
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部







You can view topic.
不可以 發起新主題
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create PDF files.
You cannot get print page.

[進階搜尋]


:::

Microchip連結

https://www.facebook.com/microchiptechnologytaiwan/
http://www.microchip.com.tw/modules/tad_uploader/index.php?of_cat_sn=13
https://mu.microchip.com/page/tmu
http://elearning.microchip.com.tw/modules/tad_link/index.php?cate_sn=1
https://page.microchip.com/APAC-PrefCenters-TW.html
http://www.microchip.com/
http://www.microchip.com/treelink
http://www.microchipdirect.com/
http://www.microchip.com.cn/newcommunity/index.php?m=Video&a=index&id=103
http://www.microchip.com.tw/modules/tad_uploader/index.php?of_cat_sn=2
http://www.microchip.com.tw/Data_CD/eLearning/index.html
http://www.microchip.com.tw/RTC/RTC_DVD/
https://www.microchip.com/development-tools/
https://www.youtube.com/user/MicrochipTechnology
[ more... ]

教育訓練中心

!開發工具購買
辦法說明 [業界客戶] [教育單位]
----------------------------------
!校園樣品申請
辦法說明 [教師資格] [學生資格]
----------------------------------