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

Search:

Type: Posts; User: joepasquariello

Page 1 of 4 1 2 3 4

Search: Search took 0.00 seconds.

  1. Replies
    14
    Views
    1,081

    In FreqCount.cpp, for IMXRT1062, there is no...

    In FreqCount.cpp, for IMXRT1062, there is no implementation of function end().
  2. I had seen the same thing in a test and couldn't...

    I had seen the same thing in a test and couldn't understand it. Thanks for investigating.
  3. Replies
    98
    Views
    6,902

    Or just use "Save as" to keep an archive of...

    Or just use "Save as" to keep an archive of TeensyDuino versions. The renamed installation EXE files work just fine.
  4. Looks interesting, will try it when I get a...

    Looks interesting, will try it when I get a chance. Curious why/how it uses microsecond timing?

    https://github.com/xxxajk/fbcon
  5. @luni, good to know! I tried a similar test, but...

    @luni, good to know! I tried a similar test, but without std::nothrow, and found that S2 was never NULL.
  6. For platforms other than Teensy, I sometimes use...

    For platforms other than Teensy, I sometimes use an intermediate policy of using malloc() to do one-time allocations of variables that exist "forever", such as communication buffers, but never use...
  7. Replies
    34
    Views
    838

    Sticky: Installed 1.8.16/1.55 on Win7 64-bit. All okay.

    Installed 1.8.16/1.55 on Win7 64-bit. All okay.
  8. Replies
    972
    Views
    44,744

    @SteveBar, go to the doc pages for the Teensy...

    @SteveBar, go to the doc pages for the Teensy Micromod Processor Board (link below) for a table that cross-references Teensy pins with the Micromod connector pins. The carrier board doc pages don't...
  9. Replies
    6
    Views
    281

    I highly recommend Paul's FreqMeasureMulti...

    I highly recommend Paul's FreqMeasureMulti library, which is in TeensyDuino. The example named Three_PWM_in_serial_output does almost exactly what you want. Every 0.5 seconds (which you can change to...
  10. Yes, there are situations where I will override...

    Yes, there are situations where I will override yield() for use in multi-tasking.
  11. Yes, please use EthernetClass::loop() rather than...

    Yes, please use EthernetClass::loop() rather than yield(), for cases where yield() will not call Ethernet::loop().
  12. Here is an example sketch with IntervalTimer and...

    Here is an example sketch with IntervalTimer and begin() is called from loop(). It works.


    #include <IntervalTimer.h>

    IntervalTimer main_timer;

    volatile uint32_t main_timer_count;

    void...
  13. Please provide the entire program so that we can...

    Please provide the entire program so that we can see what you're doing. Select all of the text in your INO program, then copy and paste into a forum message. After you paste, use your mouse to select...
  14. Replies
    6
    Views
    177

    If the library is a single folder, all C/CPP/H...

    If the library is a single folder, all C/CPP/H files in the folder will be included when the library is compiled. You can separate the library source code from the tests and examples by creating a...
  15. Shawn, thanks for continuing to provide these...

    Shawn, thanks for continuing to provide these examples. Per the quote above from your original post, Ethernet.begin() calls startLoopInYield(), which I see results in yield() calling Ethernet.loop()....
  16. Replies
    14
    Views
    1,325

    @Frank, yes, thanks for all you've done here. I...

    @Frank, yes, thanks for all you've done here. I hope you come back after a break.
  17. Thanks, Shawn. I can see that you're using an STL...

    Thanks, Shawn. I can see that you're using an STL vector, adding clients on connect and removing on disconnect, so you only iterate over clients that are connected. I'll do something like that.
  18. Yes, that is helpful. I didn't realize that...

    Yes, that is helpful. I didn't realize that "clients[i]" and "!clients[i]" were uses of "operator bool", as opposed to testing for value 0.

    EDIT: I'm finding that the example program does mostly...
  19. The packet content and number of fields is...

    The packet content and number of fields is arbitrary. Right now, I'm not trying to parse packets or build a real application. I'm just trying to test the capability to accept connections from...
  20. My use case is a simple command/control interface...

    My use case is a simple command/control interface via TCP. The device (T41) would listen/accept connections, then read, process, and reply to commands and data requests from those connections. The...
  21. Thanks, Shawn. I started with the TCP server...

    Thanks, Shawn. I started with the TCP server example because that's one of my use cases. I'm pretty much an Ethernet beginner, but I'll try to figure out (google?) how lwip detects and handles a TCP...
  22. shawn, thanks very much for this work. I have a...

    shawn, thanks very much for this work. I have a question about loopServer(). It contains the clause shown below (printf was my addition). When the program starts, all elements of clients[] are 0, so...
  23. Replies
    972
    Views
    44,744

    Are there any "reference designs" to use as...

    Are there any "reference designs" to use as starting points for custom MMOD boards? I'm not a hardware designer at all, so my question may be naive.

    EDIT: simple search found this: ...
  24. Replies
    7
    Views
    233

    @KurtE, thanks for this useful diagram. Can I...

    @KurtE, thanks for this useful diagram. Can I suggest a small labeling change? For the PWM columns, where the pin is FlexPWM, your labels are, for example, "1X1", which means FlexPWM module 1,...
  25. You can set the CHIE (channel interrupt enable)...

    You can set the CHIE (channel interrupt enable) flag in the same register that contains the CHF flag, so that would be as shown below. I don't have time today to go any further than that, and I'll be...
  26. Okay. Here's a screenshot for T3.2, and code that...

    Okay. Here's a screenshot for T3.2, and code that works for both T3.2 and T4.x. For T3.2, I'm using pin 3, which is FTM 1, channel 0. The CHANNEL FLAG (bit 7) of the FTM1_C0SC (status and control)...
  27. The program shown below will do what you want for...

    The program shown below will do what you want for pin 2 of Teensy 4.x. Many of the PWM pins on T4.x use the FlexPWM modules of iMRXT1062. This program uses pin 2, which is FLEXPWM module 4,...
  28. An alternative to updating the libraries manually...

    An alternative to updating the libraries manually is to install TeensyDuino 1.55 Beta 1, which contains the new versions of FNET and NativeEthernet.
  29. When you have your Teensy 4.0 board, you need to...

    When you have your Teensy 4.0 board, you need to install the Arduino IDE, and then TeensyDuino. You will find instructions on pjrc.com. Once you have the software installed, you will be able to build...
  30. Replies
    15
    Views
    490

    No blame intended. I only meant that OP would be...

    No blame intended. I only meant that OP would be glad to know that pin 54 is available for PWM.
  31. Replies
    15
    Views
    490

    Yes, and good news for OP, if he specifies pin 54...

    Yes, and good news for OP, if he specifies pin 54 rather than 53, he can get what he wants.
  32. Replies
    15
    Views
    490

    @mjs513, I think you're right. I just modified...

    @mjs513, I think you're right. I just modified the simple sketch to use pin 54 rather than 53 and I get a PWM signal on pin 54.

    See the code below from cores\Teensy4\pwm.c. The last line says "53"...
  33. Replies
    15
    Views
    490

    I don't think digitalPinHasPWM() is a problem....

    I don't think digitalPinHasPWM() is a problem. That macro defines standard Arduino PWM pins, and it's not used at all in the Teensy4 core.

    If you look at startup.c, prior to calling pwm_init(),...
  34. Replies
    15
    Views
    490

    Since you're using "all pins", you may have a...

    Since you're using "all pins", you may have a conflict in pin usage. Pins cannot all be configured completely independently. For example, pins associated with a single flexPWM or other module share...
  35. Replies
    15
    Views
    490

    Can you show us what you're doing now? Pin 53...

    Can you show us what you're doing now? Pin 53 does support PWM, but it's hard to say what might be wrong unless we see your code. Pin 53 can do PWM. It's on one of the iMXRT processor's flexPWM...
  36. Replies
    121
    Views
    11,653

    And if invalid code was written to flash, you...

    And if invalid code was written to flash, you could still recover via TeensyLoader, but only that way?
  37. Replies
    121
    Views
    11,653

    Is the security enforced at the JTAG (program)...

    Is the security enforced at the JTAG (program) level, or at the boot (runtime) level? I'm wondering if updates could still be done via SD card or via the OTA "Flasher", so long as the ".ehex" file...
  38. Replies
    98
    Views
    6,902

    Thanks for taking the time to explain. Since it's...

    Thanks for taking the time to explain. Since it's in one of the FNET examples, and you understand it well, what do you think about Frank's suggestion to ask butok about it?
  39. Error while detecting libraries included by...

    Error while detecting libraries included by C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\FNET\src\service\serial\fnet_serial.c

    I get this same error when building programs with...
  40. Replies
    98
    Views
    6,902

    vjmuzik, can you point me to an FNET example that...

    vjmuzik, can you point me to an FNET example that checks for the error? I would like to help if I can. For myself, I wouldn't feel good about going to butok with this problem because I know so little...
  41. Replies
    98
    Views
    6,902

    Thanks very much for the info. The reason I ask...

    Thanks very much for the info. The reason I ask about changes to FNET relative to butok is Paul's comment that the crash issue was "deep within FNET". That struck me as odd, given that FNET is used...
  42. Replies
    98
    Views
    6,902

    Okay, but is the problem specific to HTTP, or...

    Okay, but is the problem specific to HTTP, or could it be a simple TCP server? I did a comparison between the FNET stack in butok's repository versus the one in TeensyDuino, and I was surprised there...
  43. Replies
    98
    Views
    6,902

    I'll do some more testing tomorrow. Seems odd,...

    I'll do some more testing tomorrow. Seems odd, but really I have no idea what Apache Benchmark is doing. Can you tell us what you are testing, and how this test relates to the problems that...
  44. Replies
    98
    Views
    6,902

    I switched to ethernet cable, still going through...

    I switched to ethernet cable, still going through router, and I'm getting the same (slow) results, but I'll wait for others to do some testing, as I really know very little about Ethernet or networks.
  45. Replies
    98
    Views
    6,902

    vjmuzik, I got your latest FNET and...

    vjmuzik, I got your latest FNET and NativeEthernet, and your test program now builds and runs. When I run Apache Benchmark, there are now no errors, but it is much slower for me than what you said...
  46. Replies
    98
    Views
    6,902

    I misread your post and didn't realize I had to...

    I misread your post and didn't realize I had to update both FNET and NativeEthernet. I've now downloaded your latest code for both from Github, and I'm getting the error in building your test sketch....
  47. Replies
    98
    Views
    6,902

    @vjmuzik, thanks for working on this. This is...

    @vjmuzik, thanks for working on this.

    This is my first attempt to use NativeEthernet, but I got your fix, built and installed your test program, and then ran the Apache Benchmark. It was taking a...
  48. @KurtE, you're right. For both TD 1.53 and TD...

    @KurtE, you're right. For both TD 1.53 and TD 1.54, the following are true.


    For T4.x, available() returns the total number of bytes in the (software) buffer, plus bytes in the (hardware) FIFO,...
  49. Okay. I'm not familiar with LIN, but at least for...

    Okay. I'm not familiar with LIN, but at least for Teensy, end() would stop transmission and probably also result in pin configuration changes, so it would be difficult or impossible to use begin()...
  50. For Teensy 3.2, the delay exists for UART0 and...

    For Teensy 3.2, the delay exists for UART0 and UART1 (which have a FIFO), but not for UART2 (which has no FIFO), and you can eliminate the delay for UART0 and UART1 by reducing the RX FIFO watermark...
Results 1 to 50 of 177
Page 1 of 4 1 2 3 4