Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: tannewt

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    117
    Views
    20,607

    Most development of CircuitPython is funded by...

    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...
  2. Replies
    117
    Views
    20,607

    Not much has happened recently. Most focus has...

    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...
  3. Replies
    172
    Views
    9,871

    Right now we only use one core. MicroPython does...

    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...
  4. Replies
    172
    Views
    9,871

    Each of the 8 PWM slices have two channels for...

    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...
  5. Replies
    117
    Views
    20,607

    Thank you! My guess is the slight perf hit to...

    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. :-)
  6. Replies
    117
    Views
    20,607

    Hi all, just wanted to mention I did a bit of...

    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...
  7. Replies
    117
    Views
    20,607

    CircuitPython does try to set them here:...

    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...
  8. Replies
    4
    Views
    501

    Generally, we add functionality at the module...

    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,...
  9. Replies
    4
    Views
    501

    Yup, this sounds like a bug that we haven't...

    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!
  10. Replies
    117
    Views
    20,607

    Hi! Thanks for the interest in CircuitPython....

    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...
  11. Replies
    16
    Views
    1,533

    I don't know the details myself. I'd suggest...

    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.
  12. Replies
    16
    Views
    1,533

    I think Thach did the BSPs as well. There isn't a...

    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.
  13. Replies
    117
    Views
    20,607

    The RAM space that `gc.mem_free` shows should be...

    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...
  14. Replies
    16
    Views
    1,533

    TinyUSB itself definitely works on Teensy 4.0 and...

    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.
  15. Replies
    117
    Views
    20,607

    CircuitPython 5.4.0 Beta 0 has Teensy 5.1...

    CircuitPython 5.4.0 Beta 0 has Teensy 5.1 support! https://circuitpython.org/board/teensy41/
  16. Replies
    800
    Views
    58,869

    Great! I just merged the PR and will release...

    Great! I just merged the PR and will release CircuitPython 5.4.0-beta.0 here shortly with support.
  17. Replies
    800
    Views
    58,869

    That should show up in the USB serial...

    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.
  18. Replies
    800
    Views
    58,869

    Awesome! Thank you so much. I edited the pin...

    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...
  19. Replies
    800
    Views
    58,869

    Anyone know if Loader 1.48 on mac should work? My...

    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:...
  20. Replies
    800
    Views
    58,869

    Perfect! That will get me going.

    Perfect! That will get me going.
  21. Replies
    800
    Views
    58,869

    Feels much snappier to me! Is the schematic...

    Feels much snappier to me!

    Is the schematic available yet? It's the easiest way for me to map the pins for CircuitPython. Thanks!
  22. Replies
    117
    Views
    20,607

    We haven't done much work on the iMX RT ports in...

    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...
  23. Replies
    16
    Views
    1,533

    I'd recommend filing an issue on the arduino...

    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.
  24. Replies
    800
    Views
    58,869

    Let me know when you'd like to add Teensy 4.1...

    Let me know when you'd like to add Teensy 4.1 support to CircuitPython. :-D
  25. Replies
    117
    Views
    20,607

    It shouldn't be too hard to add! I don't have a...

    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.
  26. Replies
    117
    Views
    20,607

    Yay! I'm glad it was easy and worked. I'm not...

    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.
  27. Replies
    117
    Views
    20,607

    Great! I've been meaning to try Rust on embedded...

    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.
  28. Replies
    117
    Views
    20,607

    Hi all! Just wanted to point out that...

    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...
  29. Replies
    117
    Views
    20,607

    @mjs513 Use the hex for now and make sure to back...

    @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...
  30. Replies
    117
    Views
    20,607

    Hi all! I just wanted to drop by with a link to...

    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...
  31. Replies
    117
    Views
    20,607

    Very cool! It looks like we always use float...

    Very cool! It looks like we always use float internally as well: https://github.com/adafruit/circuitpython/blob/master/py/circuitpy_mpconfig.h#L69
  32. Replies
    117
    Views
    20,607

    Correct. Here is a preview:...

    Correct. Here is a preview: https://twitter.com/adafruit/status/1221182041267560449
  33. Replies
    117
    Views
    20,607

    Whoa! Those numbers do look better! It'd be great...

    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...
  34. Replies
    117
    Views
    20,607

    Thanks for testing it out! I've merged that PR in...

    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...
  35. Replies
    117
    Views
    20,607

    Interesting! What does...

    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...
  36. Replies
    117
    Views
    20,607

    It's not my intent to hack the Teensy Bootloader...

    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...
  37. Replies
    117
    Views
    20,607

    Thanks Paul! We'll make a UF2 bootloader...

    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.
  38. Replies
    117
    Views
    20,607

    Thanks for testing with the latest hex! I've...

    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...
  39. Replies
    117
    Views
    20,607

    Everything on your CIRCUITPY drive.

    Everything on your CIRCUITPY drive.
  40. Replies
    117
    Views
    20,607

    Hi all! I wanted to post an update. I spent all...

    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...
  41. Replies
    117
    Views
    20,607

    Not yet, no. I've heard interest before and...

    Not yet, no. I've heard interest before and started an issue for it here: https://github.com/adafruit/circuitpython/issues/2527
  42. Replies
    117
    Views
    20,607

    Try the submodule update again. I pushed the...

    Try the submodule update again. I pushed the commit it was looking for.
  43. Replies
    117
    Views
    20,607

    Try now. :-) I had a local commit of the SDK. We...

    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
  44. Replies
    117
    Views
    20,607

    I'm not sure the tip of my branch builds atm. I'm...

    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...
  45. Replies
    117
    Views
    20,607

    Glad it worked well! Sounds like you found the...

    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:...
  46. Replies
    117
    Views
    20,607

    Thank you!

    Thank you!
  47. Replies
    117
    Views
    20,607

    The delay could be more accurate but we run...

    The delay could be more accurate but we run "background" stuff between Python byte codes. We may do mass storage writes, for example, that will mess up any precision timing. So, it's best to not rely...
  48. Replies
    117
    Views
    20,607

    Interesting! We do a float to int conversion...

    Interesting! We do a float to int conversion here: https://github.com/adafruit/circuitpython/blob/master/shared-bindings/time/__init__.c#L80

    I bet that is the issue. Please file an issue here:...
  49. Replies
    117
    Views
    20,607

    Weird! I would expect it to be slower than 100Hz...

    Weird! I would expect it to be slower than 100Hz because time.sleep() should be pessimistic. For timing sensitive functions we usually use the peripherals via C code instead. For example, PWM will be...
  50. Replies
    117
    Views
    20,607

    No, this version doesn't account for the 4k...

    No, this version doesn't account for the 4k block. It's probably not an issue though because FAT likely won't use it until it's filled up. I'll keep working on the linker scripts for it tomorrow and...
Results 1 to 50 of 53
Page 1 of 2 1 2