Forum Replies Created

Viewing 1 - 5 of 5 posts
  • marcel00

    Member
    November 30, 2019 at 10:25 am

    Issue could be solved by adding delays after execution of functions related to getValue and setValue out of ITEAD Library from Nextion.

  • marcel00

    Member
    November 30, 2019 at 10:22 am

    Communication is working again. Issue was related with function nexInit(); out of Itead Library from Nextion. Somehow synchronization between MCU and Nextion display failed. A delay(100); was necessary after nexInit(); in case of 115200 baud.

  • marcel00

    Member
    November 7, 2019 at 3:41 pm

    I am confused about the Maxi Automation PINOUT V1.1.

    In my understanding the Interrupts are belonging to the following pins of the Arduino MEGA Board(blue)

    2 (Interrupt 0), 3 (Interrupt 1), 18 (Interrupt 5), 19 (Interrupt 4), 20 (Interrupt 3) und 21 (Interrupt 2)

    In the PINOUT V1.1 you have

    18 (Interrupt 0), 19 (Interrupt 1)

    What is correct in case of the Maxi Automation?

  • marcel00

    Member
    July 4, 2019 at 11:28 am

    Hello Lukas,

    I used the following code to reset:

    Code:

    void softwareReset( uint8_t prescaller) {
    wdt_disable();
    // start watchdog with the provided prescaller
    wdt_enable( prescaller);
    // wait for the prescaller time to expire
    // without sending the reset signal by using
    // the wdt_reset() method
    while (1) {}
    }


    This works and flashing starts. The only remaining question is: How can I compile the SD dual bootloader after changing Flashing LED port from PB7 to PL7?

  • marcel00

    Member
    July 4, 2019 at 9:13 am

    Hello Lukas,

    flashing works now. But only if I open the serial monitor in the Arduino IDE. I use a control LED on pin 43. If I press a momentary switch on pin 42 this LED is turned off and EEPROM flash address 1FF is set to F00. Now I turn of the MCU and after switching on Arduino MEGA 2560 immediately starts to flash from SD card but the MAXI Automation does not. It only starts to flash if I start the Arduino IDE and open the Serial monitor. Than it starts to flash and after finishing LED on pin 42 starts to light up again. It would be nice if this is not needed and the LED would blink while flashing instead of the one connected to PB7 at the Arduino MEGA2560. PB7 is the AO1 at the Maxi automation so you will not see it if it is not connected to a lamp.

    So how can I emulate a sort of reset as it is done if the Serial monitor is opened and how can I compile the SD dual bootloader after PB7 has been changed to PL7 (pin 42)?

    Best regards,

    Marcel

Viewing 1 - 5 of 5 posts