Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better separate Arduino models #105

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Better separate Arduino models #105

wants to merge 2 commits into from

Conversation

dbolgheroni
Copy link
Collaborator

I tried to contact Bryan Conway (who managed to upgrade from 1.0.2 to 1.8.5) with the following e-mail (but got no response), so I'm sending a pull request.

The e-mail:

I've been testing the devel/arduino upgrade to 1.8.5 from openbsd-wip. I could
succesfully generate working firmware for the following boards:

  • Duemilanove
  • Pro Mini
  • Mega 2560 (clone)
  • UNO (clone)

However, I would like to suggest some changes to the Makefile template (not the
ports Makefile). The changes:

  • Arduino UNO/Nano and Arduino Duemilanove are set with the same
    configuration. There would be no need to duplicate, but Arduino UNO works at
    115200 bps. My hardware is a clone, and I couldn't upload with 57600 bps as
    suggested on template, and some googling suggests it's indeed 115200 bps
    (someone with the original Italian version could test it better);

  • specify Arduino Mega 2560 and Arduino 1280 separately;

  • add a -D flag when uploading to Mega. To upload to Mega, avrdude man page
    suggests that auto erase is not used for ATxmega, but when uploading to it, an
    auto erase is attempted and it fails. So explicitly disabling auto erase is
    needed;

avrdude: Device signature = 0x1e9801                                        
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed
         To disable this feature, specify the -D option.
avrdude: erasing chip                                               
avrdude: stk500v2_command(): command failed

avrdude done.  Thank you.                    

*** Error 255 in /home/dbolgheroni/proj/openbsd-can/can-tx-18 (Makefile:237 'upload')

Thank you.

…plicate it

- Separate UNO and Nano since they don't use the same conf
- Separate Mega 2560 from Mega 1280 since they use different MCUs
- Add a -D flag when using Mega to cope with avrdude behaviour
@dbolgheroni dbolgheroni changed the title - Arduino Duemilanove was using the same UNO/Nano conf, so doesn't du… Better separate Arduino models Aug 9, 2018
@vext01
Copy link
Collaborator

vext01 commented Jul 9, 2019

Hi,

I'm sorry this was forgotten. Is there still interest in working on Arduino?

@dbolgheroni
Copy link
Collaborator Author

Hi,

This doesn't apply anymore, since the BSD-specific Makefile was replaced by devel/arduino-makefile.

I'm not using arduino that much to work on it. I'm using devel/arm-none-eabi to generate code for Cortex-M3, but:

http://openocd.org/doc/html/GDB-and-OpenOCD.html

"For instance GDB 6.3 has a known bug that produces bogus memory access errors, which has since been fixed; see http://osdir.com/ml/gdb.bugs.discuss/2004-12/msg00018.html"

I'm trying to find time to work on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants