VSC/Platform IO SerialMonitor issues and Arduino IDE crashes

grbba May 6, 2020

  1. grbba

    grbba TrainBoard Member

    13
    3
    4
    Hello,

    I have successfully downloaded DCCppEX into my Mega but have issues using the SerialMonitor from PlatformIO. Actually the boot string shows up properly but i can't enter any commands. Well not quite i can enter them 'blindly' and may get a response. I actually can't see anything I type. I get the correct answer though when e.g. typing <0> or <1>. Any Idea?

    I found a little Tool for MAcOS though called 'SerialTools' which you can find on the app store which works perfectly and i managed to connect with it to the Mega and do the basic testing ( as far as i can get without a motor shield ) which all turned out to work properly.

    I tried also to use the Arduino IDE (MacOS 15.4 Catalina ) to use the SerialMonitor but i was in for some surprises. I am on 1.8.12

    When i try to load DCCppEX.ino to flash it the first crash of the IDE happens. On restart of the IDE the files are open nd i can compile and flash. Once that done opening the SerialMonitor will crash the IDE as well. I cna repeat this consistently ( actually closing the files crashes the IDE as well. On restart i get a fresh sketch and when trying oto open DCCppEX well you know whats happening ).

    Actually the IDE crashes on any .ino file I try to open ...
    I tried to reinstall to no avail ... or maybe there is a specific procedure to correctly uninstall the Arduino IDE properly ...

    Any idea on this one ?

    A bit on the sidelines but if you have come across the same issues I'd happy to hear from you. Otherwise I'll try to debug this in more depth and will post the results.

    //Gregor
     
  2. grbba

    grbba TrainBoard Member

    13
    3
    4
    Hello again,

    The first one i figured out. You have to add

    monitor_flags = --echo

    to the platformio.ini file! So my platform.ini file looks like this now (new addition in red)

    [platformio]
    src_dir = DCCppEX

    [env:atmelavr]
    platform = atmelavr
    board = megaatmega2560
    framework = arduino
    lib_deps =
    EEPROM
    Wire
    Ethernet
    SPI
    LiquidCrystal_PCF8574
    monitor_speed = 115200
    monitor_flags = --echo

     
  3. FlightRisk

    FlightRisk TrainBoard Member

    548
    237
    14
  4. grbba

    grbba TrainBoard Member

    13
    3
    4
    Thanks a lot. Reading through the thread I went back to version 1.8.10 of the Arduino IDE and this worked. No crashes anymore. So for Mac Users you ev. may want to ut a message somewhere to stick to 1.8.10 at this point in time ...

    Take care
    //Gregor
     

Share This Page