Search results

  1. S

    Error: Unable find Teensy Loader - Windows KB5127936 issue

    I'm going to add a comment without knowing whether it's relevant or not: when listening on a socket, would adding the SO_REUSEADDR flag help? (Shot in the dark.)
  2. S

    New lwIP-based Ethernet library for Teensy 4.1

    I can certainly look into adding an API for it when I have a chance.
  3. S

    Would everyone like USB-C on the Teensy 4.1?

    Just to make sure I'm understanding this, are you saying that the micro USB port can function as a host? I thought it was peripheral only.
  4. S

    New lwIP-based Ethernet library for Teensy 4.1

    Yup, that's the use-case I was looking for. Thanks.
  5. S

    New lwIP-based Ethernet library for Teensy 4.1

    I'm curious what types of memory you're reading into and how you handle partial reads into something that isn't an unsigned char, i.e. the element type is bigger? Wouldn't you need to cast anyway? Do you think you could give me a code example where using a read(void*) form would be easier?
  6. S

    New lwIP-based Ethernet library for Teensy 4.1

    There was a reason I added the void* output methods but not equivalent input methods. Now what was it again... maybe I just felt at the time that the semantic difference was important or something.
  7. S

    New lwIP-based Ethernet library for Teensy 4.1

    I've added this already (locally), however, I discovered an existing race condition during testing between peek, read, and the remote connection closing. Working on solving that and adding some tests for the condition. More details: There are cases where peeking gets data, but reading gets less...
  8. S

    Call to arms | Teensy + WiFi = true

    Sounds like it's now on par with the WiFi?
  9. S

    Call to arms | Teensy + WiFi = true

    I meant: Could you check the timing with that branch? I wasn't asking for a comprehensive test; just timing with the SimpleHTTPClient example. :) I want to see if some of the memory stuff and fixes I've been doing change your measurements.
  10. S

    Call to arms | Teensy + WiFi = true

    I'm also working on handling low-memory conditions more gracefully than "terminate" when std::vector can't allocate memory.
  11. S

    Call to arms | Teensy + WiFi = true

    @wwatson could you try out the branch I just pushed, for your wired Ethernet tests? `fix-memory-and-stuff` (39ff9dece4). It has some memory usage fixes and improvements (eg. churn) (along with some other fixes and improvements — see the Changelog). It's what will become the beginnings of v0.38.0.
  12. S

    Call to arms | Teensy + WiFi = true

    Remember that you're also testing traffic that goes through the Internet, so a high data rate isn't guaranteed. But yes, it is interesting how the Wi-Fi seems always double the speed of the wired ethernet, in your tests.
  13. S

    Call to arms | Teensy + WiFi = true

    A basic test: Setup: Teensy 4.1 plugged via Ethernet into a non-gateway eero node (I.e. the node is wireless) Versions: Teensyduino 1.62, QNEthernet 0.37.0 Result: Received 93090 bytes in 0.148662 s = ~5.01 Mbps
  14. S

    Call to arms | Teensy + WiFi = true

    Here's a Claude-generated table with Mbps: Connection Run Bytes Time (s) Throughput (Mbps) Ethernet 1 92,079 0.683 1.079 Ethernet 2 93,202 0.736 1.014 Ethernet 3 92,025 0.992 0.742 Ethernet avg 0.945 WiFi 1 91,949 0.329 2.236 WiFi 2 92,187 0.372 1.981 WiFi 3 92,376 0.362...
  15. S

    True is false.

    I've locked in my guess...
  16. S

    Call to arms | Teensy + WiFi = true

    I'll add: I'm working through some fixes and memory-related fixes and improvements, eg. to reduce churn. After that, I'll be diving into a WiFi driver, and then the multi-interface stuff.
  17. S

    Call to arms | Teensy + WiFi = true

    Once time frees up, my plan is to explore lwIP's support for multiple network interfaces.
  18. S

    Teensyduino 1.62 Released

    Maybe there's some custom things going on in @jmarsh's system, but I read it as "perhaps there's aggressive caching." I'll get the obvious question out of the way: have you tried deleting all its caches or custom settings directories? I wonder also if this will help: arduino-cli cache clean
  19. S

    New lwIP-based Ethernet library for Teensy 4.1

    Looks like it's out of stock.
  20. S

    New lwIP-based Ethernet library for Teensy 4.1

    Apparently I was thinking of something else... Scratch my comment. :) I'll have a look at initialization and hardware presence...
  21. S

    New lwIP-based Ethernet library for Teensy 4.1

    I've been keeping the no-driver-constants QNEthernet branch up to date to accommodate an unknown initial MAC address. Would you mind testing it with your code? (I don't have the hardware to play with.)
  22. S

    Teensyduino 1.62 Released

    It looks like the Makefiles have -DTEENSYDUINO=159.
  23. S

    New lwIP-based Ethernet library for Teensy 4.1

    I just released v0.37.0. Here's the Changelog: ## [0.37.0] ### Changed * Moved chrono utilities to the `qindesign::chrono` namespace. * Changed `MAIN_TEST_PROGRAM` to `QNETHERNET_MAIN_TEST_PROGRAM` to detect main program inclusion. * Now starting with MIB counters (RFC 2819) disabled. *...
  24. S

    Can Someone Please Clearly Explain how to map module outputs to other inputs and outputs using the xbar capability?

    Some hints with using these registers with the imxrt1060-regs library. Note that there's sometimes more than one way of doing something. Two clocks at once: CCM::group->CCGR2 |= CCM::CCGR2::XBAR2(CCM::CCGR::kOn) | CCM::XBAR1(CCM::CCGR::kOn); Individual clocks: CCM::CCGR2::XBAR2 =...
  25. S

    Can Someone Please Clearly Explain how to map module outputs to other inputs and outputs using the xbar capability?

    If you're interested in trying my new register library, I have all the XBAR stuff defined. I generally don't use imxrt.h anymore. https://github.com/ssilverman/imxrt1060-regs
  26. S

    Call to arms | Teensy + WiFi = true

    Probably a dropped packet or something.
  27. S

    Call to arms | Teensy + WiFi = true

    Do you see more than one "Sending SNTP request" message?
  28. S

    Call to arms | Teensy + WiFi = true

    New SNTPClient example code that retries if no response has been received yet: c16932680
  29. S

    Call to arms | Teensy + WiFi = true

    @wwatson @defragster For our next experiment, could you try these three things, and report results for each: 1. Update to latest QNEthernet library code (I just updated the UDP-based examples, SNTPClient, BroadcastChat, and OSCPrinter — 3a3b25446). I added a "UDP listen error: %d" message. See...
  30. S

    Call to arms | Teensy + WiFi = true

    @wwatson What happens when you use "pool.ntp.org" instead of the gateway? Do you still see the issue without the 10ms delay?
  31. S

    Call to arms | Teensy + WiFi = true

    @wwatson thanks for trying that out. Can you describe more fully what you mean by "the sketch still hangs". Does it actually freeze and then you see a crash? Or does it just appear to hang with no further output? Where exactly does it appear to hang?
  32. S

    Call to arms | Teensy + WiFi = true

    @wwatson @defragster I just pushed a couple of fixes (6ce1aa1c6). Could you check that DHCP works for you now?
  33. S

    Call to arms | Teensy + WiFi = true

    Thanks, @defragster. I haven't been able to reproduce this on my end yet. :/
  34. S

    Call to arms | Teensy + WiFi = true

    @wwatson noticed some difficulties getting a DHCP address with the latest QNEthernet from GitHub. Could a few other people get that version, try out the SNTPClient example, and see if you see the same DHCP problem?
  35. S

    Call to arms | Teensy + WiFi = true

    I'll probably start my end of the work on this, integrating into QNEthernet, mid-end of September.
  36. S

    A reimagining of hardware-based (DCP) crypto in C++: Decept

    Note that I still plan to: 1. Improve the API so multiple channels can be used 2. Add a way to use interrupts for notifications 3. Implement a non-blocking API
  37. S

    A new and more modern way to access and modify registers

    How to reset the system: SCB::AIRCR::keyed::SYSRESETREQ = 1
  38. S

    A new and more modern way to access and modify registers

    I added a way to guarantee certain bits always get set to 1 with the new `AssignSet` parameter. Some registers in ENET and CCM need this.
  39. S

    A new and more modern way to access and modify registers

    Note: I just updated I2S (remove non-existent fields from SAI2 and SAI3) and main.cpp (small ENET register use improvements).
  40. S

    Stack trace & heap available..

    malloc() uses RAM2, a 512 block. Yes, that freeram() function should work.
  41. S

    A new and more modern way to access and modify registers

    @joepasquariello I just pushed GPT, so all the timers should be there (TMR, PIT, GPT). @h4yn0nnym0u5e Here's how to implement that function using this API: bool initSAI(I2S_Layout* mySAI, SAImode_t mode) // mode is I2S, TDM, S/PDIF etc. { switch (mode) { case SAI_mode_I2S...
  42. S

    A new and more modern way to access and modify registers

    I'll just add a clarification: I'm designing it so that the user of the library doesn't need to use templates. More info about your SAI use case on the way...
  43. S

    A new and more modern way to access and modify registers

    Oh, I see what you mean now. Let me explore that.
  44. S

    A new and more modern way to access and modify registers

    I've got most of 'em in there already, including TMR and PIT. Adding a few more now, including GPT, PWM, PXP, and I2S.
  45. S

    A new and more modern way to access and modify registers

    Everything is passed as a template parameter and also inlined, that's why it compiles down to something equivalent to using masks and shifts directly. I believe my approach does allows different peripheral parts to have different bits. I'll throw in the SAI fields and commit that so you can see.
  46. S

    A new and more modern way to access and modify registers

    @h4yn0nnym0u5e do you feel like trying to use the library with any projects you have that use direct register access? It would be lovely for others to use it and give feedback. Also, which registers are still missing that you'd like to see? Note that the library is currently thin on provided...
  47. S

    Stack trace & heap available..

    Here's what I use for total free RAM. Maybe that can get you started. extern "C" void* _sbrk(int incr); // Returns the amount of free RAM. // See: https://forum.pjrc.com/threads/57269-I-can-t-seem-to-use-all-of-the-Teensy-4-0-s-memory // See...
Back
Top