Re: 請問關於dsPIC30f2010使用到ctype.h時出現的問題?
|
||||
---|---|---|---|---|
版主
|
查過 Region data is full 的錯誤解釋如下:
The memory region REGION is full, but section secname has been assigned to it. 你說有編譯過我的程式一樣也會有此問題,這就很奇怪了,要不要將你的Project ZIP 候傳給我試試看。 你的 C30 的版本是哪一版? 我的是 v1.20
發表於: 2004/9/27 17:36
|
|||
|
Re: 請問關於dsPIC30f2010使用到ctype.h時出現的問題?
|
||||
---|---|---|---|---|
新會員
|
不好意思,在請問一下,當我在compiler你的程式還是會出現error ,而相關include的路徑也有設定,還是有問題,不知道是否我還有其它相關設定忽略了. 謝謝
Executing: "C:\MPLAB C30\pic30_tools\bin\pic30-gcc.exe" -Wl,"C:\pic30demo\dsPIC30F2010\test\test.o",--script="C:\MPLAB C30\pic30_tools\support\gld\p30f2010.gld",-L"C:\pic30_tools\lib",-o"test.cof" C:\MPLAB C30\pic30_tools\bin\pic30-ld.exe: Link Error: region data is full (test.cof section .data) C:\MPLAB C30\pic30_tools\bin\pic30-ld.exe: Link Error: region data is full (test.cof section .data)
發表於: 2004/9/27 16:25
|
|||
|
Re: 請問關於dsPIC30f2010使用到ctype.h時出現的問題?
|
||||
---|---|---|---|---|
版主
|
不會阿! 我寫一段很短的程式測試你的問題,我並沒有你的問題發生,是不是 #include 的路徑沒設到。
請確定"Project" --> "Build Option" --> "Project" 下的設定為: $AINDIR = c:\pic30_tools\support\inc $INCDIR = C:\pic30_tools\include;C:\pic30_tools\support\h $LIBDIR = C:\pic30_tools\lib 我的程式如下: #define __dsPIC30F2010__ #include "c:\pic30_tools\support\h\p30F2010.h" #include <ctype.h> #define LED0 PORTDbits.RD0 #define LED1 PORTDbits.RD1 int main(void) { LATD = 0x0000; LED1=0; LED0=0; int ch='3'; if (isdigit(ch)) LED0=1; ch='#'; if (isdigit(ch)) LED1=1; while(1); // do for ever }
發表於: 2004/9/27 16:00
|
|||
|
請問關於dsPIC30f2010使用到ctype.h時出現的問題?
|
||||
---|---|---|---|---|
新會員
|
當dsPIC30F2010使用到ctype.h中的函式時,例如:isdigit()或tolower()...等等函式,在compiler時,會出現Link error:region data is full的錯誤訊息,若把這些函式去掉不使用它,程式compiler就沒問題,所以想請問一下,是什麼樣的原因會造成錯誤的產生? 謝謝
發表於: 2004/9/27 15:14
|
|||
|