Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Feature Requests
  3. Default debug serial port

Default debug serial port

Scheduled Pinned Locked Moved Feature Requests
5 Posts 3 Posters 1.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    lafleur
    wrote on last edited by
    #1

    Is there a way to change the debug serial port in 2.1b code?

    In using a ARM M0, the serial port defaults to the USB port... I would like to reroute to Serial or Serial1

    Thanks

    1 Reply Last reply
    0
    • scalzS Offline
      scalzS Offline
      scalz
      Hardware Contributor
      wrote on last edited by
      #2

      in MyHwSAMD.h
      you can try to change MY_SERIALDEVICE define
      you may also need to check the variant files in samd arduino files if sercom, serial and pins are ok.

      1 Reply Last reply
      0
      • L Offline
        L Offline
        lafleur
        wrote on last edited by
        #3

        Thanks... Unclear on why I did not see that when I looks for something like that...

        Made these changes... added issue 707 to development branch

        from:

        #define MY_SERIALDEVICE SerialUSB
        

        to:

        #ifndef MY_SERIALDEVICE
        #define MY_SERIALDEVICE SerialUSB
        #endif
        
        1 Reply Last reply
        1
        • tbowmoT Offline
          tbowmoT Offline
          tbowmo
          Admin
          wrote on last edited by tbowmo
          #4

          By setting MY_SERIALDEVICE you will reroute everything to the other serial port, not only debug messages.

          L 1 Reply Last reply
          1
          • tbowmoT tbowmo

            By setting MY_SERIALDEVICE you will reroute everything to the other serial port, not only debug messages.

            L Offline
            L Offline
            lafleur
            wrote on last edited by
            #5

            @tbowmo thanks... works just as expected.....

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            12

            Online

            11.7k

            Users

            11.2k

            Topics

            113.1k

            Posts


            Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • MySensors
            • OpenHardware.io
            • Categories
            • Recent
            • Tags
            • Popular