• slider image 442
  • slider image 492
  • slider image 493
  • slider image 494
  • slider image 495
  • slider image 496
  • slider image 488
  • slider image 491
:::

論壇索引


Board index » All Posts (jackal)




請問程式長度過長會導致改變已宣告rom的內容嗎?
#1
新會員
新會員


使用pic18f8722~因使用繪圖型LCD,所以又自建一些字型跟圖形.
宣告成const rom unsigned char sampl[8][128];
之類的多個.

带入顯示也都很正常.
但是在程式後來加長到0x016fff左右,一些字型圖形就變成亂碼.

但是把新增的涵式拿掉,到0x015xxx左右~顯示又很正常.
單個函式顯示是OK的.

請問各位~是我宣告方式有問題還是哪裡出了錯?

發表於: 2007/7/6 12:34
頂部


請問個小問題~~麻煩
#2
新會員
新會員


請問#include <p18f452.h> 跟#include "p18f452.h"
兩種宣告方式有什麼差異性??

發表於: 2006/12/23 12:29
頂部


請教~~pic18f8722空陣列的問題!
#3
新會員
新會員


unsigned char digit0 [128];
unsigned char digit1 [128];
unsigned char digit2 [128];
unsigned char digit3 [128];
unsigned char digit4 [128];
unsigned char digit5 [128];
unsigned char digit6 [128];
unsigned char digit7 [128];

為何這樣宣告還是出現 Error - section '.udata_buffer.o' can not fit the section. Section '.udata_buffer.o' length=0x00000400 ??

之前使用宣告成unsigned char digit [8][128];
因為跨過ㄧ個 BANK 的範圍(256Bytes) 所以須特別的宣告~但是8*128不是應該佔1024個byte

但是在修改連結敘述檔時卻必須用START=0x100 END=0xCFF 不然還是出現錯誤!

是哪邊設定錯誤嗎?C18不是應該自動分配記憶體嗎?

發表於: 2006/12/20 17:04
頂部


請教~PIC18F8722 空陣列宣告問題?
#4
新會員
新會員


想使用一個空陣列~宣告成unsigned char digit [8][128];

但卻出現Error - section '.udata_buffer.o' can not fit the section. Section '.udata_buffer.o' length=0x00000400

請問~18F8722的SRAM的空間有3936而我宣告的大小才1024
且我其他使用的Data也沒佔用太多SRAM空間.為何會出現長度過長不足呢?

請問有什麼方式可以運用或者規劃,使記憶體完整的使用?

感謝回答~不吝教導!

發表於: 2006/12/19 13:56
頂部


TIMER 1的問題!!拜託高手指導~~
#5
新會員
新會員


已經有開啟TIMER 1~請問我想要進入一個函式的時候有辦法讓TIMER1 重新計數嗎??


發表於: 2006/12/1 12:21
頂部


請教MPLAB C的三維陣列 extern的寫法!!
#6
新會員
新會員


使用的是PIC18F8722
source files裡掛一個BUFFER.c
內容是unsigned char digit[10][4][8]= ............

Header Files裡的BUFFER.h
內容是extern unsigned char digit[10][4][8];

main的c 裡面有#include "buffer.h"了

但是組譯出現Error - section '.idata_buffer.o' can not fit the section. Section '.idata_buffer.o' length=0x00000140

另外使用的函式 TEST_SAMPL(digit[0]); 也出現Warning [2054] suspicious pointer conversion

麻煩高手教導一下正確的語法~~感激!!

發表於: 2006/11/29 19:24
頂部






:::

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... ]

教育訓練中心

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