Edit: Nevermind, I think I got it figured out....selected OpenBench and the info was there to select the Arduino.
So I have uploaded the arduino sketch fine. I opened a serial port and get "readCount = 1024 ... done..." output when I send a 1 to the arduino. When I send a 2, I get an array of zeros, even with a pulse going to pin 8 (I used my Yun to create a pulse by taking a pin to HIGH and then LOW with delay(2); function. Is it normal to get all these zeros with a pulse on one of the input pins? If so, then I guess it is working fine. I don't seem to be picking anything up on my OLS logic sniffer, but we can address that later.
#if 0/** This sets up timer2 at 100KHz to toggle a pin. This is useful* for debugging as it gives an internally precise signal source.* This doesn't work on the Arduino Mega. Use on the Uno or older.* We're using the same clock source for the timer & our sampling.*/...
0 = clear cmd buffer1 = print cmd buffer2 = print data buffer3 = pretty print buffer4 = capture at 4MHz5 = capture at 1MHz6 = capture at 500KHz
I inserted some debugging code which toggles an led if serial data comes in. That works as expected on the Arduino Uno but not on the Mega 2560. It seems to me that the 2560 board hangs on the Serial.available() call.
Hi,just this short info @gillham:I tried everything you've mentioned, but still cannot get it to work.GreetingsMatthias
Sketch uses 150,674 bytes (59%) of program storage space. Maximum is 253,952 bytes.Global variables use 7,812 bytes (95%) of dynamic memory, leaving 380 bytes for local variables. Maximum is 8,192 bytes.Low memory available, stability problems may occur.