Search results

  1. T

    Setting clock frequency in CircuitPython

    mjs513 has added settable clock frequency to CircuitPython for Teensy 4.x: https://github.com/adafruit/circuitpython/pull/6279
  2. T

    CircuitPython on Teensy 4!

    Also, for those following the discussion about changing the clock speed. The functionality was merged into CircuitPython main: https://github.com/adafruit/circuitpython/pull/6279
  3. T

    CircuitPython on Teensy 4!

    To be clear, CircuitPython has integrated changes from MicroPython since the original fork. We are currently up to date with the latest release, 1.18. This means the Python VM is almost identical between the two. This doesn't impact iMX port specific stuff though because our iMX ports were...
  4. T

    Raspberry Pi Pico

    Yup! I think the example is here: https://github.com/raspberrypi/pico-extras/
  5. T

    Raspberry Pi Pico

    CircuitPython on the Pico can do I2S. That may be enough for the Teensy Audio board.
  6. T

    CircuitPython on Teensy 4!

    Most development of CircuitPython is funded by Adafruit. (I'm paid full-time to work on CircuitPython for them. A couple others are paid as well.) That means we focus on adding support for Adafruit boards and many of them have the SAMD21. Adafruit doesn't currently make any iMX RT boards so they...
  7. T

    CircuitPython on Teensy 4!

    Not much has happened recently. Most focus has been on the ESP32-S2 and RP2040. We (Adafruit) do have a design of a metro with an iMX RT on it so we'll be revisiting iMX RT support when that launches. We'll at least make sure what we have now is solid. It's hard to know what additional work will...
  8. T

    Raspberry Pi Pico

    Right now we only use one core. MicroPython does allow both through the thread api I think. I’m thinking about treating the second core more like a pio state machine. Plenty to do before we use the second core.
  9. T

    Raspberry Pi Pico

    Each of the 8 PWM slices have two channels for output. They share a divisor so they'll share frequency but have separate compare registers. So, 16 is fair I think. I've had a couple RP2040s for a month or so and we have preliminary CircuitPython support (merged today!) You can get it here...
  10. T

    CircuitPython on Teensy 4!

    Thank you! My guess is the slight perf hit to OCRAM will cause any test that uses the heap to be a bit slower than the hacked version. This version works with USB though. :-)
  11. T

    CircuitPython on Teensy 4!

    Hi all, just wanted to mention I did a bit of work on the iMX RT in CircuitPython. In particular, I reworked how flash is configured (we now share config with the bootrom) and I enabled the DCache (but turning off OCRAM caching). These changes are in the latest unstable release, 6.0.0 Release...
  12. T

    CircuitPython on Teensy 4!

    CircuitPython does try to set them here: https://github.com/adafruit/circuitpython/blob/main/ports/mimxrt10xx/supervisor/port.c#L119 The setup is primarily for the 1011 so we may want to tweak it for the larger chips.
  13. T

    Teensy 4.1 PWM on D13 Invalid

    Generally, we add functionality at the module boundary and the circuitpython.org page lists the available modules under the version: https://circuitpython.org/board/teensy40/ Unfortunately, `analogio` is in an in-between state because AnalogIn is implemented but AnalogOut isn't. The best way to...
  14. T

    Teensy 4.1 PWM on D13 Invalid

    Yup, this sounds like a bug that we haven't implemented QuadTimer support. Would you mind filing an issue here? https://github.com/adafruit/circuitpython/issues/new Thanks!
  15. T

    CircuitPython on Teensy 4!

    Hi! Thanks for the interest in CircuitPython. I've answered each of your questions below. I also want to remind folks that Teensy support isn't a focus for Adafruit folks who work on CircuitPython. The features we add for the iMX RT benefit Teensy but aren't driven by the goal of supporting...
  16. T

    Adafruit's TinyUSB with Teensy 4.0

    I don't know the details myself. I'd suggest looking at the other similar boards that are supported in the folder Thach pointed to.
  17. T

    Adafruit's TinyUSB with Teensy 4.0

    I think Thach did the BSPs as well. There isn't a team of people. He was pointing out why it didn't work and what would need to be added.
  18. T

    CircuitPython on Teensy 4!

    The RAM space that `gc.mem_free` shows should be the same on both Teensy 4.0 and 4.1 because it is the same microcontroller. Writing is greatly slowed by flash erase times. Reminding you of BASIC is a complement. Many people got their start programming with BASIC and that's the goal with...
  19. T

    Adafruit's TinyUSB with Teensy 4.0

    TinyUSB itself definitely works on Teensy 4.0 and 4.1 because we use it in CircuitPython. It's the Arduino integration that I don't know about. Thach should be able to help with it though.
  20. T

    CircuitPython on Teensy 4!

    CircuitPython 5.4.0 Beta 0 has Teensy 5.1 support! https://circuitpython.org/board/teensy41/
  21. T

    Teensy 4.1 Beta Test

    Great! I just merged the PR and will release CircuitPython 5.4.0-beta.0 here shortly with support.
  22. T

    Teensy 4.1 Beta Test

    That should show up in the USB serial automatically unless you are in the REPL with the >>> prompt. You can do ctrl-d to get out of the REPL and back to auto-running code.py on save.
  23. T

    Teensy 4.1 Beta Test

    Awesome! Thank you so much. I edited the pin mapping as well but it can be fixed later. I mainly just wanted to verify that the flash chip works which you are verifying that CIRCUITPY shows up. Will move forward with checking it in. Everything else should just work the same as Teensy 4.0.
  24. T

    Teensy 4.1 Beta Test

    Anyone know if Loader 1.48 on mac should work? My beta board isn't being detected. I've made a PR to add the Teensy 4.1 board to CircuitPython here: https://github.com/adafruit/circuitpython/pull/2883 If someone has time to verify it works ok, that'd be awesome.
  25. T

    Teensy 4.1 Beta Test

    Perfect! That will get me going.
  26. T

    Teensy 4.1 Beta Test

    Feels much snappier to me! Is the schematic available yet? It's the easiest way for me to map the pins for CircuitPython. Thanks!
  27. T

    CircuitPython on Teensy 4!

    We haven't done much work on the iMX RT ports in a while. Lucian is starting to work more on it this week though so we should see stuff mature. We've also updated the version of TinyUSB we use so it's possible that we can turn the DCache back on. Thanks for checking in on the performance!
  28. T

    Adafruit's TinyUSB with Teensy 4.0

    I'd recommend filing an issue on the arduino TinyUSB library repo. I bet Thach would be happy to help get it working on Teensy.
  29. T

    Teensy 4.1 Beta Test

    Let me know when you'd like to add Teensy 4.1 support to CircuitPython. :-D
  30. T

    CircuitPython on Teensy 4!

    It shouldn't be too hard to add! I don't have a 4.1 myself but I'd be happy review a PR to add it.
  31. T

    CircuitPython on Teensy 4!

    Yay! I'm glad it was easy and worked. I'm not sure why the micro:bit doesn't appear as a drive. The max power could definitely be the issue. I'm not the one who looked into that.
  32. T

    CircuitPython on Teensy 4!

    Great! I've been meaning to try Rust on embedded as well! Let me know if you find any good tutorials. I'm also happy to help with any Python questions you have.
  33. T

    CircuitPython on Teensy 4!

    Hi all! Just wanted to point out that CircuitPython 5.0.0 is out with Teensy 4.0 support. While the whole release is marked stable, I think the port is more in a beta state. What is there works pretty well but some APIs may not be implemented. Downloads are available here...
  34. T

    CircuitPython on Teensy 4!

    @mjs513 Use the hex for now and make sure to back up your files since the TeensyLoader erases the whole flash. I'll follow up here once we have a UF2 bootloader to try. (I've still got to figure out if we can trigger it easily too.)
  35. T

    CircuitPython on Teensy 4!

    Hi all! I just wanted to drop by with a link to the circuitpython.org page for Teensy 4.0: https://circuitpython.org/board/teensy40/ Teensy 4.0 is included in the latest unstable release 5.0.0-beta.5. It will be included in the 5.0.0 stable release but the port will still be considered alpha...
  36. T

    CircuitPython on Teensy 4!

    Very cool! It looks like we always use float internally as well: https://github.com/adafruit/circuitpython/blob/master/py/circuitpy_mpconfig.h#L69
  37. T

    CircuitPython on Teensy 4!

    Correct. Here is a preview: https://twitter.com/adafruit/status/1221182041267560449
  38. T

    CircuitPython on Teensy 4!

    Whoa! Those numbers do look better! It'd be great to hunt down the TinyUSB bug so we can leave it on. My PR adds basic support for the ITCM and the DTCM. I allocate 32k to each. Our first board will be the 1010 so I wanted to focus on that limited amount first. I tried to move all of the core...
  39. T

    CircuitPython on Teensy 4!

    Thanks for testing it out! I've merged that PR in so any changes can go on the master adafruit branch now. It does have the DCache disabled so we could get a bit of a speed boost from turning it back on. The build isn't using link time optimization yet either which should be able to speed things...
  40. T

    CircuitPython on Teensy 4!

    Interesting! What does `dir(pystone_lowmem_monotonic)` show? That will list all names within the module. There are no newer changes. This port isn't my top priority currently. (My top priority is fixing bugs for 5.0.0 stable and making sure Bluetooth on the nRF52840 is solid.) The syntax error...
  41. T

    CircuitPython on Teensy 4!

    It's not my intent to hack the Teensy Bootloader at all. My intention would be to provide another bootloader alongside CircuitPython. How to enter the bootloader may be an issue though. Does the button on Teensy reset the main chip every press? We usually recognize a double reset as meant to...
  42. T

    CircuitPython on Teensy 4!

    Thanks Paul! We'll make a UF2 bootloader available that will run after the TeensyLoader and make it easier to load just the CircuitPython part of flash.
  43. T

    CircuitPython on Teensy 4!

    Thanks for testing with the latest hex! I've gotta spend time on other things this week so I think I'll disable the DCache for now which is my guess at the USB problem. I've opened an issue to fix it later here: https://github.com/adafruit/circuitpython/issues/2537 Cool cool. :-) Most of the...
  44. T

    CircuitPython on Teensy 4!

    Everything on your CIRCUITPY drive.
  45. T

    CircuitPython on Teensy 4!

    Hi all! I wanted to post an update. I spent all week heads down on rejiggering CircuitPython to take advantage of the TCM and caches better. It looks to be a 10ish times speedup for a very simple Python program. I've opened a pull request for Teensy 4.0 support here...
  46. T

    CircuitPython on Teensy 4!

    Not yet, no. I've heard interest before and started an issue for it here: https://github.com/adafruit/circuitpython/issues/2527
  47. T

    CircuitPython on Teensy 4!

    Try the submodule update again. I pushed the commit it was looking for.
  48. T

    CircuitPython on Teensy 4!

    Try now. :-) I had a local commit of the SDK. We can also chat on Discord too if my response time is too slow. Link to join is https://adafru.it/discord
  49. T

    CircuitPython on Teensy 4!

    I'm not sure the tip of my branch builds atm. I'm reworking the linking right now. That error sounds like the TinyUSB submodule isn't updated fully. Make sure to `git submodule sync` and `git submodule update --init .` when switching branches.
  50. T

    CircuitPython on Teensy 4!

    Glad it worked well! Sounds like you found the right place. We already provide microcontroller.cpu.frequency as a read-only value. (The API is here: https://github.com/adafruit/circuitpython/blob/master/shared-bindings/microcontroller/Processor.c#L57 ) It'd be awesome to make it writable. Then...
Back
Top