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. Troubleshooting
  3. Can not compile on Arduino Nano ESP 32

Can not compile on Arduino Nano ESP 32

Scheduled Pinned Locked Moved Troubleshooting
15 Posts 2 Posters 123 Views 2 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.
  • E Offline
    E Offline
    eiten
    wrote on last edited by
    #5

    As an additional info, sleep will not work on the ESP in version 2.3.2. Try the developement branch from the github if you need sleep, there I implemented this.

    C 1 Reply Last reply
    0
    • E eiten

      As an additional info, sleep will not work on the ESP in version 2.3.2. Try the developement branch from the github if you need sleep, there I implemented this.

      C Offline
      C Offline
      ctodor
      wrote on last edited by
      #6

      @eiten Thx for the info.
      "Try the developement branch from the github": can you give me the url?

      1 Reply Last reply
      0
      • E Offline
        E Offline
        eiten
        wrote on last edited by
        #7

        @ctodor of course:
        https://github.com/mysensors/MySensors/tree/development does contain sleep code for ESP. You can download the library here as a zip file.

        C 1 Reply Last reply
        0
        • E eiten

          @ctodor of course:
          https://github.com/mysensors/MySensors/tree/development does contain sleep code for ESP. You can download the library here as a zip file.

          C Offline
          C Offline
          ctodor
          wrote on last edited by
          #8

          @eiten :+1:

          E 1 Reply Last reply
          0
          • C ctodor

            @eiten :+1:

            E Offline
            E Offline
            eiten
            wrote on last edited by
            #9

            @ctodor did you succeed?

            C 1 Reply Last reply
            0
            • E eiten

              @ctodor did you succeed?

              C Offline
              C Offline
              ctodor
              wrote on last edited by
              #10

              @eiten
              Sorry for the late response, but I didn't had time to work on it until today.

              Yes, I was able to compile but not to upload. After "uploading", the Arduino NANO ESP 32 disconects from the PC.
              I must reset the board in order to be able to upload another sketch.

              1 Reply Last reply
              0
              • E Offline
                E Offline
                eiten
                wrote on last edited by
                #11

                OK, so I suppose the build flags are incorrect. Do you use PlatformIO? Then, you could try:

                build_flags = 
                	-D ARDUINO_USB_MODE=1
                	-D ARDUINO_USB_CDC_ON_BOOT=1
                

                If you are on the Arduino IDE, you have to set Tools -> USB-Mode -> CDC-Mode. Ore something similar, I don't have the Arduino IDE installed ATM. IIRC, monitor speed must be set to 460800.

                C 1 Reply Last reply
                1
                • E eiten

                  OK, so I suppose the build flags are incorrect. Do you use PlatformIO? Then, you could try:

                  build_flags = 
                  	-D ARDUINO_USB_MODE=1
                  	-D ARDUINO_USB_CDC_ON_BOOT=1
                  

                  If you are on the Arduino IDE, you have to set Tools -> USB-Mode -> CDC-Mode. Ore something similar, I don't have the Arduino IDE installed ATM. IIRC, monitor speed must be set to 460800.

                  C Offline
                  C Offline
                  ctodor
                  wrote on last edited by ctodor
                  #12

                  @eiten Yep, I was able to upload the sketch after I've set Tools -> USB-Mode -> CDC-Mode.
                  Thank you for your help.

                  Well, I think I rushed with the conclusion.
                  Somehow, the bord is now in infinite boot loop:

                  0;255;3;0;14;Gateway startup complete.
                  0;255;0;0;18;2.3.2
                  ESP-ROM:esp32s3-20210327
                  Build:Mar 27 2021
                  rst:0x8 (TG1WDT_SYS_RST),boot:0x2b (SPI_FAST_FLASH_BOOT)
                  Saved PC:0x4200d223
                  SPIWP:0xee
                  mode:DIO, clock div:1
                  load:0x3fce3808,len:0x44c
                  load:0x403c9700,len:0xbe4
                  load:0x403cc700,len:0x2a68
                  entry 0x403c98d4

                  repetes over and over

                  1 Reply Last reply
                  0
                  • E Offline
                    E Offline
                    eiten
                    wrote on last edited by
                    #13

                    That's strange. Is it exactly the code from above? It seems, it is in gateway mode, but in your sketch, you commented out the gateway option...

                    C 1 Reply Last reply
                    0
                    • E eiten

                      That's strange. Is it exactly the code from above? It seems, it is in gateway mode, but in your sketch, you commented out the gateway option...

                      C Offline
                      C Offline
                      ctodor
                      wrote on last edited by
                      #14

                      @eiten You are right. It is not the same sketch. The previuos sketch seems to work fine (I used it just to make sure I am able to compile and upload).
                      Now I'm trying to upload a sketch where the ardunio runs as gateway and this is what a need , a gateway that receives messages from a few magnetic door sensors.
                      But please, don't waste your time with me. I think I'm going to write my simple protocol to do such a simple task.

                      Thank you very much for your effort.

                      1 Reply Last reply
                      0
                      • E Offline
                        E Offline
                        eiten
                        wrote on last edited by
                        #15

                        @ctodor You are very welcome

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


                        16

                        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