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

論壇索引


Board index » All Posts




Re: dsPIC 編譯失敗
版主
版主


參照:

make[2]: Entering directory 'C:/Users/Kira/Desktop/Text/123/456.X'
uart.c:10: error: 'BORV_20' undeclared here (not in a function)


Configuration Bits 的參數選項沒有 "BORV_20" 的設定項,請參考一下該元件的 h 檔裡對 PBOR 的定義。或可以參考底下的設定:

_FOSC(CSW_FSCM_OFF & XT_PLL8); // XT with 8xPLL oscillator, Failsafe clock off
_FWDT(WDT_OFF); // Watchdog timer disabled
_FBORPOR(PBOR_OFF & MCLR_EN); // Brown-out reset disabled, MCLR reset enabled
_FGS(CODE_PROT_OFF); // Code protect disabled


第二個錯誤請修正一下 main( ) 函數的使用:
int main(void)

發表於: 2021/1/28 15:55
頂部


dsPIC 編譯失敗
新會員
新會員


您好:
最近使用dsPIC30F4011
將UART模組的程式要燒錄晶片

在MPLAB IDE V8.92搭配C30是可以燒錄成功並執行

可是一樣的程式碼轉移到到MPLAB X IDEV5.30中進行燒錄卻跳出以下錯誤訊息
想問是哪方面出現問題?

make -f nbproject/Makefile-default.mk SUBPROJECTS= .build-conf
make[1]: Entering directory 'C:/Users/Kira/Desktop/Text/123/456.X'
make -f nbproject/Makefile-default.mk dist/default/production/456.X.production.hex
make[2]: Entering directory 'C:/Users/Kira/Desktop/Text/123/456.X'
uart.c:10: error: 'BORV_20' undeclared here (not in a function)
"C:\Program Files (x86)\Microchip\MPLAB C30\bin\pic30-gcc.exe" -g -omf=elf -x c -c -mcpu=30F4011 -MMD -MF build/default/production/uart.o.d -o build/default/production/uart.o uart.c
uart.c: In function 'main':
uart.c:29: warning: return type of 'main' is not 'int'
nbproject/Makefile-default.mk:119: recipe for target 'build/default/production/uart.o' failed
uart.c:126:2: warning: no newline at end of file
make[2]: *** [build/default/production/uart.o] Error 1
make[2]: Leaving directory 'C:/Users/Kira/Desktop/Text/123/456.X'
nbproject/Makefile-default.mk:91: recipe for target '.build-conf' failed
make[1]: Leaving directory 'C:/Users/Kira/Desktop/Text/123/456.X'
make[1]: *** [.build-conf] Error 2
nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed
make: *** [.build-impl] Error 2

BUILD FAILED (exit value 2, total time: 325ms)

謝謝

MPLAB X IDE V5.30
C30 (V3_31)

發表於: 2021/1/27 16:48
頂部


pic16f1503 進入debug mode 出現error
資深會員
資深會員


The following memory area(s) will be programmed:
program memory: start address = 0x0, end address = 0x41f
configuration memory

Verify of debug exec failed
Could not enter debug mode because programming the debug information failed. Invalid combinations of config bits may cause this problem


// PIC16F1503 Configuration Bit Settings

// 'C' source line config statements

// CONFIG1
#pragma config FOSC = INTOSC // Oscillator Selection Bits (INTOSC oscillator: I/O function on CLKIN pin)
#pragma config WDTE = OFF // Watchdog Timer Enable (WDT disabled)
#pragma config PWRTE = OFF//ON // Power-up Timer Enable (PWRT enabled)
#pragma config MCLRE = OFF // MCLR Pin Function Select (MCLR/VPP pin function is digital input)
#pragma config CP = OFF // Flash Program Memory Code Protection (Program memory code protection is disabled)
#pragma config BOREN = OFF // Brown-out Reset Enable (Brown-out Reset disabled)
#pragma config CLKOUTEN = OFF // Clock Out Enable (CLKOUT function is disabled. I/O or oscillator function on the CLKOUT pin)


