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

Search:

Type: Posts; User: pramilo

Search: Search took 0.00 seconds.

  1. Hi all, I have now built the code and have...

    Hi all,

    I have now built the code and have been benchmark'ing it:

    --> I left all the constants and the whole Teensy library in its original form. I use send_now() when I wish to send...
  2. Hi Kurt, Thanks for all the advice. Can you...

    Hi Kurt,

    Thanks for all the advice.

    Can you clarify 2 points for me:


    What I've seen, from further experiments is that if you call send_now() (or flush()) and host happens to start...
  3. The source code for the Benchmark is attached. ...

    The source code for the Benchmark is attached.
    FYI: It's written in C#. I tested compiling with VS2015; in theory it should also compile with Mono under Linux but I haven't gotten around to testing...
  4. I did try to use that with a timer. Code below: ...

    I did try to use that with a timer. Code below:

    #define USB_FLUSH_TIMEOUT_MICROS 500 // tested with 1000 as well

    uint32_t last_usb_flush;
    void setup()
    {
    Serial.begin(10000);...
  5. Hi all Once again than you all for your...

    Hi all

    Once again than you all for your advice.

    I have built a benchmark suite and have actual values and findings to share.

    The setup: as I explained earlier, this is a master-slave setup,...
  6. Thank you all for the advice. I will try to...

    Thank you all for the advice.

    I will try to gather data in a presentable way and hopefully post back with some performance measurements using the Teensy LC, for future reference.
  7. Thanks for pointing that out. I've looked at...

    Thanks for pointing that out.

    I've looked at the actual implementation of Serial.flush() - function usb_serial_flush_output(void) in file usb_serial.c and it seems to rely on usb_tx()

    Glancing...
  8. I understand that. That's why we're looking to...

    I understand that. That's why we're looking to use a Teensy as a USB to Serial device in our setup (to replace the FTDI).
    Hence the questions about improving code efficiency.



    Is there a...
  9. Well.... I'll try to answer the best I can bc the...

    Well.... I'll try to answer the best I can bc the issue is not just plain latency. So more details:

    We are running a master-slave setup at 1Mbps baud, where the master (in this case the PC, via...
  10. Using Teensy Libraries without Arduino/Maximum USB performance

    Hi all,

    I am starting work on a project where I will be using a Teensy LC to act as a USB to Serial converter with a twist: the Teensy LC will need to intercept and tweak communication for the...
  11. I have now been able to get a more clear...

    I have now been able to get a more clear undersatding of what is gong on in my case.

    Before I continue I have determined my versions: Arduino 1.0.6 and Teensyduino 1.25. I know these date far back...
  12. Thank you for the advice. I will look into your...

    Thank you for the advice.
    I will look into your advice and post more information.
  13. Hi Paul, I missed your other posts after this...

    Hi Paul,

    I missed your other posts after this one as I was not in the office Friday and basing myself on your timing.

    In any case, I have the screenshot now.

    Feel free to address this as you...
  14. A Google Search (as I don't have equipment with...

    A Google Search (as I don't have equipment with me) has shown a few related posts:

    https://freescale.jiveon.com/thread/388930
    https://community.nxp.com/thread/312294
    (I'm a bit at a loss if this...
  15. Hi Paul, Thank you very much for taking the...

    Hi Paul,

    Thank you very much for taking the time to look into this.
    I would gladly send you a screenshot of the Logic Analyser as a picture's worth a thousand words but I'm not at the Office...
  16. Let me add that the code above still doesn't...

    Let me add that the code above still doesn't fully resolve the issue;

    I've now added the interrupts for ORIE and FEIE (interrupts for both exceptions) but the UART still halts after a FE, despite...
  17. Teensy 3.2 UART halts (locks up) if a Framing Error or Buffer Ovr Occurs

    Hi

    I'm using Teensy 3.2 and we're doing a long term project with teensy.

    We've recently come across a situation that's not handled by the Teensiduino library we use and causes de UART to stop...
  18. Hi Kurt, I ended up going the road of writing...

    Hi Kurt,

    I ended up going the road of writing my own bit banged Serial Library to just cope with this. ATMEL AVR305 and 304 (bot mostly 305) application notes have a very good explanation and...
  19. 100microsecs hard delay on first transmit of USB character (Teensy 3.2, USBSERIAL)

    Hi

    We've been working on a time sensitive application where we need to react every 25 microsecs (should be easy enough for T3.2 @96Mhz).

    We were having occasions where we the processor would...
  20. Good point. I'll give it a try and let you know....

    Good point. I'll give it a try and let you know.
    ( I don't have high hopes though, bc teensy is actually timing correctly; I think this is more of an issue of the other device, but it's definetly...
  21. Hi Kurt, Thank you for your reply. I have...

    Hi Kurt,

    Thank you for your reply.

    I have been using Teensy's half duplex uart capability for quite a while, using the LOOPS mode as well. In my case I have modified the serial1.c and serial2.c...
  22. UART: coping with hosts not honoring start bit timings

    Hi all,

    We're using teensy 3.2 to work as a bridge to upgrade a slave device connected to it over serial (one wire/half duplex uart). The slave device has a one wire bootloader (tinysafeboot) and...
  23. Replies
    1
    Views
    1,265

    Using Interrupts on Teensy 3.1

    Hi all

    (Preliminary note: there is an answer to a similar topic on the main PJRC site but it only applies to ATMEL processors I believe (https://www.pjrc.com/teensy/interrupts.html), so I have...
  24. Replies
    12
    Views
    6,725

    Hi all Although it may seem I'm reviving this...

    Hi all

    Although it may seem I'm reviving this old thread, the question at hand is actually quite pertinent.

    We are building our boards using Teensy 3.2 and using our own programmed interface to...
  25. eeprom_read_* functions: address parameter of different sizes ??? (byte/word/dword)

    Hi

    I've been using the direct implementation of the eeprom_read_* and eeprom_write_* functions.

    However, the functions have a strange design/declaration that seems to limit the addresses on...
  26. I see. It makes a lot of sense :) thank you for...

    I see. It makes a lot of sense :) thank you for clarifying this.

    You probably know your customer base a lot better than me but I get the feeling a lot of "pro" developers tend to move to teensy...
  27. Hi Apologies for replying to myself but since...

    Hi

    Apologies for replying to myself but since there were o replies I seem to have been able to make sense of this.

    I am writing the summary below in a simple attempt to help others who are...
  28. Tenssyduino RTS and CTS implementation: is it bitbanged or the processor handles it?

    Hi all

    I'm currently working on a project using Teensy 3.2 where we have two high speed UART lines set up as One wire half duplex lines.
    The setup is similar to RS485 where you need RX, TX and...
  29. I'm not trying to advocate in favor of one thing...

    I'm not trying to advocate in favor of one thing working better than the other or stating bluntly that it's broken. This is really not what I'm going for here:
    I'm merely reporting my own experience...
  30. Once again apologies for replying to myself, but...

    Once again apologies for replying to myself, but in the meantime I've collected more information.

    The problem with the Serial port not reseting after a Teensy reboot seems related to the Teensy...
  31. Thanks a lot. I've already downloaded it and I...

    Thanks a lot.

    I've already downloaded it and I can not express my appreciation enough. It just fixes so many little annoyances when dealing with Teensy and makes everything so much smoother and...
  32. Thanks for the Quick reply. I just had a quick...

    Thanks for the Quick reply.

    I just had a quick look and it looks exactly like what we were looking for.
    I'll run tests on it later today but it looks great.

    ( Jumping a little ahead of myself,...
  33. Using Teensy Loader (GUI) to trigger the board into Bootloader mode

    Hi all,

    We've been developing a small scale project with Teensy 3.2 and we need to offer customers the possibility to update the firmware by themselves.
    The electronics are enclosed so access to...
  34. Hi Paul Apologies for replying to myself but I...

    Hi Paul

    Apologies for replying to myself but I seem to have made some progress here:

    Firstly, in usb_init() there some code (commented out) that should reset the USB module:

    //reset USB...
  35. Hi Paul Thank you very much for pointing me in...

    Hi Paul

    Thank you very much for pointing me in that direction.

    I have played with the delay (went all the way up to 10 seconds delay), but it doesn't seem to fix the issue. This is the behavior...
  36. Hi I am currently using the CPU_RESTART macro...

    Hi

    I am currently using the CPU_RESTART macro and it works quite reliably.

    However, if the Teensy is connected to the PC over USB, the Virtual COMM port on the PC sometimes becomes inaccessible...
Results 1 to 36 of 36