Connection Problems - No start signal detected - forcing start

Hello,
I am trying to connect my printer to the host and am having connection issues.
The baud rate in the firmware and RH is set to 115200. I have tried the baud rate in device manager at 9600 and 115200 with no difference between them. Just to be sure I tried every other baud rate to no avail. 
I am on PC running Windows 7 but the same problems were observed on my mac.
Any advice would be appreciated please

Comments

  • Ignore device manager. That baud rate is overridden anyway, so leave it on 9600.

    Make sure you have selected right communication protocol - repetier on marlin will not work. Autodetect should work at start, but always check log window with such problems as well.

    Try 250000 baud as well as that is often used and e.g. repetier-firmware will take baudrate from first upload until you change EEPROM_MODE in configuration.h.

    If printer has a display you should see it resetting printer on connection (with some boards not doing this).
  • I have it set to Autodetect. The log window returns : Communication timeout - reset send buffer block
    I have tried 250000 (and all the values) and the same symptoms are replicated. Unfortunately the printer does not have a display,.

  • What firmware do you use? Did you upload firmware?
    If baudrate is 115200 you can also use arduino serial console to connect. Then you can send simple commands without checksums like M115 just to see it communicates and sends some data. You will also see if you are using the right port. For non ascii baud rates you might need a serial terminal software to do the same test.
  • edited July 2017
    Okay, I think the firmware is the problem. I have tried to upload Repetier firmware now but am getting the following errors on upload:


    Build options changed, rebuilding all
    In file included from sketch\Repetier.h:539:0,

                     from sketch\BedLeveling.cpp:107:

    sketch\Printer.h: In static member function 'static void Printer::disableYStepper()':

    HAL.h:165: error: 'DIO94_PORT' was not declared in this scope

     #define  _WRITE(port, v)   do { if (v) {DIO ##  port ## _PORT -> PIO_SODR = DIO ## port ## _PIN; } else {DIO ##  port ## _PORT->PIO_CODR = DIO ## port ## _PIN; }; } while (0)

                                             ^

    sketch\HAL.h:166:22: note: in expansion of macro '_WRITE'

     #define WRITE(pin,v) _WRITE(pin,v)

                          ^

    sketch\Printer.h:522:9: note: in expansion of macro 'WRITE'

             WRITE(Y_ENABLE_PIN, !Y_ENABLE_ON);

             ^

    HAL.h:165: error: 'DIO94_PIN' was not declared in this scope

     #define  _WRITE(port, v)   do { if (v) {DIO ##  port ## _PORT -> PIO_SODR = DIO ## port ## _PIN; } else {DIO ##  port ## _PORT->PIO_CODR = DIO ## port ## _PIN; }; } while (0)

                                                                                 ^

    sketch\HAL.h:166:22: note: in expansion of macro '_WRITE'

     #define WRITE(pin,v) _WRITE(pin,v)

                          ^

    sketch\Printer.h:522:9: note: in expansion of macro 'WRITE'

             WRITE(Y_ENABLE_PIN, !Y_ENABLE_ON);

             ^

    HAL.h:165: error: 'DIO94_PORT' was not declared in this scope

     #define  _WRITE(port, v)   do { if (v) {DIO ##  port ## _PORT -> PIO_SODR = DIO ## port ## _PIN; } else {DIO ##  port ## _PORT->PIO_CODR = DIO ## port ## _PIN; }; } while (0)

                                                                                                              ^

    sketch\HAL.h:166:22: note: in expansion of macro '_WRITE'

     #define WRITE(pin,v) _WRITE(pin,v)

                          ^

    sketch\Printer.h:522:9: note: in expansion of macro 'WRITE'

             WRITE(Y_ENABLE_PIN, !Y_ENABLE_ON);

             ^

    HAL.h:165: error: 'DIO94_PIN' was not declared in this scope

     #define  _WRITE(port, v)   do { if (v) {DIO ##  port ## _PORT -> PIO_SODR = DIO ## port ## _PIN; } else {DIO ##  port ## _PORT->PIO_CODR = DIO ## port ## _PIN; }; } while (0)

                                                                                                                                                ^

    sketch\HAL.h:166:22: note: in expansion of macro '_WRITE'

     #define WRITE(pin,v) _WRITE(pin,v)

                          ^

    sketch\Printer.h:522:9: note: in expansion of macro 'WRITE'

             WRITE(Y_ENABLE_PIN, !Y_ENABLE_ON);

             ^

    sketch\Printer.h: In static member function 'static void Printer::disableZStepper()':

    HAL.h:165: error: 'DIO95_PORT' was not declared in this scope

     #define  _WRITE(port, v)   do { if (v) {DIO ##  port ## _PORT -> PIO_SODR = DIO ## port ## _PIN; } else {DIO ##  port ## _PORT->PIO_CODR = DIO ## port ## _PIN; }; } while (0)

                                             ^

    sketch\HAL.h:166:22: note: in expansion of macro '_WRITE'

     #define WRITE(pin,v) _WRITE(pin,v)

                          ^

    sketch\Printer.h:532:9: note: in expansion of macro 'WRITE'

             WRITE(Z_ENABLE_PIN, !Z_ENABLE_ON);

             ^

    HAL.h:165: error: 'DIO95_PIN' was not declared in this scope

     #define  _WRITE(port, v)   do { if (v) {DIO ##  port ## _PORT -> PIO_SODR = DIO ## port ## _PIN; } else {DIO ##  port ## _PORT->PIO_CODR = DIO ## port ## _PIN; }; } while (0)

                                                                                 ^

    sketch\HAL.h:166:22: note: in expansion of macro '_WRITE'

     #define WRITE(pin,v) _WRITE(pin,v)

                          ^

    sketch\Printer.h:532:9: note: in expansion of macro 'WRITE'

             WRITE(Z_ENABLE_PIN, !Z_ENABLE_ON);

             ^

    HAL.h:165: error: 'DIO95_PORT' was not declared in this scope

     #define  _WRITE(port, v)   do { if (v) {DIO ##  port ## _PORT -> PIO_SODR = DIO ## port ## _PIN; } else {DIO ##  port ## _PORT->PIO_CODR = DIO ## port ## _PIN; }; } while (0)

                                                                                                              ^

    sketch\HAL.h:166:22: note: in expansion of macro '_WRITE'

     #define WRITE(pin,v) _WRITE(pin,v)

                          ^

    sketch\Printer.h:532:9: note: in expansion of macro 'WRITE'

             WRITE(Z_ENABLE_PIN, !Z_ENABLE_ON);

             ^

    HAL.h:165: error: 'DIO95_PIN' was not declared in this scope

     #define  _WRITE(port, v)   do { if (v) {DIO ##  port ## _PORT -> PIO_SODR = DIO ## port ## _PIN; } else {DIO ##  port ## _PORT->PIO_CODR = DIO ## port ## _PIN; }; } while (0)

                                                                                                                                                ^

    sketch\HAL.h:166:22: note: in expansion of macro '_WRITE'

     #define WRITE(pin,v) _WRITE(pin,v)

                          ^

    sketch\Printer.h:532:9: note: in expansion of macro 'WRITE'

             WRITE(Z_ENABLE_PIN, !Z_ENABLE_ON);

             ^

    sketch\Printer.h: In static member function 'static void Printer::enableYStepper()':

    HAL.h:165: error: 'DIO94_PORT' was not declared in this scope

     #define  _WRITE(port, v)   do { if (v) {DIO ##  port ## _PORT -> PIO_SODR = DIO ## port ## _PIN; } else {DIO ##  port ## _PORT->PIO_CODR = DIO ## port ## _PIN; }; } while (0)

                                             ^

    sketch\HAL.h:166:22: note: in expansion of macro '_WRITE'

     #define WRITE(pin,v) _WRITE(pin,v)

                          ^

    sketch\Printer.h:557:9: note: in expansion of macro 'WRITE'

             WRITE(Y_ENABLE_PIN, Y_ENABLE_ON);

             ^

    HAL.h:165: error: 'DIO94_PIN' was not declared in this scope

     #define  _WRITE(port, v)   do { if (v) {DIO ##  port ## _PORT -> PIO_SODR = DIO ## port ## _PIN; } else {DIO ##  port ## _PORT->PIO_CODR = DIO ## port ## _PIN; }; } while (0)

                                                                                 ^

    sketch\HAL.h:166:22: note: in expansion of macro '_WRITE'

     #define WRITE(pin,v) _WRITE(pin,v)

                          ^

    sketch\Printer.h:557:9: note: in expansion of macro 'WRITE'

             WRITE(Y_ENABLE_PIN, Y_ENABLE_ON);

             ^

    HAL.h:165: error: 'DIO94_PORT' was not declared in this scope

     #define  _WRITE(port, v)   do { if (v) {DIO ##  port ## _PORT -> PIO_SODR = DIO ## port ## _PIN; } else {DIO ##  port ## _PORT->PIO_CODR = DIO ## port ## _PIN; }; } while (0)

                                                                                                              ^

    sketch\HAL.h:166:22: note: in expansion of macro '_WRITE'

     #define WRITE(pin,v) _WRITE(pin,v)

                          ^

    sketch\Printer.h:557:9: note: in expansion of macro 'WRITE'

             WRITE(Y_ENABLE_PIN, Y_ENABLE_ON);

             ^

    HAL.h:165: error: 'DIO94_PIN' was not declared in this scope

     #define  _WRITE(port, v)   do { if (v) {DIO ##  port ## _PORT -> PIO_SODR = DIO ## port ## _PIN; } else {DIO ##  port ## _PORT->PIO_CODR = DIO ## port ## _PIN; }; } while (0)

                                                                                                                                                ^

    sketch\HAL.h:166:22: note: in expansion of macro '_WRITE'

     #define WRITE(pin,v) _WRITE(pin,v)

                          ^

    sketch\Printer.h:557:9: note: in expansion of macro 'WRITE'

             WRITE(Y_ENABLE_PIN, Y_ENABLE_ON);

             ^

    sketch\Printer.h: In static member function 'static void Printer::enableZStepper()':

    HAL.h:165: error: 'DIO95_PORT' was not declared in this scope

     #define  _WRITE(port, v)   do { if (v) {DIO ##  port ## _PORT -> PIO_SODR = DIO ## port ## _PIN; } else {DIO ##  port ## _PORT->PIO_CODR = DIO ## port ## _PIN; }; } while (0)

                                             ^

    sketch\HAL.h:166:22: note: in expansion of macro '_WRITE'

     #define WRITE(pin,v) _WRITE(pin,v)

                          ^

    sketch\Printer.h:567:9: note: in expansion of macro 'WRITE'

             WRITE(Z_ENABLE_PIN, Z_ENABLE_ON);

             ^

    HAL.h:165: error: 'DIO95_PIN' was not declared in this scope

     #define  _WRITE(port, v)   do { if (v) {DIO ##  port ## _PORT -> PIO_SODR = DIO ## port ## _PIN; } else {DIO ##  port ## _PORT->PIO_CODR = DIO ## port ## _PIN; }; } while (0)

                                                                                 ^

    sketch\HAL.h:166:22: note: in expansion of macro '_WRITE'

     #define WRITE(pin,v) _WRITE(pin,v)

                          ^

    sketch\Printer.h:567:9: note: in expansion of macro 'WRITE'

             WRITE(Z_ENABLE_PIN, Z_ENABLE_ON);

             ^

    HAL.h:165: error: 'DIO95_PORT' was not declared in this scope

     #define  _WRITE(port, v)   do { if (v) {DIO ##  port ## _PORT -> PIO_SODR = DIO ## port ## _PIN; } else {DIO ##  port ## _PORT->PIO_CODR = DIO ## port ## _PIN; }; } while (0)

                                                                                                              ^

    sketch\HAL.h:166:22: note: in expansion of macro '_WRITE'

     #define WRITE(pin,v) _WRITE(pin,v)

                          ^

    sketch\Printer.h:567:9: note: in expansion of macro 'WRITE'

             WRITE(Z_ENABLE_PIN, Z_ENABLE_ON);

             ^

    HAL.h:165: error: 'DIO95_PIN' was not declared in this scope

     #define  _WRITE(port, v)   do { if (v) {DIO ##  port ## _PORT -> PIO_SODR = DIO ## port ## _PIN; } else {DIO ##  port ## _PORT->PIO_CODR = DIO ## port ## _PIN; }; } while (0)

                                                                                                                                                ^

    sketch\HAL.h:166:22: note: in expansion of macro '_WRITE'

     #define WRITE(pin,v) _WRITE(pin,v)

                          ^

    sketch\Printer.h:567:9: note: in expansion of macro 'WRITE'

             WRITE(Z_ENABLE_PIN, Z_ENABLE_ON);

             ^

    sketch\Printer.h: In static member function 'static void Printer::setZDirection(bool)':

    HAL.h:165: error: 'DIO96_PORT' was not declared in this scope

     #define  _WRITE(port, v)   do { if (v) {DIO ##  port ## _PORT -> PIO_SODR = DIO ## port ## _PIN; } else {DIO ##  port ## _PORT->PIO_CODR = DIO ## port ## _PIN; }; } while (0)

                                             ^

    sketch\HAL.h:166:22: note: in expansion of macro '_WRITE'

     #define WRITE(pin,v) _WRITE(pin,v)

                          ^

    sketch\Printer.h:616:13: note: in expansion of macro 'WRITE'

                 WRITE(Z_DIR_PIN, !INVERT_Z_DIR);

                 ^

    HAL.h:165: error: 'DIO96_PIN' was not declared in this scope

     #define  _WRITE(port, v)   do { if (v) {DIO ##  port ## _PORT -> PIO_SODR = DIO ## port ## _PIN; } else {DIO ##  port ## _PORT->PIO_CODR = DIO ## port ## _PIN; }; } while (0)

                                                                                 ^

    sketch\HAL.h:166:22: note: in expansion of macro '_WRITE'

     #define WRITE(pin,v) _WRITE(pin,v)

                          ^

    sketch\Printer.h:616:13: note: in expansion of macro 'WRITE'

                 WRITE(Z_DIR_PIN, !INVERT_Z_DIR);

                 ^

    HAL.h:165: error: 'DIO96_PORT' was not declared in this scope

     #define  _WRITE(port, v)   do { if (v) {DIO ##  port ## _PORT -> PIO_SODR = DIO ## port ## _PIN; } else {DIO ##  port ## _PORT->PIO_CODR = DIO ## port ## _PIN; }; } while (0)

                                                                                                              ^

    sketch\HAL.h:166:22: note: in expansion of macro '_WRITE'

     #define WRITE(pin,v) _WRITE(pin,v)

                          ^

    sketch\Printer.h:616:13: note: in expansion of macro 'WRITE'

                 WRITE(Z_DIR_PIN, !INVERT_Z_DIR);

                 ^

    HAL.h:165: error: 'DIO96_PIN' was not declared in this scope

     #define  _WRITE(port, v)   do { if (v) {DIO ##  port ## _PORT -> PIO_SODR = DIO ## port ## _PIN; } else {DIO ##  port ## _PORT->PIO_CODR = DIO ## port ## _PIN; }; } while (0)

                                                                                                                                                ^

    sketch\HAL.h:166:22: note: in expansion of macro '_WRITE'

     #define WRITE(pin,v) _WRITE(pin,v)

                          ^

    sketch\Printer.h:616:13: note: in expansion of macro 'WRITE'

                 WRITE(Z_DIR_PIN, !INVERT_Z_DIR);

                 ^

    HAL.h:165: error: 'DIO96_PORT' was not declared in this scope

     #define  _WRITE(port, v)   do { if (v) {DIO ##  port ## _PORT -> PIO_SODR = DIO ## port ## _PIN; } else {DIO ##  port ## _PORT->PIO_CODR = DIO ## port ## _PIN; }; } while (0)

                                             ^

    sketch\HAL.h:166:22: note: in expansion of macro '_WRITE'

     #define WRITE(pin,v) _WRITE(pin,v)

                          ^

    sketch\Printer.h:626:13: note: in expansion of macro 'WRITE'

                 WRITE(Z_DIR_PIN, INVERT_Z_DIR);

                 ^

    HAL.h:165: error: 'DIO96_PIN' was not declared in this scope

     #define  _WRITE(port, v)   do { if (v) {DIO ##  port ## _PORT -> PIO_SODR = DIO ## port ## _PIN; } else {DIO ##  port ## _PORT->PIO_CODR = DIO ## port ## _PIN; }; } while (0)

                                                                                 ^

    sketch\HAL.h:166:22: note: in expansion of macro '_WRITE'

     #define WRITE(pin,v) _WRITE(pin,v)

                          ^

    sketch\Printer.h:626:13: note: in expansion of macro 'WRITE'

                 WRITE(Z_DIR_PIN, INVERT_Z_DIR);

                 ^

    HAL.h:165: error: 'DIO96_PORT' was not declared in this scope

     #define  _WRITE(port, v)   do { if (v) {DIO ##  port ## _PORT -> PIO_SODR = DIO ## port ## _PIN; } else {DIO ##  port ## _PORT->PIO_CODR = DIO ## port ## _PIN; }; } while (0)

                                                                                                              ^

    sketch\HAL.h:166:22: note: in expansion of macro '_WRITE'

     #define WRITE(pin,v) _WRITE(pin,v)

                          ^

    sketch\Printer.h:626:13: note: in expansion of macro 'WRITE'

                 WRITE(Z_DIR_PIN, INVERT_Z_DIR);

                 ^

    HAL.h:165: error: 'DIO96_PIN' was not declared in this scope

     #define  _WRITE(port, v)   do { if (v) {DIO ##  port ## _PORT -> PIO_SODR = DIO ## port ## _PIN; } else {DIO ##  port ## _PORT->PIO_CODR = DIO ## port ## _PIN; }; } while (0)

                                                                                                                                                ^

    sketch\HAL.h:166:22: note: in expansion of macro '_WRITE'

     #define WRITE(pin,v) _WRITE(pin,v)

                          ^

    sketch\Printer.h:626:13: note: in expansion of macro 'WRITE'

                 WRITE(Z_DIR_PIN, INVERT_Z_DIR);

                 ^

    sketch\Printer.h: In static member function 'static bool Printer::getZDirection()':

    HAL.h:161: error: 'DIO96_PORT' was not declared in this scope

     #define _READ(pin) (DIO ##  pin ## _PORT->PIO_PDSR & DIO ##  pin ## _PIN ? 1 : 0) // does return 0 or pin value

                         ^

    sketch\HAL.h:162:19: note: in expansion of macro '_READ'

     #define READ(pin) _READ(pin)

                       ^

    sketch\Printer.h:638:18: note: in expansion of macro 'READ'

             return ((READ(Z_DIR_PIN) != 0) ^ INVERT_Z_DIR);

                      ^

    HAL.h:161: error: 'DIO96_PIN' was not declared in this scope

     #define _READ(pin) (DIO ##  pin ## _PORT->PIO_PDSR & DIO ##  pin ## _PIN ? 1 : 0) // does return 0 or pin value

                                                          ^

    sketch\HAL.h:162:19: note: in expansion of macro '_READ'

     #define READ(pin) _READ(pin)

                       ^

    sketch\Printer.h:638:18: note: in expansion of macro 'READ'

             return ((READ(Z_DIR_PIN) != 0) ^ INVERT_Z_DIR);

                      ^

    sketch\Printer.h: In static member function 'static void Printer::startXStep()':

    HAL.h:165: error: 'DIO93_PORT' was not declared in this scope

     #define  _WRITE(port, v)   do { if (v) {DIO ##  port ## _PORT -> PIO_SODR = DIO ## port ## _PIN; } else {DIO ##  port ## _PORT->PIO_CODR = DIO ## port ## _PIN; }; } while (0)

                                             ^

    sketch\HAL.h:166:22: note: in expansion of macro '_WRITE'

     #define WRITE(pin,v) _WRITE(pin,v)

                          ^

    sketch\Printer.h:975:9: note: in expansion of macro 'WRITE'

             WRITE(X_STEP_PIN,START_STEP_WITH_HIGH);

             ^

    HAL.h:165: error: 'DIO93_PIN' was not declared in this scope

     #define  _WRITE(port, v)   do { if (v) {DIO ##  port ## _PORT -> PIO_SODR = DIO ## port ## _PIN; } else {DIO ##  port ## _PORT->PIO_CODR = DIO ## port ## _PIN; }; } while (0)

                                                                                 ^

    sketch\HAL.h:166:22: note: in expansion of macro '_WRITE'

     #define WRITE(pin,v) _WRITE(pin,v)

                          ^

    sketch\Printer.h:975:9: note: in expansion of macro 'WRITE'

             WRITE(X_STEP_PIN,START_STEP_WITH_HIGH);

             ^

    HAL.h:165: error: 'DIO93_PORT' was not declared in this scope

     #define  _WRITE(port, v)   do { if (v) {DIO ##  port ## _PORT -> PIO_SODR = DIO ## port ## _PIN; } else {DIO ##  port ## _PORT->PIO_CODR = DIO ## port ## _PIN; }; } while (0)

                                                                                                              ^

    sketch\HAL.h:166:22: note: in expansion of macro '_WRITE'

     #define WRITE(pin,v) _WRITE(pin,v)

                          ^

    sketch\Printer.h:975:9: note: in expansion of macro 'WRITE'

             WRITE(X_STEP_PIN,START_STEP_WITH_HIGH);

             ^

    HAL.h:165: error: 'DIO93_PIN' was not declared in this scope

     #define  _WRITE(port, v)   do { if (v) {DIO ##  port ## _PORT -> PIO_SODR = DIO ## port ## _PIN; } else {DIO ##  port ## _PORT->PIO_CODR = DIO ## port ## _PIN; }; } while (0)

                                                                                                                                                ^

    sketch\HAL.h:166:22: note: in expansion of macro '_WRITE'

     #define WRITE(pin,v) _WRITE(pin,v)

                          ^

    sketch\Printer.h:975:9: note: in expansion of macro 'WRITE'

             WRITE(X_STEP_PIN,START_STEP_WITH_HIGH);

             ^

    sketch\Printer.h: In static member function 'static void Printer::startYStep()':

    HAL.h:165: error: 'DIO108_PORT' was not declared in this scope

     #define  _WRITE(port, v)   do { if (v) {DIO ##  port ## _PORT -> PIO_SODR = DIO ## port ## _PIN; } else {DIO ##  port ## _PORT->PIO_CODR = DIO ## port ## _PIN; }; } while (0)

                                             ^

    sketch\HAL.h:166:22: note: in expansion of macro '_WRITE'

     #define WRITE(pin,v) _WRITE(pin,v)

                          ^

    sketch\Printer.h:983:9: note: in expansion of macro 'WRITE'

             WRITE(Y_STEP_PIN,START_STEP_WITH_HIGH);

             ^

    HAL.h:165: error: 'DIO108_PIN' was not declared in this scope

     #define  _WRITE(port, v)   do { if (v) {DIO ##  port ## _PORT -> PIO_SODR = DIO ## port ## _PIN; } else {DIO ##  port ## _PORT->PIO_CODR = DIO ## port ## _PIN; }; } while (0)

                                                                                 ^

    sketch\HAL.h:166:22: note: in expansion of macro '_WRITE'

     #define WRITE(pin,v) _WRITE(pin,v)

                          ^

    sketch\Printer.h:983:9: note: in expansion of macro 'WRITE'

             WRITE(Y_STEP_PIN,START_STEP_WITH_HIGH);

             ^

    HAL.h:165: error: 'DIO108_PORT' was not declared in this scope

     #define  _WRITE(port, v)   do { if (v) {DIO ##  port ## _PORT -> PIO_SODR = DIO ## port ## _PIN; } else {DIO ##  port ## _PORT->PIO_CODR = DIO ## port ## _PIN; }; } while (0)

                                                                                                              ^

    sketch\HAL.h:166:22: note: in expansion of macro '_WRITE'

     #define WRITE(pin,v) _WRITE(pin,v)

                          ^

    sketch\Printer.h:983:9: note: in expansion of macro 'WRITE'

             WRITE(Y_STEP_PIN,START_STEP_WITH_HIGH);

             ^

    HAL.h:165: error: 'DIO108_PIN' was not declared in this scope

     #define  _WRITE(port, v)   do { if (v) {DIO ##  port ## _PORT -> PIO_SODR = DIO ## port ## _PIN; } else {DIO ##  port ## _PORT->PIO_CODR = DIO ## port ## _PIN; }; } while (0)

                                                                                                                                                ^

    sketch\HAL.h:166:22: note: in expansion of macro '_WRITE'

     #define WRITE(pin,v) _WRITE(pin,v)

                          ^

    sketch\Printer.h:983:9: note: in expansion of macro 'WRITE'

             WRITE(Y_STEP_PIN,START_STEP_WITH_HIGH);

             ^

    sketch\Printer.h: In static member function 'static void Printer::startZStep()':

    HAL.h:165: error: 'DIO97_PORT' was not declared in this scope

     #define  _WRITE(port, v)   do { if (v) {DIO ##  port ## _PORT -> PIO_SODR = DIO ## port ## _PIN; } else {DIO ##  port ## _PORT->PIO_CODR = DIO ## port ## _PIN; }; } while (0)

                                             ^

    sketch\HAL.h:166:22: note: in expansion of macro '_WRITE'

     #define WRITE(pin,v) _WRITE(pin,v)

                          ^

    sketch\Printer.h:990:9: note: in expansion of macro 'WRITE'

             WRITE(Z_STEP_PIN,START_STEP_WITH_HIGH);

             ^

    HAL.h:165: error: 'DIO97_PIN' was not declared in this scope

     #define  _WRITE(port, v)   do { if (v) {DIO ##  port ## _PORT -> PIO_SODR = DIO ## port ## _PIN; } else {DIO ##  port ## _PORT->PIO_CODR = DIO ## port ## _PIN; }; } while (0)

                                                                                 ^

    sketch\HAL.h:166:22: note: in expansion of macro '_WRITE'

     #define WRITE(pin,v) _WRITE(pin,v)

                          ^

    sketch\Printer.h:990:9: note: in expansion of macro 'WRITE'

             WRITE(Z_STEP_PIN,START_STEP_WITH_HIGH);

             ^

    HAL.h:165: error: 'DIO97_PORT' was not declared in this scope

     #define  _WRITE(port, v)   do { if (v) {DIO ##  port ## _PORT -> PIO_SODR = DIO ## port ## _PIN; } else {DIO ##  port ## _PORT->PIO_CODR = DIO ## port ## _PIN; }; } while (0)

                                                                                                              ^

    sketch\HAL.h:166:22: note: in expansion of macro '_WRITE'

     #define WRITE(pin,v) _WRITE(pin,v)

                          ^

    sketch\Printer.h:990:9: note: in expansion of macro 'WRITE'

             WRITE(Z_STEP_PIN,START_STEP_WITH_HIGH);

             ^

    HAL.h:165: error: 'DIO97_PIN' was not declared in this scope

     #define  _WRITE(port, v)   do { if (v) {DIO ##  port ## _PORT -> PIO_SODR = DIO ## port ## _PIN; } else {DIO ##  port ## _PORT->PIO_CODR = DIO ## port ## _PIN; }; } while (0)

                                                                                                                                                ^

    sketch\HAL.h:166:22: note: in expansion of macro '_WRITE'

     #define WRITE(pin,v) _WRITE(pin,v)

                          ^

    sketch\Printer.h:990:9: note: in expansion of macro 'WRITE'

             WRITE(Z_STEP_PIN,START_STEP_WITH_HIGH);

             ^

    sketch\Printer.h: In static member function 'static void Printer::endXYZSteps()':

    HAL.h:165: error: 'DIO93_PORT' was not declared in this scope

     #define  _WRITE(port, v)   do { if (v) {DIO ##  port ## _PORT -> PIO_SODR = DIO ## port ## _PIN; } else {DIO ##  port ## _PORT->PIO_CODR = DIO ## port ## _PIN; }; } while (0)

                                             ^

    sketch\HAL.h:166:22: note: in expansion of macro '_WRITE'

     #define WRITE(pin,v) _WRITE(pin,v)

                          ^

    sketch\Printer.h:1000:9: note: in expansion of macro 'WRITE'

             WRITE(X_STEP_PIN,!START_STEP_WITH_HIGH);

             ^

    HAL.h:165: error: 'DIO93_PIN' was not declared in this scope

     #define  _WRITE(port, v)   do { if (v) {DIO ##  port ## _PORT -> PIO_SODR = DIO ## port ## _PIN; } else {DIO ##  port ## _PORT->PIO_CODR = DIO ## port ## _PIN; }; } while (0)

                                                                                 ^

    sketch\HAL.h:166:22: note: in expansion of macro '_WRITE'

     #define WRITE(pin,v) _WRITE(pin,v)

                          ^

    sketch\Printer.h:1000:9: note: in expansion of macro 'WRITE'

             WRITE(X_STEP_PIN,!START_STEP_WITH_HIGH);

             ^

    HAL.h:165: error: 'DIO93_PORT' was not declared in this scope

     #define  _WRITE(port, v)   do { if (v) {DIO ##  port ## _PORT -> PIO_SODR = DIO ## port ## _PIN; } else {DIO ##  port ## _PORT->PIO_CODR = DIO ## port ## _PIN; }; } while (0)

                                                                                                              ^

    sketch\HAL.h:166:22: note: in expansion of macro '_WRITE'

     #define WRITE(pin,v) _WRITE(pin,v)

                          ^

    sketch\Printer.h:1000:9: note: in expansion of macro 'WRITE'

             WRITE(X_STEP_PIN,!START_STEP_WITH_HIGH);

             ^

    HAL.h:165: error: 'DIO93_PIN' was not declared in this scope

     #define  _WRITE(port, v)   do { if (v) {DIO ##  port ## _PORT -> PIO_SODR = DIO ## port ## _PIN; } else {DIO ##  port ## _PORT->PIO_CODR = DIO ## port ## _PIN; }; } while (0)

                                                                                                                                                ^

    sketch\HAL.h:166:22: note: in expansion of macro '_WRITE'

     #define WRITE(pin,v) _WRITE(pin,v)

                          ^

    sketch\Printer.h:1000:9: note: in expansion of macro 'WRITE'

             WRITE(X_STEP_PIN,!START_STEP_WITH_HIGH);

             ^

    HAL.h:165: error: 'DIO108_PORT' was not declared in this scope

     #define  _WRITE(port, v)   do { if (v) {DIO ##  port ## _PORT -> PIO_SODR = DIO ## port ## _PIN; } else {DIO ##  port ## _PORT->PIO_CODR = DIO ## port ## _PIN; }; } while (0)

                                             ^

    sketch\HAL.h:166:22: note: in expansion of macro '_WRITE'

     #define WRITE(pin,v) _WRITE(pin,v)

                          ^

    sketch\Printer.h:1004:9: note: in expansion of macro 'WRITE'

             WRITE(Y_STEP_PIN,!START_STEP_WITH_HIGH);

             ^

    HAL.h:165: error: 'DIO108_PIN' was not declared in this scope

     #define  _WRITE(port, v)   do { if (v) {DIO ##  port ## _PORT -> PIO_SODR = DIO ## port ## _PIN; } else {DIO ##  port ## _PORT->PIO_CODR = DIO ## port ## _PIN; }; } while (0)

                                                                                 ^

    sketch\HAL.h:166:22: note: in expansion of macro '_WRITE'

     #define WRITE(pin,v) _WRITE(pin,v)

                          ^

    sketch\Printer.h:1004:9: note: in expansion of macro 'WRITE'

             WRITE(Y_STEP_PIN,!START_STEP_WITH_HIGH);

             ^

    HAL.h:165: error: 'DIO108_PORT' was not declared in this scope

     #define  _WRITE(port, v)   do { if (v) {DIO ##  port ## _PORT -> PIO_SODR = DIO ## port ## _PIN; } else {DIO ##  port ## _PORT->PIO_CODR = DIO ## port ## _PIN; }; } while (0)

                                                                                                              ^

    sketch\HAL.h:166:22: note: in expansion of macro '_WRITE'

     #define WRITE(pin,v) _WRITE(pin,v)

                          ^

    sketch\Printer.h:1004:9: note: in expansion of macro 'WRITE'

             WRITE(Y_STEP_PIN,!START_STEP_WITH_HIGH);

             ^

    HAL.h:165: error: 'DIO108_PIN' was not declared in this scope

     #define  _WRITE(port, v)   do { if (v) {DIO ##  port ## _PORT -> PIO_SODR = DIO ## port ## _PIN; } else {DIO ##  port ## _PORT->PIO_CODR = DIO ## port ## _PIN; }; } while (0)

                                                                                                                                                ^

    sketch\HAL.h:166:22: note: in expansion of macro '_WRITE'

     #define WRITE(pin,v) _WRITE(pin,v)

                          ^

    sketch\Printer.h:1004:9: note: in expansion of macro 'WRITE'

             WRITE(Y_STEP_PIN,!START_STEP_WITH_HIGH);

             ^

    HAL.h:165: error: 'DIO97_PORT' was not declared in this scope

     #define  _WRITE(port, v)   do { if (v) {DIO ##  port ## _PORT -> PIO_SODR = DIO ## port ## _PIN; } else {DIO ##  port ## _PORT->PIO_CODR = DIO ## port ## _PIN; }; } while (0)

                                             ^

    sketch\HAL.h:166:22: note: in expansion of macro '_WRITE'

     #define WRITE(pin,v) _WRITE(pin,v)

                          ^

    sketch\Printer.h:1008:9: note: in expansion of macro 'WRITE'

             WRITE(Z_STEP_PIN,!START_STEP_WITH_HIGH);

             ^

    HAL.h:165: error: 'DIO97_PIN' was not declared in this scope

     #define  _WRITE(port, v)   do { if (v) {DIO ##  port ## _PORT -> PIO_SODR = DIO ## port ## _PIN; } else {DIO ##  port ## _PORT->PIO_CODR = DIO ## port ## _PIN; }; } while (0)

                                                                                 ^

    sketch\HAL.h:166:22: note: in expansion of macro '_WRITE'

     #define WRITE(pin,v) _WRITE(pin,v)

                          ^

    sketch\Printer.h:1008:9: note: in expansion of macro 'WRITE'

             WRITE(Z_STEP_PIN,!START_STEP_WITH_HIGH);

             ^

    HAL.h:165: error: 'DIO97_PORT' was not declared in this scope

     #define  _WRITE(port, v)   do { if (v) {DIO ##  port ## _PORT -> PIO_SODR = DIO ## port ## _PIN; } else {DIO ##  port ## _PORT->PIO_CODR = DIO ## port ## _PIN; }; } while (0)

                                                                                                              ^

    sketch\HAL.h:166:22: note: in expansion of macro '_WRITE'

     #define WRITE(pin,v) _WRITE(pin,v)

                          ^

    sketch\Printer.h:1008:9: note: in expansion of macro 'WRITE'

             WRITE(Z_STEP_PIN,!START_STEP_WITH_HIGH);

             ^

    HAL.h:165: error: 'DIO97_PIN' was not declared in this scope

     #define  _WRITE(port, v)   do { if (v) {DIO ##  port ## _PORT -> PIO_SODR = DIO ## port ## _PIN; } else {DIO ##  port ## _PORT->PIO_CODR = DIO ## port ## _PIN; }; } while (0)

                                                                                                                                                ^

    sketch\HAL.h:166:22: note: in expansion of macro '_WRITE'

     #define WRITE(pin,v) _WRITE(pin,v)

                          ^

    sketch\Printer.h:1008:9: note: in expansion of macro 'WRITE'

             WRITE(Z_STEP_PIN,!START_STEP_WITH_HIGH);

             ^

    exit status 1
    'DIO94_PORT' was not declared in this scope

    This report would have more information with
    "Show verbose output during compilation"
    option enabled in File -> Preferences.


    Any further advice?
  • Your configuration is wrong.
    'DIO94_PORT' was not declared in this scope

    means you tried to use pin 94 but the board used/set in boards does not have that pin. Make sure you have set the right board in Arduino AND configuration.h and use only pins available for the board in configuration. Without infos I can not say which of these is wrong, but I'm sure you will figure out.
  • edited July 2017
    I found the issue there,
    the firmware now compiles and uploads but after the cpu reset the computer stops recognizing the device as a bossa com port
  • The printer shows as an 'Unknown Device'
  • Be carefull with due boards. They have 2 ports. Default config is for programming port, but you can change that or use both if you assign te other to bluetooth port. This is independent of the upload port. So if configured for programming and uploading with native port you can not connect. Native port also switches between 2 com ports depending on mode - uploading or operational. Best is to start with programming port which makes the least problems.
  • my configuration.h has these lines:
    #define NUM_EXTRUDER 1
    #define MOTHERBOARD 999
    #define RFSERIAL SerialUSB
    #include "pins.h"

    but my hal.h has these:
    #ifndef RFSERIAL
    #define RFSERIAL Serial   // Programming port of the due
    //#define RFSERIAL SerialUSB  // Native USB Port of the due
    #endif

    Am I correct that the configuration.h should have #define RFSERIAL Serial instead?


  • Yes, with Serial it will use programming port.
  • I tried this and it didn't make a difference to the symptoms. The same not recognising the device is seen.
  • What is happening if you connect with Arduino serial. Since you seem to be able to upload you should be able to connect especially if you have set baud rate to 115200. It it was different change EEPROM_MODE and upload again just to be sure it gets used.

    After connecting hit reset and see if a "start" line appears in console. Also M115 should report a lot of info.
Sign In or Register to comment.