Page 1 of 1

18.2 on an Arduino Uno

Posted: Mon Apr 30, 2018 3:20 am
by mikenick42
Hi,

It's been a while since I've been able to work on any of this and am having some issues getting the 18.2.x stable branch to run on an Uno.
If I revert to stable_16.2.x I can run the demos and everything seems fine, but when I checkout stable_18.2.x, the board seems to program but the led doesn't blink.

Thanks,
Mike

Re: 18.2 on an Arduino Uno

Posted: Mon Apr 30, 2018 9:57 am
by tfAteba
Hello Mike,

I will look at this this evening and resolve the problem if there is any.

Thanks for your feed back.

Re: 18.2 on an Arduino Uno

Posted: Mon Apr 30, 2018 11:27 pm
by mikenick42
Thanks. I can help if there's anything you need me to test.

Re: 18.2 on an Arduino Uno

Posted: Wed May 02, 2018 7:50 am
by tfAteba
Ok Mike,

You can help for the moment just by telling me wich program your are running:
- The RT demo or the NIL demo for the Arduino Uno?
- Did you try to see if the serial message is print on the computer side?

Thanks

Re: 18.2 on an Arduino Uno

Posted: Wed May 02, 2018 8:48 pm
by tfAteba
Hi Mike,

Test made and for me, all is working fine, the LED is blinking and the message is printed to the serial port.

So to help you give me all information that you can, is your hardware fine ?

You can run a quick test whit the arduino IDE for example to see that the led blink fine and retry the chibios demo.

The test was made with Chibios_18_2_1 download from source forge.

Re: 18.2 on an Arduino Uno

Posted: Sat May 05, 2018 12:00 am
by mikenick42
I have no reason to believe there's anything wrong with my hardware. I'm using a generic UNO clone and a usbASP clone. They've both worked fine in the past.

I have the same results with both the RT and NIL projects. When I run 'make program' on the stable_16.1.x branch everything works fine, but when I use the stable_17.6.x or stable_18.2.x branches and turn on verification, it ends up giving me some variant of:

Code: Select all

avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x0000
         0x04 != 0x44
avrdude: verification error; content mismatch


The LED is constantly turned on and I don't see anything on the serial port.

Re: 18.2 on an Arduino Uno

Posted: Sat May 05, 2018 10:18 am
by tfAteba
Hello Mike,

Your result shows that the MCU is not correctly programmed.

So in your place, I will comapre the programming process that worked fine and the one that don't.

Comapare the command line used to program the MCU and try to see if there is a difference.

I will also try in my side to see if I can find any reason to your problem.

Thanks

Re: 18.2 on an Arduino Uno  Topic is solved

Posted: Sun May 06, 2018 1:59 am
by mikenick42
Yeah, I saw the verification fail when I was about halfway through that last post.

It looks like the '-D' flag was added to the default avrdude command generated by the Makefile. So the flash was never being erased when I reprogrammed it. If I take that out everything works fine.

Thanks for the help.

Re: 18.2 on an Arduino Uno

Posted: Tue May 08, 2018 10:23 pm
by tfAteba
Hello Mike,

I have added this flag "-D" to program the board that I have when I rewrite the makefile to support some features.
You are the first one who complies about it, so thank you for your report. For the moment I will leave the makefile like this and see if there is others people having the same trouble.

Thanks