Discussion Forum

Programming the chip

Next Thread | Thread List | Previous Thread Start a Thread | Settings

DetailsMessage
Read-Only
Author
Mohammad Adel
Posted
26-Jun-2004 07:37 GMT
Toolset
C51
New! Programming the chip
Is it true that some programmers require the hex file records to be arranged in ascending order according to their addresses?

I faced a problem with a programmer, the software stopped writing to the chip at a certain line and gave an error. There was no problem with the hex file ( I used a simulator which takes the hex file as input, and it worked properly)

Thanx..
Read-Only
Author
Jon Ward
Posted
27-Jun-2004 18:12 GMT
Toolset
C51
New! RE: Programming the chip
Yep. This was true a long time ago. In fact, it may still be true, but I haven't heard of this on any contemporary programmers. Note that this is not a requirement of the Intel HEX specification.

If needed, the following knowledgebase article tells how to sort HEX records.

http://www.keil.com/support/docs/1236.htm

Jon
Read-Only
Author
Andy Neil
Posted
27-Jun-2004 21:30 GMT
Toolset
C51
New! RE: Programming the chip
"... gave an error ..."

Precisely what error did it give?
Read-Only
Author
Mohammad Adel
Posted
28-Jun-2004 02:28 GMT
Toolset
C51
New! RE: Programming the chip
the error was:

Programmer error at  address 

address changed eacg time I tried to program
Read-Only
Author
Hans-Bernhard Broeker
Posted
29-Jun-2004 12:28 GMT
Toolset
C51
New! RE: Programming the chip
address changed eacg time I tried to program

That's a pretty strong clue that the unordered records in your HEX file are not the reason for this.

Software doesn't usually fail in different ways if you repeatedly do the same thing with it. It's rather more likely that your hardware (either the programmer itself, or the chip you're trying to (re)program) is flaky.
Read-Only
Author
erik malund
Posted
29-Jun-2004 13:09 GMT
Toolset
C51
New! RE: Programming the chip
just a guess
are you specifying that actual chip derivative you want to program or one thet "should be the same" ?

Erik
Read-Only
Author
Mohammad Adel
Posted
2-Jul-2004 06:26 GMT
Toolset
C51
New! RE: Programming the chip
I don't get the question. What do you mean?
Read-Only
Author
erik malund
Posted
2-Jul-2004 13:08 GMT
Toolset
C51
New! RE: Programming the chip
"just a guess
are you specifying that actual chip derivative you want to program or one that "should be the same" ?"

I don't get the question. What do you mean?

The programmer require you to enter the chip you are programming. do you enter the chip you are programming or another derivative because your programmer does not have an entry for the chip you are using?

Rephrase:
what chip are you trying to program?
what do you enter into the programmer software as the chip it is to program?

Erik
Read-Only
Author
Mohammad Adel
Posted
2-Jul-2004 13:46 GMT
Toolset
C51
New! RE: Programming the chip
The programmer automatically detects the chip and its type.

The chip is AT89C51.
Read-Only
Author
erik malund
Posted
2-Jul-2004 14:20 GMT
Toolset
C51
New! RE: Programming the chip
The programmer automatically detects the chip and its type.
Which programmer?
Does it come back and tell you which chip (it thinks) it is programming?
I have found that the most unreliable thing about programming uCs is reading the device ID, I guess I click 'ignore' on "wrong device ID' one time out of 3.

Erik

Next Thread | Thread List | Previous Thread Start a Thread | Settings