// CONFIG2
#pragma config WRT = OFF // Flash Memory Self-Write Protection (Write protection off)
#pragma config STVREN = ON // Stack Overflow/Underflow Reset Enable (Stack Overflow or Underflow will cause a Reset)
#pragma config BORV = LO // Brown-out Reset Voltage Selection (Brown-out Reset Voltage (Vbor), low trip point selected.)
#pragma config LPBOR = OFF // Low-Power Brown Out Reset (Low-Power BOR is disabled)
#pragma config LVP = ON // Low-Voltage Programming Enable (Low-voltage programming enabled)

// #pragma config statements should precede project file includes.
// Use project enums instead of #define for ON and OFF.

#include

請問哪邊設定要改?

發表於: 2021/1/27 14:43
頂部


ADC最快多久抓一次
中級會員
中級會員


想請問dsPIC33ep64GS502 若是用timer1最快可以多久抓一次ADC
Tad=14.28ns resolution=12-bit 使用8MHz振盪器 倍頻至85MHz
最快轉換時間是14.28*(12+2)=200ns 那最快取樣時間該如何計算

因為從示波器看起來 取樣+轉換約400ns 等待timer1下次觸發約500ns
所以約900ns才抓一筆ADC 但希望能壓在750ns內
不知是否還可以降低ADC取樣轉換時間或timer1觸發時間
感謝

發表於: 2021/1/26 23:15
頂部


編譯時的錯誤信息
新會員
新會員


大家好:
小弟利用MPLAB X IDE v5.45 + \HI-TECH Software\PICC-18\9.80\bin\picc18.exe 編譯程式,出現以下錯誤信息,請問這是什麼現象? 如何解決? 謝謝

make[2]: *** [dist/default/production/TestB.X.production.hex] Error 1
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2
:0: error: (1347) can't find 0x26C words (0x26c withtotal) for psect "text6" in class "CODE" (largest unused contiguous range 0x17A)
:0: error: (1347) can't find 0x24A words (0x24a withtotal) for psect "text71" in class "CODE" (largest unused contiguous range 0x17A)
:0: error: (1347) can't find 0x23C words (0x23c withtotal) for psect "text48" in class "CODE" (largest unused contiguous range 0x17A)
:0: error: (1347) can't find 0x1D2 words (0x1d2 withtotal) for psect "text41" in class "CODE" (largest unused contiguous range 0x17A)
:0: error: (1347) can't find 0x1BC words (0x1bc withtotal) for psect "text37" in class "CODE" (largest unused contiguous range 0x17A)
:0: error: (1347) can't find 0x166 words (0x166 withtotal) for psect "text0" in class "CODE" (largest unused contiguous range 0x10)
:0: error: (1347) can't find 0x158 words (0x158 withtotal) for psect "text87" in class "CODE" (largest unused contiguous range 0x10)
:0: error: (1347) can't find 0x148 words (0x148 withtotal) for psect "text89" in class "CODE" (largest unused contiguous range 0x10)
:0: error: (1347) can't find 0x146 words (0x146 withtotal) for psect "text30" in class "CODE" (largest unused contiguous range 0x10)
:0: error: (1347) can't find 0x13E words (0x13e withtotal) for psect "text98" in class "CODE" (largest unused contiguous range 0x10)
:0: error: (1347) can't find 0x13A words (0x13a withtotal) for psect "text31" in class "CODE" (largest unused contiguous range 0x10)
:0: error: (1347) can't find 0x13A words (0x13a withtotal) for psect "text17" in class "CODE" (largest unused contiguous range 0x10)
:0: error: (1347) can't find 0x136 words (0x136 withtotal) for psect "cinit" in class "CODE" (largest unused contiguous range 0x10)
:0: error: (1347) can't find 0x134 words (0x134 withtotal) for psect "text59" in class "CODE" (largest unused contiguous range 0x10)
:0: error: (1347) can't find 0x130 words (0x130 withtotal) for psect "text99" in class "CODE" (largest unused contiguous range 0x10)
:0: error: (1347) can't find 0x11A words (0x11a withtotal) for psect "intcode_body" in class "CODE" (largest unused contiguous range 0x10)
:0: error: (1347) can't find 0x116 words (0x116 withtotal) for psect "text33" in class "CODE" (largest unused contiguous range 0x10)
:0: error: (1347) can't find 0x10A words (0x10a withtotal) for psect "text7" in class "CODE" (largest unused contiguous range 0x10)
:0: error: (1347) can't find 0x10A words (0x10a withtotal) for psect "text25" in class "CODE" (largest unused contiguous range 0x10)
:0: error: (1347) can't find 0x106 words (0x106 withtotal) for psect "text5" in class "CODE" (largest unused contiguous range 0x10)
:0: error: (1347) can't find 0x104 words (0x104 withtotal) for psect "text95" in class "CODE" (largest unused contiguous range 0x10)
:0: advisory: (1) too many errors (21)
nbproject/Makefile-default.mk:131: recipe for target 'dist/default/production/TestB.X.production.hex' failed
make[2]: Leaving directory 'C:/Users/HoyaYang/Desktop/Test_B/TestB.X'
nbproject/Makefile-default.mk:91: recipe for target '.build-conf' failed
make[1]: Leaving directory 'C:/Users/HoyaYang/Desktop/Test_B/TestB.X'
nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed

