Re: 無法進入除錯模式
|
||||
---|---|---|---|---|
版主
|
PIC18F 的堆疊已在 LKR 檔定義了,C30 會由 LINKER 產生位址但要自行寫入道W15及SPLIM
組合語言都要,C 會自行處理。 定義 CPU 是使用 dsPIC30F4011
發表於: 2006/9/1 10:49
|
|||
|
Re: 無法進入除錯模式
|
||||
---|---|---|---|---|
資深會員
|
謝謝
正常了 為何dsPIC需要初始化這個堆疊指標啊? PIC18都不需要管這個 只要有使用呼叫就需要加這幾行嗎 不論哪一顆dsPIC都要這樣? 另外請問一下 .equ __30F4011, 1 這一行的意義是什麼?
發表於: 2006/9/1 8:43
|
|||
木亟缶夬金戔
彳艮缶夬金戔 走召缶夬金戔 |
||||
|
Re: 無法進入除錯模式
|
||||
---|---|---|---|---|
版主
|
可以的,傳過來吧! richard.yang@microchip.com
發表於: 2006/8/31 16:05
|
|||
|
Re: 無法進入除錯模式
|
||||
---|---|---|---|---|
資深會員
|
我用的是7.41版
剛剛換到另一台電腦 他用的是7.40版 一樣情形 去網站下載你說的修正檔 結果MPLAB不給下載到ICD2 出現錯誤訊息 所以目前還是不知道怎麼回事 ╮( ̄▽ ̄")╭ 要我把整個專案程式子目錄都打包寄給你試試嗎? 總檔案25KB dsPIC30F4011是從你給我的APP009板子上挖下來的...
發表於: 2006/8/31 10:40
|
|||
木亟缶夬金戔
彳艮缶夬金戔 走召缶夬金戔 |
||||
|
Re: 無法進入除錯模式
|
||||
---|---|---|---|---|
版主
|
如果你是使用MPLAB IDE v7.40 的話,就需要加入一個 de30f_RevB.hex 放在 C:\Program Files\Microchip\MPLAB IDE\ICD2 的目錄下。
你可以在這裡下載到此修正檔: MPLAB ICD2 Firmware update for dsPIC30f devices (for MPLAB IDE v7.40 only
發表於: 2006/8/31 9:48
|
|||
|
Re: 無法進入除錯模式
|
||||
---|---|---|---|---|
資深會員
|
嗯...
兩顆正常的ICD2使用起來都是相同的情形 軔體也更新好幾次了 (手動自動都有) 昨天去上課時順便買了一顆 等收到那一顆再試試 MPLAB系統出問題?! 那換一台電腦試試看好了 謝囉...
發表於: 2006/8/31 8:33
|
|||
木亟缶夬金戔
彳艮缶夬金戔 走召缶夬金戔 |
||||
|
Re: 無法進入除錯模式
|
||||
---|---|---|---|---|
版主
|
ICD2 的 Firmware 更新ㄧ下,也有可能是 MPLAB IDE 系統出了問題,如真的無法解決 ICD2 寄回 Microchip Taipei 給我換新的給你。
發表於: 2006/8/30 15:42
|
|||
|
Re: 無法進入除錯模式
|
||||
---|---|---|---|---|
資深會員
|
我目前遇到的問題是
按F9執行時都正常 按F7單步執行時 只要沒碰到 return 指令就都正常 一執行過 return 後就發生錯誤 所以應該跟以上幾點沒關係...
發表於: 2006/8/28 17:52
|
|||
木亟缶夬金戔
彳艮缶夬金戔 走召缶夬金戔 |
||||
|
Re: 無法進入除錯模式
|
||||
---|---|---|---|---|
版主
|
有人整理過此類的問題: 換電阻的是使用30F2011,30F4011不用。
1. ICD2 is selected as programmer not as debugger. 2. The target application has somehow become corrupted or contains errors. For example, the regular linker script was used in the project instead of the ICD2 version of the linker script (e.g., 18F8722.lkr was used instead of 18F8722i.lkr). Try rebuilding and reprogramming the target application. Then initiate a power-on-reset of the target. 3. Other configuration settings are interfering with debugging. Any configuration setting that would prevent the target from executing code will also prevent the ICD from putting the code into debug mode. This is to say WDT should be disabled while you want to debug your application. Some of our PICmicro 4. 16 Bit MCU requires to be enabled the debug mode using configuration register settings. 5. ICD 2 cannot always perform the action requested. For example, the ICD cannot set a breakpoint if the target application is currently running. 6. The oscillator is not working. Check your configuration bits setting for the oscillator as per your application hardware. 7. It is possible that target board does not allow ICD2 to enter in the debug mode. i.e. Target board is accidentally damaged. 8. The ICD2 has somehow become physically disconnected from the target board. Check the communications cable connection. 9. ICD2 to PC communications has somehow been interrupted. Reconnect to the ICD2 in MPLAB IDE. 10. It may be possible that the error shows only once due to some unknown reasons. Try to use ICD2 as debugger again. 11. The target board is not powered. Check the power cable connection. 12. The device is code-protected. Check your configuration bits setting for code protection. 13. The ICD2 has somehow become physically disconnected from the PC. Check the USB or COM communication cable connection.
發表於: 2006/8/28 16:11
|
|||
|