Skip to content
  • Hjem
  • Seneste
  • Etiketter
  • Populære
  • Verden
  • Bruger
  • Grupper
Temaer
  • 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
Kollaps
FARVEL BIG TECH
  1. Forside
  2. Ikke-kategoriseret
  3. So I have this one small Arduino task for perform in a project at work & I've received som rudimentary instructions but the task is simple & I'm pretty sure I can do it...

So I have this one small Arduino task for perform in a project at work & I've received som rudimentary instructions but the task is simple & I'm pretty sure I can do it...

Planlagt Fastgjort Låst Flyttet Ikke-kategoriseret
arduino
15 Indlæg 4 Posters 48 Visninger
  • Ældste til nyeste
  • Nyeste til ældste
  • Most Votes
Svar
  • Svar som emne
Login for at svare
Denne tråd er blevet slettet. Kun brugere med emne behandlings privilegier kan se den.
  • fastness@mastodon.socialF fastness@mastodon.social

    @jwcph I am not an expert in anything to do with this kind of thing so there may be much better ways to do this but I tend to save a new version of the code (with something like 001, 002, 003 etc at the end) in the Arduino IDE each time I upload to the board so I know I haven't lost what I was doing

    Once I'm done I zip everything but the last one

    I don't think that there's any way to keep history in the Arduino IDE so this is the best option I've found

    jwcph@helvede.netJ This user is from outside of this forum
    jwcph@helvede.netJ This user is from outside of this forum
    jwcph@helvede.net
    wrote sidst redigeret af
    #5

    @fastness I know, this much I found out - but it does nothing to save the code already running on the device, or enable me to roll back to it if I messed up...

    niels@social.data.coopN 1 Reply Last reply
    0
    • jwcph@helvede.netJ jwcph@helvede.net

      @sean @fastness Yeah, but A. I'm on the clock & can't spend hours or days learning & B. I may never do another arduino project so a bit much...

      (this wasn't my decision, I had to pick up a project for a colleague who left)

      sean@mastodon.me.ukS This user is from outside of this forum
      sean@mastodon.me.ukS This user is from outside of this forum
      sean@mastodon.me.uk
      wrote sidst redigeret af
      #6

      @jwcph @fastness good luck

      I've been coding for over 40 years and I still spend hours or days learning and being puzzled.

      jwcph@helvede.netJ 1 Reply Last reply
      0
      • sean@mastodon.me.ukS sean@mastodon.me.uk

        @jwcph @fastness good luck

        I've been coding for over 40 years and I still spend hours or days learning and being puzzled.

        jwcph@helvede.netJ This user is from outside of this forum
        jwcph@helvede.netJ This user is from outside of this forum
        jwcph@helvede.net
        wrote sidst redigeret af
        #7

        @sean @fastness I just wish that there was a sliding scale between "tech for dummies" & "coder for life" - rather than an obligatory jump to the latter if you try to step outside the former... 😝

        sean@mastodon.me.ukS 1 Reply Last reply
        0
        • jwcph@helvede.netJ jwcph@helvede.net

          @sean @fastness I just wish that there was a sliding scale between "tech for dummies" & "coder for life" - rather than an obligatory jump to the latter if you try to step outside the former... 😝

          sean@mastodon.me.ukS This user is from outside of this forum
          sean@mastodon.me.ukS This user is from outside of this forum
          sean@mastodon.me.uk
          wrote sidst redigeret af
          #8

          @jwcph @fastness

          I don't think coding "for dummies" is a thing

          Plenty of snake oil merchants though

          jwcph@helvede.netJ 1 Reply Last reply
          0
          • sean@mastodon.me.ukS sean@mastodon.me.uk

            @jwcph @fastness

            I don't think coding "for dummies" is a thing

            Plenty of snake oil merchants though

            jwcph@helvede.netJ This user is from outside of this forum
            jwcph@helvede.netJ This user is from outside of this forum
            jwcph@helvede.net
            wrote sidst redigeret af
            #9

            @sean @fastness Note that I said "Tech for dummies", not code - i.e. consumer grade apps, services etc. Tons of that around but step outside that playpen even a little & it's basically "go write your own software and/or become a sysadmin"... 😁

            1 Reply Last reply
            0
            • jwcph@helvede.netJ jwcph@helvede.net

              @fastness I know, this much I found out - but it does nothing to save the code already running on the device, or enable me to roll back to it if I messed up...

              niels@social.data.coopN This user is from outside of this forum
              niels@social.data.coopN This user is from outside of this forum
              niels@social.data.coop
              wrote sidst redigeret af
              #10

              @jwcph
              I've been playing with Arduino/esp32 a little bit, but I've never heard of a way to get the binary code off a device. Might exist, but also might not, it's not a common use case.

              Depending on circumstances, can you put your code on a replica device that you switch in when you've got it doing what you want?

              @fastness

              jwcph@helvede.netJ 1 Reply Last reply
              0
              • niels@social.data.coopN niels@social.data.coop

                @jwcph
                I've been playing with Arduino/esp32 a little bit, but I've never heard of a way to get the binary code off a device. Might exist, but also might not, it's not a common use case.

                Depending on circumstances, can you put your code on a replica device that you switch in when you've got it doing what you want?

                @fastness

                jwcph@helvede.netJ This user is from outside of this forum
                jwcph@helvede.netJ This user is from outside of this forum
                jwcph@helvede.net
                wrote sidst redigeret af
                #11

                @niels @fastness No, I can't do that - I only have one device 🤷

                I want to challenge the "not a common use case" thing, though, because OF COURSE it is!

                Literally every single user, ever, would benefit, if only just from knowing that the option existed to back up & later restore previous work before overwriting it.

                niels@social.data.coopN 1 Reply Last reply
                0
                • jwcph@helvede.netJ jwcph@helvede.net

                  @niels @fastness No, I can't do that - I only have one device 🤷

                  I want to challenge the "not a common use case" thing, though, because OF COURSE it is!

                  Literally every single user, ever, would benefit, if only just from knowing that the option existed to back up & later restore previous work before overwriting it.

                  niels@social.data.coopN This user is from outside of this forum
                  niels@social.data.coopN This user is from outside of this forum
                  niels@social.data.coop
                  wrote sidst redigeret af
                  #12

                  @jwcph
                  First of all it's YOUR use case which is what matters here. Good luck with it!

                  Apart from that, many users have the source they're trying to modify, so I wouldn't say all users. I never felt like doing it, at least 😉
                  @fastness

                  jwcph@helvede.netJ 1 Reply Last reply
                  0
                  • niels@social.data.coopN niels@social.data.coop

                    @jwcph
                    First of all it's YOUR use case which is what matters here. Good luck with it!

                    Apart from that, many users have the source they're trying to modify, so I wouldn't say all users. I never felt like doing it, at least 😉
                    @fastness

                    jwcph@helvede.netJ This user is from outside of this forum
                    jwcph@helvede.netJ This user is from outside of this forum
                    jwcph@helvede.net
                    wrote sidst redigeret af
                    #13

                    @niels @fastness I would contend that not a single person writing text in the entire world would prefer NOT to have the "undo" option.

                    You say you don't like doing it - but you can't; the option isn't there. I don't know you, but I honestly doubt that if the option did exist, you wouldn't benefit from it at all. If so, then you're probably pretty unique 😊

                    It's like, I like seat belts in cars, too, even though I've thankfully never had my life saved by one.

                    niels@social.data.coopN 1 Reply Last reply
                    0
                    • jwcph@helvede.netJ jwcph@helvede.net

                      @niels @fastness I would contend that not a single person writing text in the entire world would prefer NOT to have the "undo" option.

                      You say you don't like doing it - but you can't; the option isn't there. I don't know you, but I honestly doubt that if the option did exist, you wouldn't benefit from it at all. If so, then you're probably pretty unique 😊

                      It's like, I like seat belts in cars, too, even though I've thankfully never had my life saved by one.

                      niels@social.data.coopN This user is from outside of this forum
                      niels@social.data.coopN This user is from outside of this forum
                      niels@social.data.coop
                      wrote sidst redigeret af
                      #14

                      @jwcph
                      I feel very unique 😆

                      Anyways, it seems like there are a few tools available, maybe they can work for you?

                      https://gra-afch.com/how-it-works/how-to-download-the-flash-memory-contents-sketch-from-an-arduino/

                      https://www.evilmadscientist.com/2011/avr-basics-reading-and-writing-flash-contents/

                      https://www.megunolink.com/documentation/program-device/download-arduino-program-eeprom/
                      @fastness

                      jwcph@helvede.netJ 1 Reply Last reply
                      0
                      • niels@social.data.coopN niels@social.data.coop

                        @jwcph
                        I feel very unique 😆

                        Anyways, it seems like there are a few tools available, maybe they can work for you?

                        https://gra-afch.com/how-it-works/how-to-download-the-flash-memory-contents-sketch-from-an-arduino/

                        https://www.evilmadscientist.com/2011/avr-basics-reading-and-writing-flash-contents/

                        https://www.megunolink.com/documentation/program-device/download-arduino-program-eeprom/
                        @fastness

                        jwcph@helvede.netJ This user is from outside of this forum
                        jwcph@helvede.netJ This user is from outside of this forum
                        jwcph@helvede.net
                        wrote sidst redigeret af
                        #15

                        @niels @fastness If I was doing this for my own sake, because I wanted to learn Arduino (which I might, at some point), I think those could be helpful, thanks 🙏

                        For this project, however, they're way "over budget" - I can easily see myself spending 1-2 days finding out & understanding how even one of these approaches work...

                        I guess I'll just have to gather up my courage & overwrite it 😬

                        1 Reply Last reply
                        0
                        Svar
                        • Svar som emne
                        Login for at svare
                        • Ældste til nyeste
                        • Nyeste til ældste
                        • Most Votes


                        • Log ind

                        • Har du ikke en konto? Tilmeld

                        • Login or register to search.
                        Powered by NodeBB Contributors
                        Graciously hosted by data.coop
                        • First post
                          Last post
                        0
                        • Hjem
                        • Seneste
                        • Etiketter
                        • Populære
                        • Verden
                        • Bruger
                        • Grupper