makkes
Posts: 2
Joined: Tue Oct 07, 2014 3:40 pm

UART on dev/AMA0 only works when dev/ACM0 is available

Tue Oct 07, 2014 4:02 pm

Hi !

I have an Atmel ATMega16 connected to the UART header-pins of my RPi-B like this:
Image

To enable UART I altered these files:
/boot/cmdline.txt
/etc/inittab
as seen in many tutorials.
I was following this one:
http://technikegge.blogspot.de/2013/02/ ... asuro.html

And as a matter of fact, this works like a charm as long as I have my ArduinoISP connected to the RPi USB-Port. The ArduinoISP is not connected to my circuit at all, it's only plugged in at the RPi-side.
So to me it looks like plugging in the ArduinoISP (USB) enables something that is needed for the UART.

I am using raspbian,
uname -r returns:
3.12.28+

The ArduinoISP shows as /dev/ACM0, whereas the UART is available as /dev/AMA0.
When I plug off the ArduinoISP, ACM0 disappears, AMA0 is still there, but it's not giving me any output from the AVR.

ArduinoISP:
http://arduino.cc/en/Tutorial/ArduinoISP

Ideas anyone?

makkes

User avatar
hansotten
Posts: 341
Joined: Fri Jul 13, 2012 6:01 am
Contact: Website

Re: UART on dev/AMA0 only works when dev/ACM0 is available

Tue Oct 07, 2014 5:40 pm

You have a power supply connected to your Atmega? Or is the ISP powering the Atmega?
http://duinorasp.hansotten.com for Raspberry Pi and Arduino and ESP8266
http://retro.hansotten.nl for retrocomputing with the 6502 cpu

makkes
Posts: 2
Joined: Tue Oct 07, 2014 3:40 pm

Re: UART on dev/AMA0 only works when dev/ACM0 is available

Tue Oct 07, 2014 8:10 pm

Hi,

yes, everything is powered up correctly.

If have absolutely no clue what was wrong, but out of nowhere it suddenly works. I did not change ANYTHING AT ALL. I didn't even reboot the pi.
All I did in the meantime was logging in and out a couple of times via ssh, checking lsmod and lsusb with the Arduino attached/not attached.

makkes

edit:
For sure a setup like this might always have loose connections ...

Image

edit2:
here's the link to the image:
http://postimg.org/image/yod7p93in/[

Return to “Troubleshooting”