pickit3 breakpoint 停在錯誤位置
|
||||
---|---|---|---|---|
初級會員
![]() ![]() |
breakpoint 會停在所設定的位置的下一行,不會停在設定位置
MPLABX v5.45 PICKIT3 PIC18F2685 ps. PICKIT4 也一樣 PIC18F26K80也一樣
發表於: 2021/3/5 13:18
|
|||
best regards,
Anthony |
||||
|
Re: can wake up
|
||||
---|---|---|---|---|
初級會員
![]() ![]() |
請問用CAN wake up 進入sleep mode的MCU(如pic18f2685)有sample code or app note參考?
需要進入及出來相關的程序
發表於: 2021/3/3 10:42
|
|||
best regards,
Anthony |
||||
|
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 |
||||
|
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 |
||||
|
can wake up
|
||||
---|---|---|---|---|
初級會員
![]() ![]() |
MCU: PIC18F2685
1. 請問有使用CAN bus wake up MCU from sleep的sample code? 2. 請問clrwdt()後要怎樣enable watch dog timer?
發表於: 2021/1/14 13:33
|
|||
best regards,
Anthony |
||||
|
Re: PICkit4 not ready for debugging
|
||||
---|---|---|---|---|
初級會員
![]() ![]() |
WDT off, OSC 設成IRCIO67, or IRCIO7
都顯示同樣的訊息 試過另一片板子顯示 Target Device ID (0x0) is an Invalid Device ID. Please check your connections to the Targe MCU PIC18F2685是否這棵較不容易連PICKIT4? 有照data sheet建議調整MCLR pull up,試過33K, 10K 是否有其他建議?
發表於: 2021/1/13 16:27
|
|||
best regards,
Anthony |
||||
|
PICkit4 not ready for debugging
|
||||
---|---|---|---|---|
初級會員
![]() ![]() |
device:PIC18F2685
config bits: Address Name Value Field Option Category Setting 300001 CONFIG1H 86 OSC HSPLL Oscillator Selection bits HS oscillator, PLL enabled (Clock Frequency = 4 x FOSC1) FCMEN OFF Fail-Safe Clock Monitor Enable bit Fail-Safe Clock Monitor disabled IESO ON Internal/External Oscillator Switchover bit Oscillator Switchover mode enabled 300002 CONFIG2L 1E PWRT ON Power-up Timer Enable bit PWRT enabled BOREN BOHW Brown-out Reset Enable bits Brown-out Reset enabled in hardware only (SBOREN is disabled) BORV 3 Brown-out Reset Voltage bits VBOR set to 2.1V 300003 CONFIG2H 06 WDT OFF Watchdog Timer Enable bit WDT disabled (control is placed on the SWDTEN bit) WDTPS 8 Watchdog Timer Postscale Select bits 1:8 300005 CONFIG3H 84 PBADEN OFF PORTB A/D Enable bit PORTB<4:0> pins are configured as digital I/O on Reset LPT1OSC ON Low-Power Timer 1 Oscillator Enable bit Timer1 configured for low-power operation MCLRE ON MCLR Pin Enable bit MCLR pin enabled; RE3 input pin disabled 300006 CONFIG4L C1 STVREN ON Stack Full/Underflow Reset Enable bit Stack full/underflow will cause Reset LVP OFF Single-Supply ICSP Enable bit Single-Supply ICSP disabled BBSIZ 1024 Boot Block Size Select bits 1K words (2K bytes) Boot Block XINST ON Extended Instruction Set Enable bit Instruction set extension and Indexed Addressing mode enabled 300008 CONFIG5L 3F CP0 OFF Code Protection bit Block 0 (000800-003FFFh) not code-protected CP1 OFF Code Protection bit Block 1 (004000-007FFFh) not code-protected CP2 OFF Code Protection bit Block 2 (008000-00BFFFh) not code-protected CP3 OFF Code Protection bit Block 3 (00C000-00FFFFh) not code-protected CP4 OFF Code Protection bit Block 4 (010000-013FFFh) not code-protected CP5 OFF Code Protection bit Block 5 (014000-017FFFh) not code-protected 300009 CONFIG5H C0 CPB OFF Boot Block Code Protection bit Boot block (000000-0007FFh) not code-protected CPD OFF Data EEPROM Code Protection bit Data EEPROM not code-protected 30000A CONFIG6L 3F WRT0 OFF Write Protection bit Block 0 (000800-003FFFh) not write-protected WRT1 OFF Write Protection bit Block 1 (004000-007FFFh) not write-protected WRT2 OFF Write Protection bit Block 2 (008000-00BFFFh) not write-protected WRT3 OFF Write Protection bit Block 3 (00C000-00FFFFh) not write-protected WRT4 OFF Write Protection bit Block 4 (010000-013FFFh) not write-protected WRT5 OFF Write Protection bit Block 5 (014000-017FFFh) not write-protected 30000B CONFIG6H E0 WRTC OFF Configuration Register Write Protection bit Configuration registers (300000-3000FFh) not write-protected WRTB OFF Boot Block Write Protection bit Boot block (000000-0007FFh) not write-protected WRTD OFF Data EEPROM Write Protection bit Data EEPROM not write-protected 30000C CONFIG7L 3F EBTR0 OFF Table Read Protection bit Block 0 (000800-003FFFh) not protected from table reads executed in other blocks EBTR1 OFF Table Read Protection bit Block 1 (004000-007FFFh) not protected from table reads executed in other blocks EBTR2 OFF Table Read Protection bit Block 2 (008000-00BFFFh) not protected from table reads executed in other blocks EBTR3 OFF Table Read Protection bit Block 3 (00C000-00FFFFh) not protected from table reads executed in other blocks EBTR4 OFF Table Read Protection bit Block 4 (010000-013FFFh) not protected from table reads executed in other blocks EBTR5 OFF Table Read Protection bit Block 5 (014000-017FFFh) not protected from table reads executed in other blocks 30000D CONFIG7H 40 EBTRB OFF Boot Block Table Read Protection bit Boot block (000000-0007FFh) not protected from table reads executed in other blocks ***************************************************** Calculating memory ranges for operation... Erasing... The following memory area(s) will be programmed: program memory: start address = 0x0, end address = 0x35bf program memory: start address = 0x41c0, end address = 0x49ff program memory: start address = 0x5000, end address = 0xac3f program memory: start address = 0xafc0, end address = 0xafff configuration memory Script GetVersionDE failed with status Type = runScript, Script name = GetVersionDE, Status = 0xa00 . The target device is not ready for debugging. Please check your configuration bit settings and program the device before proceeding. The most common causes for this failure are oscillator and/or PGC/PGD settings.
發表於: 2021/1/11 17:07
|
|||
best regards,
Anthony |
||||
|
DEVICE IS NOT SUPPORTED BY CURRENTLY LOADED LIBRARY
|
||||
---|---|---|---|---|
初級會員
![]() ![]() |
DEVICE :ATSAME51N19A
以下載網站上所有的LIBRARY,仍然錯誤: MCC ERROR MSG: 15:46:44.867 資訊: Fetching list of available libraries. 15:46:53.620 資訊: Download Complete: C:\Users\User\.mcc\mcc_libraries.xml 15:46:54.229 INFO: Start MCC 15:46:54.309 INFO: Core v5.0.2 loaded. 15:46:54.326 INFO: Libraries defined in the configuration: 15:46:58.931 WARNING: The project's device is not supported by the currently loaded libraries. All library versions are available for download on the MCC website. www.microchip.com/mcc 15:46:58.972 INFO: Stop MCC 15:46:58.972 INFO: Core v5.0.2 unloaded.
發表於: 2021/1/4 15:51
|
|||
best regards,
Anthony |
||||
|
Re: MCC error
|
||||
---|---|---|---|---|
初級會員
![]() ![]() |
是要下載哪個版本的device library? or peripheral library?
發表於: 2020/12/24 13:54
|
|||
best regards,
Anthony |
||||
|