Forum breadcrumbs - You are here:ForumGeneral: Report BugsError
You need to log in to create posts and topics.

Error

When flashing the board, it gives the following error Error: Wrong Start code at line 0

Although there are no errors in the code, what should I do?

Hi.

"Error: Wrong Start code at line 0" usually means that you try to upload a non valid hex file.

Nast has reacted to this post.
Nast

What does this mean and how can it be fixed?

 

It means exactly that: "you try to upload a non valid hex file."

How can be fixed?
I don't know...
What kind of file are you uploading?
Is that file a valid hex file for that device?

For instance, the starting line of my AVR hex (created by Avrasm2) is:

:020000020000FC

I just got a warning that it is not valid (then ignored).

 

Quote from KerimF on December 11, 2024, 1:22 pm

For instance, the starting line of my AVR hex (created by Avrasm2) is:

:020000020000FC

I just got a warning that it is not valid (then ignored).

 

Yes, that is a warning, most probably: "Warning: Not supported Record type: 02 at line 0"
And in this case it can be safely ingored as data and address fields are both 0000.
That line is basically meaningless: indicates an address offset of 0, but some assemblers maybe add it by default even if not needed.

But "Error: Wrong Start code at line 0" indicates that it is not a valid hex file, most probably not even an hex file.
Thinking about it... maybe he is trying to upload the source file directly?

KerimF has reacted to this post.
KerimF