Page 1 of 1

Issue on byte 42

Posted: Fri Dec 13, 2019 8:33 pm
by oleao80
I have a brand new CONTROLLINO MINI and I'm trying to make it work.
I've followed the startup tutorial online without any issue. The problem is that I'm not able to download any piece of code on top of it, because I always receive the following error:

Code: Select all

Reading | #############################################An error occurred while uploading the sketch
##### | 100% 0.54s

avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x0042
         0x7c != 0x2d
avrdude: verification error; content mismatch

avrdude done.  Thank you.
The mismatch is always at byte 0x0042, whatever is the code I'm trying to download.
The issue happens both with and without 24V external power supply.

I tried to contact the company since weeks ago, with several trials, but I'm still waiting for an answer.

Re: Issue on byte 42

Posted: Sun Jan 05, 2020 6:55 pm
by seprim
Hello
I have the same issue here
Sometimes the upload works, but in the meantime this error comes up.
We need a solution asap here.
CU
Seprim

Re: Issue on byte 42

Posted: Mon Jan 20, 2020 12:18 pm
by Lukas
Hello,

the problem is that we are not able to reproduce it here. Nevrtheless we are trying to solve this issue.

Please, see our FAQ No.10 if you have troubles to upload a sketch.

Thanks,
Lukas

Re: Issue on byte 42

Posted: Mon Feb 03, 2020 9:04 am
by RNielsen
Hi

I have the exact same problem.
I have bought new 3 pcs. Controllino Mini and 1 of them are giving this error all the time (se error below) and the others are working as expected.

So what can I do to fix the problem? Or is the one Controllino defective and needs to be replaced?

Code: Select all

Sketch uses 2236 bytes (6%) of program storage space. Maximum is 32256 bytes.
Global variables use 186 bytes (9%) of dynamic memory, leaving 1862 bytes for local variables. Maximum is 2048 bytes.
avrdude: verification error, first mismatch at byte 0x0042
         0xff != 0xb2
avrdude: verification error; content mismatch
avrdude: verification error; content mismatch

Re: Issue on byte 42

Posted: Mon Feb 03, 2020 9:42 am
by RNielsen
RNielsen wrote:
Mon Feb 03, 2020 9:04 am
Hi

I have the exact same problem.
I have bought new 3 pcs. Controllino Mini and 1 of them are giving this error all the time (se error below) and the others are working as expected.

So what can I do to fix the problem? Or is the one Controllino defective and needs to be replaced?

Code: Select all

Sketch uses 2236 bytes (6%) of program storage space. Maximum is 32256 bytes.
Global variables use 186 bytes (9%) of dynamic memory, leaving 1862 bytes for local variables. Maximum is 2048 bytes.
avrdude: verification error, first mismatch at byte 0x0042
         0xff != 0xb2
avrdude: verification error; content mismatch
avrdude: verification error; content mismatch
Btw. it seems that if I upload a small program, the upload succeeds sometimes, but if I upload a larger program, it fails.
Could it be corrupted memory or something like that?

Code: Select all

Sketch uses 1692 bytes (5%) of program storage space. Maximum is 32256 bytes.
Global variables use 186 bytes (9%) of dynamic memory, leaving 1862 bytes for local variables. Maximum is 2048 bytes.

Re: Issue on byte 42

Posted: Fri Feb 28, 2020 3:06 pm
by Lukas
I have some news regarding this topic - we have found some potential root cause of these troubles in the original Arduino bootloader.
Please see this tutorial THIS TUTORIAL how to update to the new MINI bootloader.