18.2 on an Arduino Uno Topic is solved

ChibiOS public support forum for topics related to the Atmel AVR family of micro-controllers.

Moderators: utzig, tfAteba

mikenick42
Posts: 24
Joined: Tue Mar 10, 2015 4:49 pm
Been thanked: 1 time

18.2 on an Arduino Uno

Postby mikenick42 » Mon Apr 30, 2018 3:20 am

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

User avatar
tfAteba
Posts: 510
Joined: Fri Oct 16, 2015 11:03 pm
Location: Chartres, France
Has thanked: 75 times
Been thanked: 44 times

Re: 18.2 on an Arduino Uno

Postby tfAteba » Mon Apr 30, 2018 9:57 am

Hello Mike,

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

Thanks for your feed back.
regards,

Theo.

mikenick42
Posts: 24
Joined: Tue Mar 10, 2015 4:49 pm
Been thanked: 1 time

Re: 18.2 on an Arduino Uno

Postby mikenick42 » Mon Apr 30, 2018 11:27 pm

Thanks. I can help if there's anything you need me to test.

User avatar
tfAteba
Posts: 510
Joined: Fri Oct 16, 2015 11:03 pm
Location: Chartres, France
Has thanked: 75 times
Been thanked: 44 times

Re: 18.2 on an Arduino Uno

Postby tfAteba » Wed May 02, 2018 7:50 am

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
regards,

Theo.

User avatar
tfAteba
Posts: 510
Joined: Fri Oct 16, 2015 11:03 pm
Location: Chartres, France
Has thanked: 75 times
Been thanked: 44 times

Re: 18.2 on an Arduino Uno

Postby tfAteba » Wed May 02, 2018 8:48 pm

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.
regards,

Theo.

mikenick42
Posts: 24
Joined: Tue Mar 10, 2015 4:49 pm
Been thanked: 1 time

Re: 18.2 on an Arduino Uno

Postby mikenick42 » Sat May 05, 2018 12:00 am

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.

User avatar
tfAteba
Posts: 510
Joined: Fri Oct 16, 2015 11:03 pm
Location: Chartres, France
Has thanked: 75 times
Been thanked: 44 times

Re: 18.2 on an Arduino Uno

Postby tfAteba » Sat May 05, 2018 10:18 am

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
regards,

Theo.

mikenick42
Posts: 24
Joined: Tue Mar 10, 2015 4:49 pm
Been thanked: 1 time

Re: 18.2 on an Arduino Uno  Topic is solved

Postby mikenick42 » Sun May 06, 2018 1:59 am

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.

User avatar
tfAteba
Posts: 510
Joined: Fri Oct 16, 2015 11:03 pm
Location: Chartres, France
Has thanked: 75 times
Been thanked: 44 times

Re: 18.2 on an Arduino Uno

Postby tfAteba » Tue May 08, 2018 10:23 pm

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
regards,

Theo.


Return to “AVR Support”

Who is online

Users browsing this forum: No registered users and 1 guest