Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    3.2 3HC Bootloader update - No diag led

    Scheduled Pinned Locked Moved Solved
    Beta Firmware
    4
    29
    1.1k
    Loading More Posts
    • 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.
    • A Former User?
      A Former User
      last edited by

      (You might be able to use a raspberry pi's gpio with openocd as an swd programmer to recover if a suitable config file is provided, but don't have a 3hc so i haven't tried it. st-link programmer is another low cost option for swd programming)

      1 Reply Last reply Reply Quote 0
      • jay_s_ukundefined
        jay_s_uk
        last edited by

        If i connect to the SWD header, as soon as the board is powered on, the diag LED flashes fast. This is very strange

        Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

        T3P3Tonyundefined 1 Reply Last reply Reply Quote 0
        • T3P3Tonyundefined
          T3P3Tony administrators @jay_s_uk
          last edited by

          @jay_s_uk said in 3.2 3HC Bootloader update - No diag led:

          If i connect to the SWD header, as soon as the board is powered on, the diag LED flashes fast. This is very strange

          Hi Jay, what are connecting to the SWD header?

          www.duet3d.com

          jay_s_ukundefined 1 Reply Last reply Reply Quote 0
          • jay_s_ukundefined
            jay_s_uk @T3P3Tony
            last edited by

            @T3P3Tony an ST link. Waiting on a "blue pill" to come so I can hopefully connect to the board properly.

            Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

            jay_s_ukundefined 1 Reply Last reply Reply Quote 0
            • jay_s_ukundefined
              jay_s_uk @jay_s_uk
              last edited by

              But even with just 3.3v and ground attached the diag LED flashes.
              With VIN attached, all 4 lights are on but not the diag LED

              Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

              1 Reply Last reply Reply Quote 0
              • jay_s_ukundefined
                jay_s_uk
                last edited by jay_s_uk

                I have a connection between a raspberry pi 4 and the 3HC using openocd
                Just setting up the config file.
                Does anyone know if this is correct?

                init
                targets
                reset halt
                atsame5 bootloader 0
                flash erase_sector 0 0 last
                reset halt
                flash write_image Duet3Bootloader-SAME5x.bin verify
                atsame5 bootloader 16384
                reset
                shutdown
                

                Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                1 Reply Last reply Reply Quote 0
                • dc42undefined
                  dc42 administrators
                  last edited by dc42

                  The bootloader is normally protected, so you will probably need to remove the bootloader protection first. This is in the NVRAM calibration area, see section 9.3 of the SAMC21 datasheet. Caution, do not change any other values in that area.

                  Duet WiFi hardware designer and firmware engineer
                  Please do not ask me for Duet support via PM or email, use the forum
                  http://www.escher3d.com, https://miscsolutions.wordpress.com

                  1 Reply Last reply Reply Quote 0
                  • jay_s_ukundefined
                    jay_s_uk
                    last edited by

                    I can read the userspace but I've no idea what bit I should be changing or what I should be changing it to.

                    Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                    jay_s_ukundefined 1 Reply Last reply Reply Quote 0
                    • jay_s_ukundefined
                      jay_s_uk @jay_s_uk
                      last edited by

                      @dc42 which is the best version of the bootloader to try and flash?
                      It was the 2.1 bootloader I installed over CAN that caused the board to be none responsive.
                      Any ideas why it would've happened if its supposed to check itself?
                      I did try and build the latest version but the build failed.

                      Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                      1 Reply Last reply Reply Quote 0
                      • dc42undefined
                        dc42 administrators
                        last edited by dc42

                        Bootloader 2.1 is the latest and is working on all my boards. There are different builds for the SAME5x (i.e. EXP3HC) and SAMC21 (tool board and 1XD).

                        Were you running in SBC mode or standalone mode when you tried to update the bootloader?

                        Duet WiFi hardware designer and firmware engineer
                        Please do not ask me for Duet support via PM or email, use the forum
                        http://www.escher3d.com, https://miscsolutions.wordpress.com

                        1 Reply Last reply Reply Quote 0
                        • jay_s_ukundefined
                          jay_s_uk
                          last edited by

                          I was running in standalone and installed version 2.1 of Duet3Bootloader-SAME5x.bin

                          Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                          1 Reply Last reply Reply Quote 0
                          • dc42undefined
                            dc42 administrators
                            last edited by

                            Thanks. I am about to test downgrading and upgrading the bootloader on a 3HC again.

                            Duet WiFi hardware designer and firmware engineer
                            Please do not ask me for Duet support via PM or email, use the forum
                            http://www.escher3d.com, https://miscsolutions.wordpress.com

                            1 Reply Last reply Reply Quote 1
                            • jay_s_ukundefined
                              jay_s_uk
                              last edited by

                              my stlinks have come so hopefully a little later i'll be able to use the atmel studio software to make life a little easier

                              Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                              1 Reply Last reply Reply Quote 0
                              • dc42undefined
                                dc42 administrators
                                last edited by

                                Downgrading the bootloader over CAN doesn't work, I believe because bootloader versions prior to 2.0 don't have the right CRC. So the firmware refuses to erase the old bootloader and install the new one.

                                Duet WiFi hardware designer and firmware engineer
                                Please do not ask me for Duet support via PM or email, use the forum
                                http://www.escher3d.com, https://miscsolutions.wordpress.com

                                jay_s_ukundefined 1 Reply Last reply Reply Quote 0
                                • jay_s_ukundefined
                                  jay_s_uk @dc42
                                  last edited by

                                  @dc42 hmmm, I had whatever bootloader came with the original 3HC and have never updated it prior to this.
                                  Maybe thats the issue?

                                  Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                                  1 Reply Last reply Reply Quote 0
                                  • dc42undefined
                                    dc42 administrators
                                    last edited by dc42

                                    I just flashed the very first bootloader release on to the EXP3HC using the ICE, booted up, and verified that the bootloader version was "not available" in M122 B1. Then upgraded successfully to 2.1 over CAN.

                                    So I don't know why your bootloader upgrade failed.

                                    Duet WiFi hardware designer and firmware engineer
                                    Please do not ask me for Duet support via PM or email, use the forum
                                    http://www.escher3d.com, https://miscsolutions.wordpress.com

                                    jay_s_ukundefined 1 Reply Last reply Reply Quote 0
                                    • jay_s_ukundefined
                                      jay_s_uk
                                      last edited by

                                      ok, thanks
                                      might be back with questions later if I can't get the flashing to work

                                      Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                                      1 Reply Last reply Reply Quote 0
                                      • jay_s_ukundefined
                                        jay_s_uk @dc42
                                        last edited by

                                        @dc42 would you entertain the idea of me sending you my 3HC for reprogramming? I'm in the UK and would recover the return postage etc

                                        Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                                        1 Reply Last reply Reply Quote 0
                                        • jay_s_ukundefined
                                          jay_s_uk
                                          last edited by

                                          @dc42 am i ok to post my 3HC off to you tomorrow? I'm unable to program it here

                                          Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                                          dc42undefined 1 Reply Last reply Reply Quote 0
                                          • dc42undefined
                                            dc42 administrators @jay_s_uk
                                            last edited by

                                            @jay_s_uk said in 3.2 3HC Bootloader update - No diag led:

                                            @dc42 am i ok to post my 3HC off to you tomorrow? I'm unable to program it here

                                            Yes, that's fine. I'll email you my address.

                                            Duet WiFi hardware designer and firmware engineer
                                            Please do not ask me for Duet support via PM or email, use the forum
                                            http://www.escher3d.com, https://miscsolutions.wordpress.com

                                            1 Reply Last reply Reply Quote 1
                                            • First post
                                              Last post
                                            Unless otherwise noted, all forum content is licensed under CC-BY-SA