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

Search:

Type: Posts; User: joepasquariello

Page 1 of 5 1 2 3 4

Search: Search took 0.00 seconds.

  1. Replies
    6
    Views
    206

    Fantastic.

    Fantastic.
  2. Very useful info. Thanks for documenting.

    Very useful info. Thanks for documenting.
  3. Replies
    6
    Views
    317

    Just to add to the answers from KurtE and...

    Just to add to the answers from KurtE and defragster, you can't necessarily update your TFT display as frequently as you get new data interrupts.

    Take a look at library FreqMeasureMulti. This...
  4. Do you mean if used in conjunction with...

    Do you mean if used in conjunction with ProtoThreads? I don't know. Protothreads are based on "local continuations". Their implementation depends on the platform and compiler, and the restrictions...
  5. I noticed that in your code, and it had me...

    I noticed that in your code, and it had me scratching my head because some compilers will flag that as an error, as opposed to a warning. I wondered if that limitation existed in C, but not in C++....
  6. Perhaps test with simpler expressions in your...

    Perhaps test with simpler expressions in your switch and case statements, e.g. does the logic work correctly with a uint_8 variable for the switch, and constants 1,2,3 for the cases?
  7. Replies
    45
    Views
    1,523

    Not sure whether all USB-C cables are the same. I...

    Not sure whether all USB-C cables are the same. I got a cable from Sparkfun and had no trouble. Does TeensyDuino report finding a COM port for the Teensy? Have you set board type to Teensy Micromod?
  8. Replies
    281
    Views
    8,456

    My two cents is this is not a high-priority...

    My two cents is this is not a high-priority issue, and I hate to think of you spending your time on peculiarities of Windows/Mac/Linux rather than Teensy itself. Reliable comm at 12 Mbps, or whatever...
  9. Since you have control of both ends, you might...

    Since you have control of both ends, you might consider computing a 16-bit CRC, or at least a 16-bit or 32-bit sum, of all bytes as you send (on the client side) and receive (in Teensy). That would...
  10. The last byte of each line is the checksum for...

    The last byte of each line is the checksum for that record. When you add that checksum to the sum of the bytes, you will get 0.
  11. In your function shown below, you first check to...

    In your function shown below, you first check to see how many bytes are available. If you have at least "expected_msg_len", you enter a while() loop that calls read() until you get 'E' or a timeout,...
  12. I did not read through all of the subsequent...

    I did not read through all of the subsequent updates, but wanted to point out why the problem first appeared, i.e. calling read() when the the buffer is empty. That eventually got fixed by replacing...
  13. As MCU32 said, the reason your first program...

    As MCU32 said, the reason your first program worked was that each read() was preceded by a check of available(), so read() always returned a valid character. In your second program, where you started...
  14. Replies
    200
    Views
    38,322

    Seconding that thanks, @vjmuzik. It will be good...

    Seconding that thanks, @vjmuzik. It will be good to get more people testing QNEthernet. It seems like LWIP may be a better bet than FNET as a foundation, and it seems to have broader application and...
  15. On the Teensy side, I think you need to move to...

    On the Teensy side, I think you need to move to using a UART serial rather than the USB serial. What I would do is:

    - modify FlasherX.ino to use a UART serial port and confirm that you can...
  16. I'll explain what I do, and maybe that will help....

    I'll explain what I do, and maybe that will help. On the Teensy side, I have a task that receives commands from a UART serial port, parses the data into opcodes and data, and executes the commands if...
  17. I was porting embedded code from a platform where...

    I was porting embedded code from a platform where the binary block format had been used. There's no reason for you not to use Intel Hex since you already have working code for the Teensy side. Your...
  18. Unfortunately I don't have a way to do that at...

    Unfortunately I don't have a way to do that at the moment. The Windows programs rely on a large code base and a UI specific to Embarcadero (formerly Borland) C++ Builder.
  19. Sending the hex file via TeraTerm is just a way...

    Sending the hex file via TeraTerm is just a way to get new firmware to the Teensy for demo purposes. I don't know how you want to be able to update your Teensy, but my goal was to be able to update...
  20. Yes, that's correct. Nice work. If you put...

    Yes, that's correct. Nice work. If you put something like the line below into your setup() function, and you rebuild your program between updates, you'll be able to see that the build time changes....
  21. Did you read message #85? In general, if you want...

    Did you read message #85? In general, if you want to add OTA capability to an application, you must:

    (a) add files FlashTXX.cpp/h to the sketch, which provide the low-level OTA capability
    (b)...
  22. Yes, load the FlasherX sketch into the T35, then...

    Yes, load the FlasherX sketch into the T35, then use TeraTerm to connect to the USB serial and use the Send File feature to send the same hex file. You can repeat this multiple times if you want.
  23. Instead of using the standard serial monitor, you...

    Instead of using the standard serial monitor, you must use a terminal program, such as TeraTerm, which will display the messages, just like the serial monitor, but also has a “send file” capability.
  24. I very much like that QNEthernet doesn't use...

    I very much like that QNEthernet doesn't use hardware timers or interrupts, and the frequency of execution of Ethernet::loop() can be controlled as necessary for a given application.

    @shawn,...
  25. @paynterf, you can start by building and running...

    @paynterf, you can start by building and running FlasherX.ino on your Teensy to get familiar with what it does. You will need a terminal program with a "send file" capability. I use TeraTerm for...
  26. Replies
    14
    Views
    1,401

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

    In FreqCount.cpp, for IMXRT1062, there is no implementation of function end().
  27. 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.
  28. Replies
    98
    Views
    8,463

    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.
  29. 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
  30. @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.
  31. 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...
  32. Replies
    39
    Views
    2,515

    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.
  33. Replies
    975
    Views
    51,370

    @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...
  34. Replies
    6
    Views
    463

    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...
  35. Yes, there are situations where I will override...

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

    Yes, please use EthernetClass::loop() rather than yield(), for cases where yield() will not call Ethernet::loop().
  37. 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...
  38. 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...
  39. Replies
    6
    Views
    322

    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...
  40. 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()....
  41. Replies
    14
    Views
    1,758

    @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.
  42. 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.
  43. 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...
  44. 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...
  45. 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...
  46. 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...
  47. 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...
  48. Replies
    975
    Views
    51,370

    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: ...
  49. Replies
    7
    Views
    376

    @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,...
  50. 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...
Results 1 to 50 of 202
Page 1 of 5 1 2 3 4