jam1
Posts: 47
Joined: Tue Oct 21, 2014 5:51 pm

GPIO15 showing data with piscope, nothing on Terminal minico

Sun Dec 21, 2014 7:21 pm

Hi,

I am running a program on a separate µCPU but I cannot see the data on the terminal screen. I can see the GPIO 15 is busy (on piscope).

I tried "stty -F /dev/ttyAMA0 -b 9600" " cat < /dev/ttyAMA0" and nothing.

I tried "minicom -D /dev/ttyAMA0" and setup speed to 9600, still nothing.

If I connect RXD to TXD, I can see the character on the terminal screen. If I set echo, I see double character.
I am using arduino to program the Atmega328p with no problem at flashing a LED, but now I need to see the character on a terminal screen.

I even remove i2c_dev, i2c_bcm2708, spi_i2cbcm2708.
What else did I missed?
Thank you.

User avatar
joan
Posts: 14936
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: GPIO15 showing data with piscope, nothing on Terminal mi

Sun Dec 21, 2014 7:48 pm

Have you updated your firmware to the next branch to get device tree support? If so it may have broken the serial link.

Try

pigs mg 14
pigs mg 15

from the command line. It should report that each has value 4 (4 is the value for ALT0, the mode for the UART).

jam1
Posts: 47
Joined: Tue Oct 21, 2014 5:51 pm

Re: GPIO15 showing data with piscope, nothing on Terminal mi

Sun Dec 21, 2014 7:58 pm

Both of them showing 4

I see the data on piscope from gpio 15

User avatar
joan
Posts: 14936
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: GPIO15 showing data with piscope, nothing on Terminal mi

Sun Dec 21, 2014 8:10 pm

You'd see the data on piscope regardless of whether they were in use as the UART or not. It should be working, everything seems ok.

jam1
Posts: 47
Joined: Tue Oct 21, 2014 5:51 pm

Re: GPIO15 showing data with piscope, nothing on Terminal mi

Sun Dec 21, 2014 10:08 pm

Ok, I think it is a problem with the pc board where the Atmega is installed. I took it off the pc board and put it on as breadboard and now I can see the data flow on the terminal.
Thank you for your patience

Return to “Interfacing (DSI, CSI, I2C, etc.)”