BUILD FAILED (exit value 2, total time: 12s)

發表於: 2021/1/26 17:13
頂部


請問MPLABx如何於Debug時可看到EEprom的更新?
資深會員
資深會員


Dear All :

如題,

MPALBx : V5.45
MCU : PIC18F66K40
ICE : ICD4
WRTD : OFF

謝謝.

發表於: 2021/1/26 13:37
頂部


XC8 compiler錯誤
新會員
新會員


介面:
MPLAB X IDE V5.4
XC8 V1.42
PIC16F1936

compiler出現如下錯誤
fixup overflow referencing psect bssBANK1 (0xB7)
經多次驗證後確定是變數宣告太多,
但ROM只使用18%,RAM只使用22%
若是把某一部分程式刪除(包含變數宣告),compiler就沒問題
把一部分變數宣告前面加上bank2或bank3,仍然有錯

我的另一個專案ROM跟RAM用的比這個專案還多,卻沒有問題

請問問題在哪?

發表於: 2021/1/26 0:43
頂部


Re: pickit4 can not halt after debugging the project to run
初級會員
初級會員


試過MPLABX v5.40, v5.45

如何更新PK4 firmware?

發表於: 2021/1/25 12:48
best regards,
Anthony
頂部


Re: pickit4 can not halt after debugging the project to run
版主
版主


確定一下 MPLAB X IDE 是較新的版本,後,更新一下 PK4 的 Firmware 後再試一下。

發表於: 2021/1/24 9:49
頂部


pickit4 can not halt after debugging the project to run
初級會員
初級會員


pickit4
mcu:pic18f26k80
在debugging the project且running, press pause to halt the execution but display the error messange as below:
但是改用pickit3則沒問題



Halting...
Target Halted
A communication error with the debug tool has occurred. The tool will attempt to recover momentarily.

Unable to run the target device.
Script GetPC failed with status Type = runScript, Script name = GetPC, Status = 0xa00
.


*****************************************************



Resetting...
Reset complete
A communication error with the debug tool has occurred. The tool will attempt to recover momentarily.
A communication error with the debug tool has occurred. The tool will attempt to recover momentarily.
A communication error with the debug tool has occurred. The tool will attempt to recover momentarily.
A communication error with the debug tool has occurred. The tool will attempt to recover momentarily.
A communication error with the debug tool has occurred. The tool will attempt to recover momentarily.
A communication error with the debug tool has occurred. The tool will attempt to recover momentarily.
A communication error with the debug tool has occurred. The tool will attempt to recover momentarily.
A communication error with the debug tool has occurred. The tool will attempt to recover momentarily.
A communication error with the debug tool has occurred. The tool will attempt to recover momentarily.
A communication error with the debug tool has occurred. The tool will attempt to recover momentarily.
A communication error with the debug tool has occurred. The tool will attempt to recover momentarily.
A communication error with the debug tool has occurred. The tool will attempt to recover momentarily.
A communication error with the debug tool has occurred. The tool will attempt to recover momentarily.
A communication error with the debug tool has occurred. The tool will attempt to recover momentarily.
A communication error with the debug tool has occurred. The tool will attempt to recover momentarily.
A communication error with the debug tool has occurred. The tool will attempt to recover momentarily.

發表於: 2021/1/23 17:44
best regards,
Anthony
頂部



« 1 ... 195 196 197 (198) 199 200 201 ... 7525 »



:::

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

教育訓練中心

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