logic-analyzer icon indicating copy to clipboard operation
logic-analyzer copied to clipboard

Arduino MEGA 2560 not working

Open joskfg opened this issue 2 years ago • 1 comments

I'm trying to get it working but PulseView is not detecting the device. I tried to change the start ping and count to 22 and 8 to use digital pins from 22 to 30 but it is still not detected.

I'm using the simple example:

#include "Arduino.h"
#include "logic_analyzer.h"

using namespace logic_analyzer;  

int pinStart=START_PIN;
int numberOfPins=PIN_COUNT;
LogicAnalyzer logicAnalyzer;
Capture capture(MAX_FREQ, MAX_FREQ_THRESHOLD);


void setup() {
    Serial.begin(SERIAL_SPEED);  
    Serial.setTimeout(SERIAL_TIMEOUT);
    logicAnalyzer.begin(Serial, &capture, MAX_CAPTURE_SIZE, pinStart, numberOfPins);
}

void loop() {
    if (Serial) logicAnalyzer.processCommand();
}

Do you have any clue?

joskfg avatar May 19 '22 22:05 joskfg

Difficult to say. Did you select the correct Serial Port in Pulseview with 9600 Baud ?

pschatzmann avatar May 20 '22 12:05 pschatzmann