CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

recover ICD-U40 firmware
Goto page 1, 2  Next
 
Post new topic   Reply to topic    CCS Forum Index -> CCS ICD / Mach X / Load-n-Go
View previous topic :: View next topic  
Author Message
Stephen
Guest







recover ICD-U40 firmware
PostPosted: Thu Mar 04, 2004 9:54 am     Reply with quote

My ICD-U40 cannot be connected after I tried to upgrade it with the firamware come with the installation disks.

I have looked the ICD help saying that the bootloader is damaged and have to be rerturned to CCS. I have also survey the forum and seen someone reload the bootloader with the internal ICSP but without further details about the pins.

Is there someone can give me the step-by-step recovery of the ICD-U40?

I think I need

the definitions of those pins of internal ICSP.
and the location of files I should use. (I think they are those in the PIC-C folder.)


Please help.

Stephen
wedilo



Joined: 16 Sep 2003
Posts: 71
Location: Moers, Germany

View user's profile Send private message

PostPosted: Fri Mar 05, 2004 2:02 am     Reply with quote

Hello Stephen,
I will try to remember, because I solved this problem some weeks ago:

Ok, first I started version 2.0 of ICD.exe and did an upload with the 'booload.hex'. ICD.exe send a messagebox with a warning, but I ignored it. After that, I can't see any function and I thought now it's final damaged. Then I tried to upload the 'icdfirmware-01-20.fw' but the ICD.exe announced 'Non valid format' or something like that. So I send the file 'Ccsicd40.hex' to the ICD and Oops, it still worked again.

After that all, I started the version 2.7 of ICD.exe again and tried to send the 'icdfirmware-01-20.fw'. That's all

The pin assignment is:

Code:

internal connector of ICD hardware:

----                ---
!  !---------------!   !
!  1  2  3   4  5  6   !
------------------------

1 = RB7
2 = RB6
3 = n.c.
4 = GND
5 = +5V
6 = MCLR

I'm NOT absolutely sure about it. Please take a ohmmeter and the datasheet of the ICD internal PIC (Normally 18F252) and check it.



Hope that helps you

73 Sven
agrj



Joined: 26 Sep 2003
Posts: 48

View user's profile Send private message

PostPosted: Fri Mar 05, 2004 8:28 am     Reply with quote

Hi I just check the pin out and the correct configuration is:

1 - RB6
2 - RB7
3 - nc
4 - MCLR
5 - GND
6 - 5vdc

Thanks

Dinho
Stephen



Joined: 04 Mar 2004
Posts: 1

View user's profile Send private message

PostPosted: Sun Mar 07, 2004 6:28 pm     Reply with quote

Thanks for your kindly help. The correct pin-out is like what agrj provided. It is also confirmed by CCS. CCS also provided a copy of HEX file which is the same as the one we can download from the website of ICD-U software.

What I did to recover the ICD-U is that

1. Open the ICD-U box and make a connector.
2. Use another healthy ICD (such as ICD-S or ICD2) to load the firmware-01-03 to the ICD-U. (No bootloader is required)
3. ICD-U is alive again.

Funny thing is that I could not duplilcate what went wrong about ICD-U. I think the original firmware might have some conflicts with ICD software version 2.7.

By the way, during the recovery process, I found that only one of ICD-U and ICD-S can be installed with the C compiler. However, one can be installed in different directory but will not be linked with the compiler.
_________________
Stephen
agrj



Joined: 26 Sep 2003
Posts: 48

View user's profile Send private message

PostPosted: Mon Mar 08, 2004 8:46 am     Reply with quote

Hi,

could you send me this HEX file. the one I have it's not working properly. When I try to import it (using MPLAB) I receive a message saying that the HEX file may be corrupt because the Check sum does not match.

thanks

Dinho

my e-mail: agrj@aes.com.br
wedilo



Joined: 16 Sep 2003
Posts: 71
Location: Moers, Germany

View user's profile Send private message

Is here anybody else who can help ???
PostPosted: Mon Mar 08, 2004 10:20 am     Reply with quote

Hello folks,
Sorry about the wrong pin assignment, but I took it from my brain ;-)
I think I need a new one.

agrj, do you still have the problems? I can't believe it.
Try it like my description, it must work.
You posted that you are using MPLAB. Is your second ICD a Microchip ICD2?

Is here anybody else who can help ??? I mean we are not the only ones who have this trouble.

73 Sven
agrj



Joined: 26 Sep 2003
Posts: 48

View user's profile Send private message

PostPosted: Tue Mar 09, 2004 8:54 am     Reply with quote

Hi,

I'm using MPLAB and PicStart +. the problem is when I'm trying to import the HEX file. I try to use CCSICD40.HEX, and I get a message saying this file may be corrupt. the check sum does not match.

I don't know what it coud be. if I import the one called just CCSICD.HEX I can get it into memory, but it's intend to use with PIC16F876.

any hints?

Thanks

Dinho
wedilo



