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 2.1k 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
    • S Offline
      S 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
        • T Offline
          T 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
          • T 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

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            23

            Online

            12.0k

            Users

            11.2k

            Topics

            113.4k

            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