element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Experts, Learning and Guidance
  • Technologies
  • More
Experts, Learning and Guidance
Ask an Expert Forum Problem communicating with the ATmega328 on the Gertboard
  • Blog
  • Forum
  • Documents
  • Leaderboard
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Experts, Learning and Guidance to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 0 replies
  • Subscribers 301 subscribers
  • Views 281 views
  • Users 0 members are here
Related
See a helpful answer?

Be sure to click 'more' and select 'suggest as answer'!

If you're the thread creator, be sure to click 'more' then 'Verify as Answer'!

Problem communicating with the ATmega328 on the Gertboard

gdstew
gdstew over 12 years ago

I can't get the Arduino IDE to see the serial port on the ATmega328 on the

Gertboard. The serial port selection is grayed out and when I select monitor

serial port I get a message saying that it could not find /dev/ttyAMA0. I have

removed or commented out all entries in cmdline.txt and inittab that reference

/dev/ttyAMA0. I changed the .arduino/preferences.txt entry for the serial port

to /dev/ttyAMA0 at 9600 baud. I can loop back by shorting the GP14 pin to the

GP15 pin on the Gertboard and it works perfectly with minicom. avrdude also

seems to have no problem finding /dev/ttyAMA0 but it does not seem to be able to

communicate with the bootloader either.

 

Trouble shooting this has been made more complicated by a couple of hardware

factors.

 

1) The ATmega328 that came with the Gertboard is unprogrammed and the only one I

    have programmed is from a Rev 3 Arduino Uno that runs at 16 MHz @ 5V.

2) When running at 12 MHz @ 3.3V it produces the wrong baud rate.

3) There is no automatic reset but there is a reset button I use.

 

As it turns out the first two are fixed because I am working on a project that

has required me to modified the Gertboard to allow the ATmega328 on it to run at

12 MHz @ 3.3V or 16 MHz @ 5V (all 3V3 connections to the ATmega328 are isolated

from the 3V3 bus on the Gertboard and I have installed a socket for the

resonator). It uses two active 3.3V to 5V translators to connect to the serial

RX/TX pins at GP14 and GP15 on the Gertboard when using 5V. Using an oscilloscope

I have verified that the voltage translators are working properly. I can loop

back by shorting a header at the 5V logic levels and it works with minicom as

well. There is a program that was downloaded into the ATmega328 when it was in

the Arduino that sends data to the serial port continuously and I can see that

this output is correct by using minicom to monitor it so I know that the

ATmega328 is working and that the baud rate is correct. I have monitored the

serial input pin on the ATmega328 with the oscilloscope and verified that what I

type in using minicom is being received at that pin also at the correct baud

rate.

 

At this point I think I have eliminated hardware problems so I am primarily

looking for software or configuration suggestions. Thanks.

  • Sign in to reply
  • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube