Skip to content
Snippets Groups Projects
  1. Aug 07, 2023
  2. Aug 06, 2023
  3. Aug 05, 2023
  4. Aug 04, 2023
    • q3k's avatar
      mpy: prevent garbage collection from closing stdin · 6843de89
      q3k authored
      Somwhere in Micropython there's a `<io.TextIOWrapper 0>` from
      vfs_posix_file that's getting garbage collected and which in turn
      triggers the object's __del__ which then in turn attempt to close FD 0.
      
      Let's not allow that to happen by adding some ugly hardcoded deny list
      for FD 0,1,2 in the close function.
      
      Ideally, we would figure out why that object exists, why it gets garbage
      collect and what really should happen here. But this is good enough.
      6843de89
  5. Aug 03, 2023
  6. Jul 30, 2023
  7. Jul 29, 2023
    • q3k's avatar
      st3m: move some main-specific stuff to main · 7629bb69
      q3k authored
      We attempt to share st3m with the recovery firmware, and thus must
      eliminate two components that can't live in the recovery firmware:
      
      1. The startup function, which contains references to all matters of
         subfunctionality we don't want (audio, micropython, etc)
      2. The FS code, which contains references to the tarball extraction
         logic (which we don't want to embed into recovery mode either).
      7629bb69
  8. Jul 28, 2023
  9. Jul 20, 2023
  10. Jul 17, 2023
    • q3k's avatar
      st3m: implement modality · 5deb8bc6
      q3k authored
      This change makes st3m aware of what Micropython is doing, and lets st3m
      provide some 'failsafe' functionality even if Micropython crashes.
      
      Most notably, this lets us draw some useful messages when the badge is
      in REPL mode, and lets us implement things like restarting the badge via
      buttons if that happens.
      
      This API isn't fully used yet, but this is a start.
      5deb8bc6
    • q3k's avatar
      st3m: implement console · ad490eb8
      q3k authored
      This moves our console implementation over to a CDC-ACM based one,
      instead of using UART/JTAG.
      
      This allows us to run multiple USB modes, and have prettier USB device
      strings :).
      
      The downside is that you now have to boot the badge into bootrom serial
      mode before being able to reflash, but I have An Idea On How To Fix This
      (tm).
      ad490eb8
    • q3k's avatar
      micropython: limit access to safe GPIOs · 4cb1332b
      q3k authored
      Hacking on things is fun, but accidentally doing machine.Pin(1337).on()
      and frying your flow3r isn't. Especially if you're just copypasting code
      from the Internet.
      
      We might add some escape hatch for this later for board
      experimentation/testing/debugging..?
      4cb1332b
  11. Jul 03, 2023
  12. Jun 26, 2023
  13. Jun 21, 2023
  14. Jun 18, 2023
Loading