1. 01 Dec, 2020 3 commits
    • Juan David González Cobas's avatar
      be427961
    • Juan David González Cobas's avatar
      make load target more robust · 05b4a4fd
      Juan David González Cobas authored
      Two safety nets are added here:
      
        * PYTHON variable that can be set to the interpreter path (defaults to
          "python3"), so that the system default can be overriden
        * the PORT arg to usb-bootloader.py is passed as an empty string if
          unset, to produce an explicit error
      05b4a4fd
    • Juan David González Cobas's avatar
      use bytes (integers) all along · c117db54
      Juan David González Cobas authored
      Dealing with mixed integers and strings (or bytes() when pyserial
      decides to do so) is a PITA that plagues all the code with ord()
      conversions and makes it error-prone and hard to debug. It is even more
      so if the python version (2.7 or 3.x) is not known in advance.
      
      To play safe
          - the firmware file is converted at read time into a bytearray,
            which is what it is
          - all data flow that is supposed to come from/to the serial line is
            cast into integer values as soon/later as possible; given that
            pyserial gives back str/bytes somehow at will, ord() calls at the
            .recv() method level are the safest way to ensure we get-a-byte,
            get-a-byte, get-a-byte, byte, byte.
      c117db54
  2. 26 Nov, 2020 6 commits
  3. 24 Nov, 2020 3 commits
  4. 18 Nov, 2020 6 commits
  5. 13 Nov, 2020 1 commit
  6. 30 Oct, 2020 1 commit
  7. 28 Oct, 2020 1 commit
  8. 27 Oct, 2020 3 commits
  9. 16 Oct, 2020 3 commits
  10. 14 Oct, 2020 13 commits