• slider image 442
  • slider image 483
  • slider image 484
  • slider image 485
  • slider image 486
  • slider image 487
:::

論壇索引


Board index » All Posts (x8051)




Re: 找不到 Include xc8.h 檔案
#11
高級會員
高級會員


參照:

Libra wrote:
會出現波浪底線是 X IDE Parser的問題, 如果編譯可以成功找的到檔案就沒關係,
X IDE Parser會出現警告時, 可能為
5. 如果覺得礙眼, 可以在X IDE中關閉這些警告
縮圖


謝謝說明
但是重新打開專案檔又出現了?
進入 Project Properties (不做任何設定) 點選 Apply 後離開,波浪底線又消失了....
這MPLAB X 實在不是很穩定...

發表於: 2022/4/4 10:32
頂部


Re: AVR GCC Simulator 模擬無中斷?
#12
高級會員
高級會員


反編發現 ISR(TIMER0_COMPA_vect) 被優化不見了
變量已經使用 volatile 況且優化使用 -O0 ,但是仍然無效?

發表於: 2022/4/4 10:20
頂部


AVR GCC Simulator 模擬無中斷?
#13
高級會員
高級會員


MPLAB X ID 5.20版本
模擬 ATtiny85 AVR_GCC (v5.4.0)
TCNT0 跑到 125 後,但是中斷程式跳不進去?

#include
#include
volatile uint8_t timer1;
ISR(TIMER0_COMPA_vect)
{
if (timer1) timer1--;
}
int main(void)
{
timer1 = 250;
uint8_t timer2 = 1;

DDRB | = (1 << DDB3 );

TCCR0A = (1 << WGM01);
TCCR0B = (1 << CS01) | (1 << CS00);
OCR0A = 125;
TIMSK = (1 << OCIE0A);
sei();
while (1)
{
if (!timer1)
{
timer1 = 250;
if (!timer2)
{
PORTB ^= (1 << PORTB3);
timer2 = 1;
} else timer2--;
}
}
}

發表於: 2022/4/2 23:56
頂部


找不到 Include xc8.h 檔案
#14
高級會員
高級會員


MPLAB X IDE V5.20

我嘗試更改加入 Include 路徑,雖然Alt+Enter可以搜尋到檔案,但是主程式Main仍然顯示警告訊息?

以下修改XC8 Compiler Include directories後,仍然顯示警告訊息?
V1.45
C:\program(x86)\Microchip\xc8\V1.45\include\
及 Embedded Build Tools C Compiler 改xc8.exe

V2.10
C:\program(x86)\Microchip\xc8\2.10\pic\include\
及 Embedded Build Tools C Compiler 改xc8-cc.exe

Attach file:



jpg  1111.jpg (119.77 KB)
51_623dcc7255776.jpg 788X463 px

jpg  2222.jpg (89.98 KB)
51_623dcc83d0622.jpg 1314X258 px

發表於: 2022/3/25 22:06
頂部


MPLAB X IDE 可用 PICKIT4,但是MPLAB X IPE 抓不到PICKIT4?
#15
高級會員
高級會員


MPLAB X IDE V5.05 可用 PICKIT4模擬,但是MPLAB X IPE 抓不到PICKIT4?
MPLAB driver switcher 內沒有PICKIT4 裝置?

Attach file:



jpg  2222.jpg (62.71 KB)
51_6234a8f624f61.jpg 757X395 px

jpg  1111.jpg (61.69 KB)
51_6234a9684f734.jpg 583X335 px

jpg  333.jpg (29.85 KB)
51_6234a9f1ecbd2.jpg 264X280 px

發表於: 2022/3/18 23:45
頂部


Re: MPLAB X V5.05 如何關閉 PICKIT3自動更新?
#16
高級會員
高級會員


謝謝~~
但是要每個專案檔都要設,如果不小心打開其他專案又要重覆以上更新方式.
是否能針對MPLAB X IDE做調整?

發表於: 2022/3/16 22:59
頂部


MPLAB X V5.05 如何關閉 PICKIT3自動更新?
#17
高級會員
高級會員


PICKIT3 ICE 使用 MPLAB IDE V8.92 更新後,運行PICKIT3軟件可正常編輯燒入IC.
但是運行 MPLAB X IDE 後,卻無法再使用PICKIT3軟件?(PC顯示 PICKIT3已經停止運作)
(可是MPLAB X IDE 運行正常)
(還有 MPLAB PE 卻無法判斷?)

必須返回 MPLAB IDE V8.92 更新才能使用,PICKIT軟件.

Attach file:



jpg  999.jpg (28.18 KB)
51_6230b0d2d9ce4.jpg 458X210 px

發表於: 2022/3/15 23:33
頂部


Re: 為何MPLABx看不到內部變數的變化?
#18
高級會員
高級會員


參照:

jlian wrote:
Dear All :

如題, 使用ICD4.

謝謝.

謝謝~使用內部的 Simulator 模擬也不行嗎?
以前 MPLAB IDE V8.92 好像可以,另外使用 PICKIT4 是否可以?

發表於: 2022/3/7 23:03
頂部


MPLAB x IDE MPASM Watch 與 Runtime Watch 變量無法顯示?
#19
高級會員
高級會員


使用MPLAB x V5.20 MPASM Compiler
使得內部的 Simulator 模擬無法顯示變量?
New Watch 與New Runtime Watch 都無法顯示變量?
[b]但如果使用舊板MPLAB IDE專案檔轉入MPLAB X就可以顯示?[/b]
http://www.microchip.com.tw/uploads/newbb/51_62261c4f55dc3.jpg

舊板的 MPLAB IDE 轉 MPLAB X IDE 就可以?
http://www.microchip.com.tw/uploads/newbb/51_622625660e642.jpg

Attach file:



jpg  asa.jpg (73.78 KB)
51_62261c4f55dc3.jpg 707X480 px

jpg  asb.jpg (96.88 KB)
51_622625660e642.jpg 1110X441 px

發表於: 2022/3/7 22:54

Edited by x8051 on 2022年03月07日 23:27:20
Edited by x8051 on 2022年03月07日 23:32:30
Edited by x8051 on 2022年03月07日 23:33:54
頂部


Re: 請問MPLab X V5.45開始改為x64,但是編譯之前的一些範例都沒動作
#20
高級會員
高級會員


MPLAB X IDE 版本 5.40 開始,彙編器 MPASM 工具鏈不再受支持或隨 IDE 一起安裝。
使用的最後一個版本是 MPLAB X v5.35,但MPASM 不支持 WIN 64bit OS。
最後只能降到 MPLAB X IDE V5.05,但支持 AVR 問題比較多...

發表於: 2022/3/5 21:02
頂部



« 1 (2) 3 4 5 ... 10 »



:::

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

教育訓練中心

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