Joined: 16 Sep 2003
Posts: 71
Location: Moers, Germany

View user's profile Send private message

PostPosted: Wed Mar 10, 2004 1:50 am     Reply with quote

Hello agrj,
OK, I must recapitulate...
You use Microchip MPLAB 6.? with a connected and still working Microchip ICD2 hardware to reprogram the firmware of a CCS ICD hardware ?

Is that correct? Then we will try it step by step

73 Sven
agrj



Joined: 26 Sep 2003
Posts: 48

View user's profile Send private message

PostPosted: Wed Mar 10, 2004 6:01 am     Reply with quote

Hello 73 Sven,

I'm using MPLAB 6.43 with PicStart Plus as programmer. it's functional and ready to program the firmware.

my problem is with the HEX file, I can not import it to memory.

thanks

Dinho
wedilo



Joined: 16 Sep 2003
Posts: 71
Location: Moers, Germany

View user's profile Send private message

PostPosted: Thu Mar 11, 2004 6:21 am     Reply with quote

Hello agrj,
OK, now I understand.
You want to open the file 'Ccsicd40.hex' with File -> Import...
After you choose the filename, you get an error message like: "The format of the file ... can not be read ... was not recognized"

So, the header of 'Ccsicd40.hex' starts with something like that:

; $
; FIRMWARE_MAJOR = 0x01
; FIRMWARE_MINOR = 0x05
etc.
etc.

I'm not sure but this isn't a valid header for hex files and MPLAB refuse it.
I think you must try another way:

Either you use another CCS ICD hardware and the CCS IDE or you try to edit the 'Ccsicd40.hex'. I would delete the mentioned header with an hex-editor and hoping that's all. ;-))
MAKE A COPY OF THE HEX-FILE !!!

I hope you can do it in the first way.

adeus and until tomorrow...

73 Sven
Lorix



Joined: 26 Apr 2004
Posts: 1

View user's profile Send private message

PostPosted: Sat May 08, 2004 8:43 am     Reply with quote

Please I can't find 'Ccsicd40.hex' in CCS site, can someone send me by email ?
thanks in advance

lorixvr@virgilio.it
Guest








PostPosted: Sun Jul 04, 2004 6:56 am     Reply with quote

agrj wrote:
Hi,

could you send me this HEX file. the one I have it's not working properly. When I try to import it (using MPLAB) I receive a message saying that the HEX file may be corrupt because the Check sum does not match.

thanks

Dinho

my e-mail: agrj@aes.com.br


could you send me this HEX file.... the one I have its not working properly.

thnx
Guest








PostPosted: Sun Jul 04, 2004 6:57 am     Reply with quote

agrj wrote:
Hi,

could you send me this HEX file. the one I have it's not working properly. When I try to import it (using MPLAB) I receive a message saying that the HEX file may be corrupt because the Check sum does not match.

thanks

Dinho

my e-mail: agrj@aes.com.br


could you send me this HEX file.... the one I have its not working properly.
my email: rrb011270@msn.com

thnx
Patrick Frank
Guest







PostPosted: Wed Jul 07, 2004 4:37 am     Reply with quote

Hello,
i have the same problem with my icd-s20.
I want to download the bootloader with my Microchip ICD1, but i have only the firmware, not the bootloader. Does anyone know where i can get it?
Thanks.

Patrick Frank
kypec



Joined: 20 Sep 2003
Posts: 54

View user's profile Send private message

How to get ICD firmware in HEX format including bootloader
PostPosted: Wed Jul 07, 2004 6:01 am     Reply with quote

I was recently forced to burn full firmware into my ICD-S40 because
the "update firmware via serial port" feature failed and here are the
steps which I had to do:

1. get some text editor which is able to handle also non-text files.
Crimson Editor just did the job fine for me
http://www.crimsoneditor.com/

2. get some binary viewer with which you can view the file
content in hexadecimal format
I used built-in viewer of Servant Salamander
http://www.altap.cz

3. examine the file icdfirmware-01-27.fw included in your
ICD installation package or PIC C installation package. These file
contains all HEX data for each particular ICD unit separated internally.
Look for string "ccsicd" and you will see how nicely it is organized inside Wink

4. write down carefully the descriptions which are located 512 bytes
after the offset of "ccsicd...hex". They should look something like this:
Code:
;  FIRMWARE_MAJOR = 0x01
;  FIRMWARE_MINOR = 0x27
;  FIRMWARE_TYPES = 0x60
;  TARGET_TYPES = 0x01, 0x02, 0
;  CHIP_SPEED 40000000


5. open the *.fw file in Crimson Editor -> now you will be seeing only
the raw HEX data. Each HEX block begins with descriptions mentioned before and ends with PIC type for which this block is intended, e.g. ;PIC18F252

6. select the desired block and save it in some .HEX file.

7. use external programmer/other ICD unit to burn this HEX file into
your damaged ICD

Good luck to everybody Very Happy

kypec
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> CCS ICD / Mach X / Load-n-Go All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group