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

Search:

Type: Posts; User: AndyCap

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Thanks for the info Kurt. Now I know it's not...

    Thanks for the info Kurt.

    Now I know it's not me doing things wrong :)

    I was wondering if the longer LVGL times were caused by not calling lv_task_handler() regularly enough due to the fact...
  2. I Just tested with updateScreen() and that is...

    I Just tested with updateScreen() and that is only updating changed areas 865us to 4246us
  3. Hi Kurt, One thing I am looking into is that...

    Hi Kurt,

    One thing I am looking into is that updateScreenAsync() always seems to send the entire screen (around 16ms at 100Mhz) even with a call to updateChangedAreasOnly(true);

    Is this what...
  4. Also just had a thought those timings above are...

    Also just had a thought those timings above are using 20 ms/50fps

    Here we are with 30 ms/33.33 fps as in the original posts:



    lv_task_handler 1us, flush 0us, touchscreen 0us...
  5. Ok, I put some timing in. This is for the demo...

    Ok, I put some timing in.

    This is for the demo code from the video above, so probably worst case scenario for screen updating!:

    lv_task_handler = total time in lv_task_handler();
    flush = total...
  6. Hi Kurt, I did put some timing code in the...

    Hi Kurt,

    I did put some timing code in the flush code and a small % was only used there, I didn't put any in the touchscreen handling though, i will check that.
  7. Thanks for the info. I will give that approach...

    Thanks for the info.

    I will give that approach a go initially.
  8. No the midi code is not there, its just a demo...

    No the midi code is not there, its just a demo from the LGVL examples.

    I did test Luni's idea of using the interval timer, just to see it was called correctly and the LGVL stuff still worked.
    ...
  9. In case anyone is interested it looks like the...

    In case anyone is interested it looks like the code is able to run nicely at 50fps on the Teensy4:

    https://youtu.be/lN9-sRlPE9A
  10. Hi, Thanks for the reply. I was just a...

    Hi,

    Thanks for the reply.

    I was just a little worried about calling all the midi functions from within an interrupt, I will give it a go though and see how it goes...

    Cheers

    Andy
  11. Teensy 4.1 : Code priority advice. processing/lcd gui

    Hi Guys,

    I wonder if anyone can help me.

    I am building a MIDI router/processor, supporting DIN (serial), USB Host and USB Device.

    I also want an LCD for the GUI, currently using an...
  12. Replies
    44
    Views
    4,409

    Sticky: The plugin was JavaAppletPlugin.plugin and...

    The plugin was JavaAppletPlugin.plugin and located in /Library/Internet Plug-ins/

    When I looked at the files arduino was using it was using this as well as the embedded JRE.

    The tools needed to...
  13. Replies
    44
    Views
    4,409

    Sticky: Thanks for the info. I looked into it a bit...

    Thanks for the info.

    I looked into it a bit and the JRE that arduino uses is included with it.

    So I looked at the files opened when running teensyarduino and noticed that it was also using the...
  14. Replies
    44
    Views
    4,409

    Sticky: Thanks for all the info, from the command line: ...

    Thanks for all the info, from the command line:



    $ java -XshowSettings:vm -version 2>&1
    VM settings:
    Max. Heap Size (Estimated): 7.11G
    Ergonomics Machine Class: server
    Using VM:...
  15. Replies
    44
    Views
    4,409

    Sticky: Hi @defragster, Thanks for the reply. I had...

    Hi @defragster,

    Thanks for the reply.

    I had actually started using the all in one to update from a previous beta of 1.53 that was installed in arduino and also had the problem.

    So I thought...
  16. Replies
    44
    Views
    4,409

    Sticky: Thanks for the reply, I have a 12 core, 32gb Ram,...

    Thanks for the reply, I have a 12 core, 32gb Ram, NVME drive. It’s a pretty fast machine.

    Arduino without the teensy software installed runs fine, with the teensy software installed I get very...
  17. Replies
    44
    Views
    4,409

    Sticky: Hi Guys, Is there a fix somewhere for the...

    Hi Guys,

    Is there a fix somewhere for the Aduino Gui running really slow on OSX?

    For instance 10 seconds of spinning beach ball when I click on a menu.

    Cheers

    Andy
  18. Just had this again, I am getting a little...

    Just had this again, I am getting a little nervous using the teensy now!
  19. OSX 10.14.6 - teensy_serialmon Panic and computer restart.

    Hi Paul,

    Just got a panic and restart here and it looks like it may be do do with teensy_serialmon.

    I had Code/PlatformIO open and was using the Arduino serial monitor for logging, I think this...
  20. Replies
    21
    Views
    615

    Thanks, I will stick that in and see if there is...

    Thanks, I will stick that in and see if there is any difference.

    The midi looks like it may be behaving better than the audio though!
  21. Replies
    21
    Views
    615

    Actually it is even worse, the audio is drifting...

    Actually it is even worse, the audio is drifting backwards in time while the midi is drifting forward in time:

    21551
  22. Replies
    21
    Views
    615

    So with that code above and recording the audio...

    So with that code above and recording the audio and midi, the midi drifts but the audio doesn't:

    At the start of test:

    21549


    A few minutes in:

    21550
  23. Replies
    21
    Views
    615

    Here you go, different code same problem: ...

    Here you go, different code same problem:



    #include <Arduino.h>
    #include <Audio.h>

    AudioSynthSimpleDrum drum1;
    AudioOutputUSB usb1;
    AudioConnection ...
  24. Replies
    21
    Views
    615

    It isn't code I will be using, just some code to...

    It isn't code I will be using, just some code to show the issue ;)
  25. Replies
    21
    Views
    615

    Hi Paul and Mark, Thanks for the info and for...

    Hi Paul and Mark,

    Thanks for the info and for looking into this.

    The timings I see on the generated waveform are:

    Teensy 4.0: 999.996

    Teensy 4.1: 999.987
  26. Replies
    21
    Views
    615

    I found usbMIDI.send_now(); which I guess is...

    I found
    usbMIDI.send_now(); which I guess is the equivalent of the flush, didn't help though.
  27. Replies
    21
    Views
    615

    Hi, Thanks for all the info. I think it...

    Hi,

    Thanks for all the info.

    I think it seems to be a constant drift on the midid usb, I guess I need to keep it running for a while to check.

    I attach a 1khz signal to a pin and run the...
  28. Replies
    21
    Views
    615

    Thanks for that. The timing output on teensy...

    Thanks for that.

    The timing output on teensy serial looks right, on midi monitor I see the message received in lock with the serial display but I see the drift in timing.

    I'm thinking of...
  29. Replies
    21
    Views
    615

    Actually I think it might be the midi usb stuff...

    Actually I think it might be the midi usb stuff that is playing up?

    I just tested on a 4.0 as well:

    If I use the timer to generate a 1khz wave and use a hardware freq counter I am seeing:...
  30. Replies
    21
    Views
    615

    Hi, Thanks for the interest, here is an...

    Hi,

    Thanks for the interest, here is an example using IntervalTimer, 1ms, every 1000 send midi message:



    #include <Arduino.h>

    IntervalTimer myTimer;
    elapsedMicros since = 0;
  31. Replies
    21
    Views
    615

    Teensy 4.1 timing accuracy help.

    Hi Guys,

    I'm looking at running code at set periods over time and would like the timing to be as stable as possible.

    I have looked at IntervalTimer and elapsedMicros and on the 4.1 I am using...
  32. Replies
    53
    Views
    4,757

    Hi Richard, it is done: Busidle fix #9

    Hi Richard, it is done: Busidle fix #9
  33. Replies
    53
    Views
    4,757

    Hi Richard, I'll try to get the PR done this...

    Hi Richard,

    I'll try to get the PR done this weekend...

    Cheers

    Andy
  34. Replies
    53
    Views
    4,757

    OK, I think the problem is that the BUSIDLE time...

    OK, I think the problem is that the BUSIDLE time is being set incorrectly.

    From the datasheet page 2751 the minimum BUSIDLE is:

    Also on page 2772 it states that you can disable it totally...
  35. Replies
    53
    Views
    4,757

    So I investigated a little further, so this is...

    So I investigated a little further, so this is where we are seeing the problem:



    Basically it doesn't think the bus is idle, bit weird as SCL and SDA are high and it doesn't start till the bus...
  36. Replies
    6
    Views
    310

    Hi Kurt, Managed to get some time on this. ...

    Hi Kurt,

    Managed to get some time on this.

    The async calls work nicely in teensy4_i2c, apart from a bit of a strange delay, details in last post here:...
  37. Replies
    53
    Views
    4,757

    Hi Richard, Thanks very much for this, I was...

    Hi Richard,

    Thanks very much for this, I was looking for a async I2C implementation and you have done all the work for me :)

    I have a slight issue though, there seems to be around a 300-350us...
  38. Replies
    6
    Views
    310

    I'm really not interested in it being DMA based,...

    I'm really not interested in it being DMA based, just asynchronous with a callback so the processing is not blocked.

    I worded the question incorrectly I guess.

    Edit: I looked for a way to...
  39. Replies
    6
    Views
    310

    Thanks for the reply Kurt. I'm going to have a...

    Thanks for the reply Kurt.

    I'm going to have a look at teensy4_i2c async calls in a while, maybe that will give me what I need.

    I did take a quick look at the NXP side and there is a...
  40. Replies
    6
    Views
    310

    On closer look it seems that teensy4_i2c has...

    On closer look it seems that teensy4_i2c has async methods...
  41. Replies
    6
    Views
    310

    Teensy 4 - Master i2c, DMA possible?

    Hi Guys,

    I have searched around a bit on google and the forum and can't seem to find an answer to this.

    Is it possible to use DMA for sends and receives over i2c on the teensy 4, I have found...
  42. Hi, I have a few tips that may save others a few...

    Hi, I have a few tips that may save others a few hours :)

    1. If using hardware serial and you want > 9600 baud you need to use begin():



    Serial1.begin(115200);
    debug.begin(Serial1);
  43. Hi, thanks for the info. I'm on a mac, I...

    Hi, thanks for the info.

    I'm on a mac, I managed to get it going with single serial by just including your debug files and building in PlatformIO.

    Also managed to get the VSCode debugger...
  44. Hi Guys, Has anyone managed to get "Take over...

    Hi Guys,

    Has anyone managed to get "Take over serial" to work?

    In GDB I see:
    [no_device]: No such file or directory.

    I cannot see the serial device available either.

    The only way to get...
  45. Wow, good job frtias. Will look at giving all...

    Wow, good job frtias. Will look at giving all this a go at the weekend, thanks!
  46. Replies
    29
    Views
    7,684

    For tracing you need also need a SWO pin, the...

    For tracing you need also need a SWO pin, the 1050/1060 M7s do have SWO.

    I have a 1050 EVK and the SWO is not available on the debug header and you have to grab it on GPIO_B0_13 which is SW7 pin...
  47. Replies
    29
    Views
    7,684

    You don't to use SWD but it is the default for...

    You don't to use SWD but it is the default for the 1050/1060.

    The DAP_SJC_SWD_SEL bit needs to be asserted to allow straight JTAG without SWD.
    ...
  48. Replies
    109
    Views
    15,688

    With USB Print Test on ManPro trashcan 12 core,...

    With USB Print Test on ManPro trashcan 12 core, 10.14.5:

    Arduino serial monitor
    =================
    210,000 - 250,000. Mostly down the lower end.

    Kernel Task : 185%
    teensy_serialmon: 65%...
  49. Replies
    29
    Views
    7,684

    Just adding myself into the thread to see...

    Just adding myself into the thread to see progress...
  50. Replies
    3
    Views
    983

    Hi Martin, Thanks for the info, seems a bit...

    Hi Martin,

    Thanks for the info, seems a bit weird as the 3.6 had the debug pins.

    I cannot see anything on the 4 pinout though, I was just hoping I was wrong!.

    Andy
Results 1 to 50 of 73
Page 1 of 2 1 2