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. Controllers
  3. MyController.org
  4. [Solved] FOTA Not Working

[Solved] FOTA Not Working

Scheduled Pinned Locked Moved MyController.org
21 Posts 4 Posters 3.5k Views 4 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.
  • SoloamS Offline
    SoloamS Offline
    Soloam
    Hardware Contributor
    wrote on last edited by
    #8

    The complete Log on trying to load the sketch with the FTDI to the ATMEGA! I don't know if not working with the FTDI has anyting related with not being able to flash with the MyController, but it's strange... Just giving all info as possible to try to get some help on the problem.

    Arduino: 1.8.5 (Linux), Board: "ATmega328 with MYSBootloader 1.3.0, 8MHz RC"
    
    Warning: Board breadboard:avr:atmega328bb doesn't define a 'build.board' preference. Auto-set to: AVR_ATMEGA328BB
    Sketch uses 13290 bytes (43%) of program storage space. Maximum is 30720 bytes.
    Global variables use 714 bytes (34%) of dynamic memory, leaving 1334 bytes for local variables. Maximum is 2048 bytes.
    /opt/arduino-1.8.5/hardware/tools/avr/bin/avrdude -C/opt/arduino-1.8.5/hardware/tools/avr/etc/avrdude.conf -v -patmega328p -carduino -P/dev/ttyUSB0 -b115200 -D -Uflash:w:/tmp/arduino_build_550364/LightActuator.ino.hex:i 
    
    avrdude: Version 6.3, compiled on Jan 17 2017 at 11:00:16
             Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
             Copyright (c) 2007-2014 Joerg Wunsch
    
             System wide configuration file is "/opt/arduino-1.8.5/hardware/tools/avr/etc/avrdude.conf"
             User configuration file is "/home/diogo/.avrduderc"
             User configuration file does not exist or is not a regular file, skipping
    
             Using Port                    : /dev/ttyUSB0
             Using Programmer              : arduino
             Overriding Baud Rate          : 115200
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00
    
    avrdude done.  Thank you.
    
    Problem uploading to board.  See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
    
    This report would have more information with
    "Show verbose output during compilation"
    option enabled in File -> Preferences.
    

    Thank You

    1 Reply Last reply
    0
    • SoloamS Offline
      SoloamS Offline
      Soloam
      Hardware Contributor
      wrote on last edited by
      #9

      Can It be my version of the Arduino AVR Boards? I have 1.6.21, and the same occurs on 1.6.20.

      Thank You

      1 Reply Last reply
      0
      • SoloamS Offline
        SoloamS Offline
        Soloam
        Hardware Contributor
        wrote on last edited by
        #10

        Ok, at this point I can't access by FTDI to the 8Mhz, all the other frequencies ar working... I only tested the FOTA with the 8Mhz, so I'll teste it again today with the 1Mhz and post back the results.

        1 Reply Last reply
        0
        • SoloamS Offline
          SoloamS Offline
          Soloam
          Hardware Contributor
          wrote on last edited by
          #11

          I can confirm that FOTA is working on all frequency, except 8Mhz... I can't get it working on FOTA or FTDI on the 8Mhz version of MYSBootloader!

          Can any one help me with this?

          Thank you

          tekkaT 1 Reply Last reply
          0
          • SoloamS Soloam

            I can confirm that FOTA is working on all frequency, except 8Mhz... I can't get it working on FOTA or FTDI on the 8Mhz version of MYSBootloader!

            Can any one help me with this?

            Thank you

            tekkaT Offline
            tekkaT Offline
            tekka
            Admin
            wrote on last edited by
            #12

            @soloam I assume 115200 baud@8Mhz could be an issue, decreasing it to 57600 may help (i.e. in mysbootloader & boards.txt settings)

            1 Reply Last reply
            0
            • SoloamS Offline
              SoloamS Offline
              Soloam
              Hardware Contributor
              wrote on last edited by
              #13

              @tekka said in FOTA Not Working:

              57600

              hello @tekka I tested out with:

              57600
              38400
              19200
              9600
              4800
              2400

              None worked, strange that is working on the 16Mhz and 1Mhz, and only the 8Mhz is giving problems... exactly the one that I wanted to use... lol

              Thank You

              gohanG tekkaT 2 Replies Last reply
              0
              • SoloamS Soloam

                @tekka said in FOTA Not Working:

                57600

                hello @tekka I tested out with:

                57600
                38400
                19200
                9600
                4800
                2400

                None worked, strange that is working on the 16Mhz and 1Mhz, and only the 8Mhz is giving problems... exactly the one that I wanted to use... lol

                Thank You

                gohanG Offline
                gohanG Offline
                gohan
                Mod
                wrote on last edited by
                #14

                @soloam said in FOTA Not Working:

                exactly the one that I wanted to use.

                Murphy's law :sweat_smile:

                1 Reply Last reply
                0
                • SoloamS Soloam

                  @tekka said in FOTA Not Working:

                  57600

                  hello @tekka I tested out with:

                  57600
                  38400
                  19200
                  9600
                  4800
                  2400

                  None worked, strange that is working on the 16Mhz and 1Mhz, and only the 8Mhz is giving problems... exactly the one that I wanted to use... lol

                  Thank You

                  tekkaT Offline
                  tekkaT Offline
                  tekka
                  Admin
                  wrote on last edited by
                  #15

                  @soloam When you tested the different baud settings, did you also change it in mysbootloader and recompiled it?

                  1 Reply Last reply
                  0
                  • SoloamS Offline
                    SoloamS Offline
                    Soloam
                    Hardware Contributor
                    wrote on last edited by
                    #16

                    Do you mean over here @tekka?

                    /* set the UART baud rate defaults */
                    #ifndef BAUD_RATE
                    	#if F_CPU >= 8000000L
                    		#define BAUD_RATE   115200L
                    	#elif F_CPU >= 1000000L
                    		#define BAUD_RATE   9600L   // 19200 also supported, but with significant error
                    	#elif F_CPU >= 128000L
                    		#define BAUD_RATE   4800L   // Good for 128kHz internal RC
                    	#else
                    		#define BAUD_RATE 1200L     // Good even at 32768Hz
                    	#endif
                    #endif
                    
                    

                    No, I will try it... Can I do it in "Atom"? any special settings?

                    Thank You

                    tekkaT 1 Reply Last reply
                    0
                    • SoloamS Soloam

                      Do you mean over here @tekka?

                      /* set the UART baud rate defaults */
                      #ifndef BAUD_RATE
                      	#if F_CPU >= 8000000L
                      		#define BAUD_RATE   115200L
                      	#elif F_CPU >= 1000000L
                      		#define BAUD_RATE   9600L   // 19200 also supported, but with significant error
                      	#elif F_CPU >= 128000L
                      		#define BAUD_RATE   4800L   // Good for 128kHz internal RC
                      	#else
                      		#define BAUD_RATE 1200L     // Good even at 32768Hz
                      	#endif
                      #endif
                      
                      

                      No, I will try it... Can I do it in "Atom"? any special settings?

                      Thank You

                      tekkaT Offline
                      tekkaT Offline
                      tekka
                      Admin
                      wrote on last edited by
                      #17

                      @soloam Yes, that's the correct location (if BAUD_RATE is not set via compiler settings).
                      Sorry, but I have no experience with Atom.

                      1 Reply Last reply
                      0
                      • SoloamS Offline
                        SoloamS Offline
                        Soloam
                        Hardware Contributor
                        wrote on last edited by
                        #18

                        @tekka it worked :) Thank you for your assist, it was my first time doing this... so... :)

                        I made the change to HW.h to

                        #ifndef BAUD_RATE
                        	#if F_CPU >= 16000000L
                        		#define BAUD_RATE   115200L
                        	#elif F_CPU >= 8000000L
                        		#define BAUD_RATE   57600L
                        	#elif F_CPU >= 1000000L
                        		#define BAUD_RATE   9600L   // 19200 also supported, but with significant error
                        	#elif F_CPU >= 128000L
                        		#define BAUD_RATE   4800L   // Good for 128kHz internal RC
                        	#else
                        		#define BAUD_RATE 1200L     // Good even at 32768Hz
                        	#endif
                        #endif
                        

                        Compilled the new bootloader, and replaced it on the Arduino IDE folder... Flashed the new 8Mhz Bootloader to my node and now FTDI works... When I get home I'll test out FOTA and post back the results.

                        Will you change the GitHub Repo to take into account this change? Or is this a local problem only to me? Do you want me to submit change the code and hex file and submit a change request?

                        Thank You

                        tekkaT 1 Reply Last reply
                        0
                        • SoloamS Soloam

                          @tekka it worked :) Thank you for your assist, it was my first time doing this... so... :)

                          I made the change to HW.h to

                          #ifndef BAUD_RATE
                          	#if F_CPU >= 16000000L
                          		#define BAUD_RATE   115200L
                          	#elif F_CPU >= 8000000L
                          		#define BAUD_RATE   57600L
                          	#elif F_CPU >= 1000000L
                          		#define BAUD_RATE   9600L   // 19200 also supported, but with significant error
                          	#elif F_CPU >= 128000L
                          		#define BAUD_RATE   4800L   // Good for 128kHz internal RC
                          	#else
                          		#define BAUD_RATE 1200L     // Good even at 32768Hz
                          	#endif
                          #endif
                          

                          Compilled the new bootloader, and replaced it on the Arduino IDE folder... Flashed the new 8Mhz Bootloader to my node and now FTDI works... When I get home I'll test out FOTA and post back the results.

                          Will you change the GitHub Repo to take into account this change? Or is this a local problem only to me? Do you want me to submit change the code and hex file and submit a change request?

                          Thank You

                          tekkaT Offline
                          tekkaT Offline
                          tekka
                          Admin
                          wrote on last edited by
                          #19

                          @soloam well done! Yes, please go ahead and submit a PR with the necessary changes. I will review it later this week.

                          SoloamS 1 Reply Last reply
                          0
                          • tekkaT tekka

                            @soloam well done! Yes, please go ahead and submit a PR with the necessary changes. I will review it later this week.

                            SoloamS Offline
                            SoloamS Offline
                            Soloam
                            Hardware Contributor
                            wrote on last edited by
                            #20

                            @tekka FOTA and FTDI now working on 8Mhz Bootloader... PR submited!

                            Thank you for your help

                            1 Reply Last reply
                            1
                            • SoloamS Offline
                              SoloamS Offline
                              Soloam
                              Hardware Contributor
                              wrote on last edited by
                              #21

                              Just to end and close the topic, @tekka great work on the Bootloader and @jkandasa great work on MyController... Thank you

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


                              22

                              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