chipKIT® Development Platform

Inspired by Arduino™

chipKIT Pi losing USB/Servial communication

Created Tue, 18 Nov 2014 19:12:06 +0000 by weclark


weclark

Tue, 18 Nov 2014 19:12:06 +0000

I'm trying to replace an ATMega2560 with the chipKIT Pi. The problem is I am using the UART on the RPi to communicate to the chipKIT Pi. With the USB bootloader and a small program I can send/receive from USB (Serial) and UART (Serial1). When I load my program of ~64k things go bad. The USB interface disappears. I can see no good way to troubleshoot this as TX2/RX2 are also used by the ICSP interface. My project is a modification of the ArduinoPi Web-based interface by Jan Stevens.


kk6jr

Sun, 18 Jan 2015 13:29:04 +0000

I'm trying to replace an ATMega2560 with the chipKIT Pi. The problem is I am using the UART on the RPi to communicate to the chipKIT Pi. With the USB bootloader and a small program I can send/receive from USB (Serial) and UART (Serial1). When I load my program of ~64k things go bad. The USB interface disappears. I can see no good way to troubleshoot this as TX2/RX2 are also used by the ICSP interface. My project is a modification of the ArduinoPi Web-based interface by Jan Stevens.

Having effectively only one serial connection between the chickpea and the Rpi is useless. A priority is to get another channel going. SPI is my choice.

My (related) question - when connecting SPI output from chickpea (my affectionate term for awkward ChipKIT Pi) to RPi is it really necessary to use a level converter (74LVC245 or similar). And if it is then why the heck was one not already loaded on the chickpea product? Or are level converters not needed and the chickpea only actually sources 3v3 on SPI wires when it gets its power from the RPi? Or is a simple forward biased diode (or two) sufficient to drop voltage when connecting a 5v0 output on the chickpea to a 3v3 input on the RPi?