I am using ds30Loader after making some changes to it. My device is dsPIC30F3014. I am able to write the hex file to the controller for the first time after programming it with bootloader code. After that I am getting an error while I am trying to write hex file to the device. Error is as follows
Initiating write......
Searching for bl.
Found dsPIC33FJ06GS101 fw ver 3..5.0
Wrong pic deteced(100/64)/selected(1/1). aborting
Tx 1 byte / Rx 4 bytes / 0.3s
Write failed
Attaching bootloader code and screenshot of the error message. Please give me any suggestions to resolve the issue.
I am using ds30Loader after making some changes to it. My device is dsPIC30F3014. I am able to write the hex file to the controller for the first time after programming it with bootloader code. After that I am getting an error while I am trying to write hex file to the device. Error is as follows
Initiating write......
Searching for bl.
Found dsPIC33FJ06GS101 fw ver 3..5.0
Wrong pic deteced(100/64)/selected(1/1). aborting
Tx 1 byte / Rx 4 bytes / 0.3s
Write failed
Attaching bootloader code and screenshot of the error message. Please give me any suggestions to resolve the issue.
Thanks & Regards,
Giri
Hi,
I think you didn't define UART pin IO in the file "user_code.inc".
Try this :
;----------------------------------------------------------------------
; Make uart pins digital
;----------------------------------------------------------------------
bclr TRISF,#3 ;TX
bset TRISF,#2 ;RX
I am using ds30Loader after making some changes to it. My device is dsPIC30F3014. I am able to write the hex file to the controller for the first time after programming it with bootloader code. After that I am getting an error while I am trying to write hex file to the device. Error is as follows
Initiating write......
Searching for bl.
Found dsPIC33FJ06GS101 fw ver 3..5.0
Wrong pic deteced(100/64)/selected(1/1). aborting
Tx 1 byte / Rx 4 bytes / 0.3s
Write failed
Attaching bootloader code and screenshot of the error message. Please give me any suggestions to resolve the issue.
Thanks & Regards,
Giri
Hi,
I think you didn't define UART pin IO in the file "user_code.inc".
Try this :
;----------------------------------------------------------------------
; Make uart pins digital
;----------------------------------------------------------------------
bclr TRISF,#3 ;TX
bset TRISF,#2 ;RX
see you
see you
Hi,
I have made the changes as you suggested, still I am getting the same error. For dsPIC30F3014, RC13 is Tx and RC14 is Rx. So I tried with this:
;----------------------------------------------------------------------
; Make uart pins digital
;----------------------------------------------------------------------
bclr TRISC,#13 ;TX
bset TRISC,#14 ;RX
As mentioned, still I got the same error. Please suggest any other points I would have missed.
Thank you,
Regards,
Giri
(2014-03-13, 15:54:34)giriprasad.n Wrote:
(2014-03-12, 22:36:29)quick Wrote:
(2014-03-12, 17:33:58)giriprasad.n Wrote: Hi,
I am using ds30Loader after making some changes to it. My device is dsPIC30F3014. I am able to write the hex file to the controller for the first time after programming it with bootloader code. After that I am getting an error while I am trying to write hex file to the device. Error is as follows
Initiating write......
Searching for bl.
Found dsPIC33FJ06GS101 fw ver 3..5.0
Wrong pic deteced(100/64)/selected(1/1). aborting
Tx 1 byte / Rx 4 bytes / 0.3s
Write failed
Attaching bootloader code and screenshot of the error message. Please give me any suggestions to resolve the issue.
Thanks & Regards,
Giri
Hi,
I think you didn't define UART pin IO in the file "user_code.inc".
Try this :
;----------------------------------------------------------------------
; Make uart pins digital
;----------------------------------------------------------------------
bclr TRISF,#3 ;TX
bset TRISF,#2 ;RX
see you
see you
Hi,
I have made the changes as you suggested, still I am getting the same error. For dsPIC30F3014, RC13 is Tx and RC14 is Rx. So I tried with this:
;----------------------------------------------------------------------
; Make uart pins digital
;----------------------------------------------------------------------
bclr TRISC,#13 ;TX
bset TRISC,#14 ;RX
As mentioned, still I got the same error. Please suggest any other points I would have missed.
Thank you,
Regards,
Giri
Hi,
My problem is solved. Thank you for your support. I am not resetting the board after writing the hex file to the device. So, it is not able to load the boot loader. Now it is fine. Attaching the boot loader code working perfectly with dsPIC30F3014 for dsPICDEM2 board.