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

Search:

Type: Posts; User: tannewt

Search: Search took 0.00 seconds.

  1. Replies
    113
    Views
    17,245

    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. :-)
  2. Replies
    113
    Views
    17,245

    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...
  3. Replies
    113
    Views
    17,245

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

    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,...
  5. Replies
    4
    Views
    393

    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!
  6. Replies
    113
    Views
    17,245

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

    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.
  8. Replies
    16
    Views
    1,246

    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.
  9. Replies
    113
    Views
    17,245

    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...
  10. Replies
    16
    Views
    1,246

    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.
  11. Replies
    113
    Views
    17,245

    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/
  12. Replies
    797
    Views
    49,664

    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.
  13. Replies
    797
    Views
    49,664

    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.
  14. Replies
    797
    Views
    49,664

    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...
  15. Replies
    797
    Views
    49,664

    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:...
  16. Replies
    797
    Views
    49,664

    Perfect! That will get me going.

    Perfect! That will get me going.
  17. Replies
    797
    Views
    49,664

    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!
  18. Replies
    113
    Views
    17,245

    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...
  19. Replies
    16
    Views
    1,246

    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.
  20. Replies
    797
    Views
    49,664

    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
  21. Replies
    113
    Views
    17,245

    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.
  22. Replies
    113
    Views
    17,245

    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.
  23. Replies
    113
    Views
    17,245

    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.
  24. Replies
    113
    Views
    17,245

    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...
  25. Replies
    113
    Views
    17,245

    @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...
  26. Replies
    113
    Views
    17,245

    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...
  27. Replies
    113
    Views
    17,245

    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
  28. Replies
    113
    Views
    17,245

    Correct. Here is a preview:...

    Correct. Here is a preview: https://twitter.com/adafruit/status/1221182041267560449
  29. Replies
    113
    Views
    17,245

    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...
  30. Replies
    113
    Views
    17,245

    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...
  31. Replies
    113
    Views
    17,245

    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...
  32. Replies
    113
    Views
    17,245

    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...
  33. Replies
    113
    Views
    17,245

    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.
  34. Replies
    113
    Views
    17,245

    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...
  35. Replies
    113
    Views
    17,245

    Everything on your CIRCUITPY drive.

    Everything on your CIRCUITPY drive.
  36. Replies
    113
    Views
    17,245

    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...
  37. Replies
    113
    Views
    17,245

    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
  38. Replies
    113
    Views
    17,245

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

    Try the submodule update again. I pushed the commit it was looking for.
  39. Replies
    113
    Views
    17,245

    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
  40. Replies
    113
    Views
    17,245

    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...
  41. Replies
    113
    Views
    17,245

    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:...
  42. Replies
    113
    Views
    17,245

    Thank you!

    Thank you!
  43. Replies
    113
    Views
    17,245

    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...
  44. Replies
    113
    Views
    17,245

    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:...
  45. Replies
    113
    Views
    17,245

    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...
  46. Replies
    113
    Views
    17,245

    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...
  47. Replies
    9
    Views
    1,922

    Will do! Thanks!

    Will do! Thanks!
  48. Replies
    9
    Views
    1,922

    Hi all, I'm glad you are excited for...

    Hi all, I'm glad you are excited for CircuitPython on the Teensy 4! I'm the project lead for CircuitPython and just started another thread with lots of info. I'll keep an eye out to answer questions...
  49. Replies
    113
    Views
    17,245

    CircuitPython on Teensy 4!

    Thanks to @arturo182's work on the iMX RT series in Python, we can now easily support Teensy 4!

    There are many issues still to work out but a bunch of stuff does work. Check the GitHub label for...
Results 1 to 49 of 49