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; generated 26 minute(s) ago.

  1. 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...
  2. Replies
    21
    Views
    338

    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!
  3. Replies
    21
    Views
    338

    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
  4. Replies
    21
    Views
    338

    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
  5. Replies
    21
    Views
    338

    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 ...
  6. Replies
    21
    Views
    338

    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 ;)
  7. Replies
    21
    Views
    338

    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
  8. Replies
    21
    Views
    338

    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.
  9. Replies
    21
    Views
    338

    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...
  10. Replies
    21
    Views
    338

    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...
  11. Replies
    21
    Views
    338

    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:...
  12. Replies
    21
    Views
    338

    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;
  13. Replies
    21
    Views
    338

    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...
  14. Replies
    51
    Views
    4,044

    Hi Richard, it is done: Busidle fix #9

    Hi Richard, it is done: Busidle fix #9
  15. Replies
    51
    Views
    4,044

    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
  16. Replies
    51
    Views
    4,044

    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...
  17. Replies
    51
    Views
    4,044

    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...
  18. Replies
    6
    Views
    207

    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:...
  19. Replies
    51
    Views
    4,044

    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...
  20. Replies
    6
    Views
    207

    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...
  21. Replies
    6
    Views
    207

    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...
  22. Replies
    6
    Views
    207

    On closer look it seems that teensy4_i2c has...

    On closer look it seems that teensy4_i2c has async methods...
  23. Replies
    6
    Views
    207

    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...
  24. 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);
  25. 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...
  26. 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...
  27. 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!
  28. Replies
    29
    Views
    6,949

    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...
  29. Replies
    29
    Views
    6,949

    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.
    ...
  30. Replies
    109
    Views
    14,578

    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%...
  31. Replies
    29
    Views
    6,949

    Just adding myself into the thread to see...

    Just adding myself into the thread to see progress...
  32. Replies
    3
    Views
    896

    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
  33. Replies
    3
    Views
    896

    Teensy 4 - Debug pins

    Hi Guys,

    Is there anyway of connecting JTAG or similar to the Teensy 4?

    Thanks

    Andy
  34. Replies
    161
    Views
    17,014

    Hi Michael, Super, thanks very much for those...

    Hi Michael,

    Super, thanks very much for those links.

    All the best

    Andy
  35. Replies
    161
    Views
    17,014

    Hi Guys, Is there a way of getting these in...

    Hi Guys,

    Is there a way of getting these in Europe?

    Other than buying from America that is.

    Cheers

    Andy
  36. Replies
    77
    Views
    42,123

    After some intermittent problems I also cut the...

    After some intermittent problems I also cut the traces to pins 4 and 13 on the MKL02Z, now it is reliable.

    I also have a template project for Teensy/Arduino builds in MCUXpresso which offers...
  37. Replies
    77
    Views
    42,123

    Hi Guys, I got the debugging going :) As I...

    Hi Guys,

    I got the debugging going :)

    As I said before I couldn't solder a wire to the reset pin so after buying another teensy 3.6 to test on I just cut the PCB trace going to the pin 1...
  38. Replies
    77
    Views
    42,123

    Thanks for the info. Unfortunately over the...

    Thanks for the info.

    Unfortunately over the years I have learnt that I am not that smart and need debugger functionality. I understand the importance of a Logic Analyser/Oscilloscope for real time...
  39. Replies
    77
    Views
    42,123

    Well I tried to give it a go, my shaky hands are...

    Well I tried to give it a go, my shaky hands are not up to soldering a wire onto pin 15.

    Does anyone know when the "proper" debug functionality will be added to the Teensy so I don't need to hold...
  40. Replies
    45
    Views
    16,447

    Hi Paul, Would you like to add a couple of new...

    Hi Paul,

    Would you like to add a couple of new USB types to the next release, basically the Audio/Midi/Serial with RAWHid as well.

    They seem to work fine and they are a combination that I think...
  41. Hi Guys, The beta cures the problem, all...

    Hi Guys,

    The beta cures the problem, all working without the button now :)

    Thanks Theremingeniur for the pointer and Paul for the work.

    Cheers

    Andy
  42. Replies
    45
    Views
    16,447

    @KurtE - So it is, I really should read these...

    @KurtE - So it is, I really should read these things. Sorry for the false flag :)
  43. Replies
    45
    Views
    16,447

    Hi There, A bit of a problem here with the...

    Hi There,

    A bit of a problem here with the teensyduino 64 bit mac install and a newly installed and never executed Arduino 1.8.5, High Sierra doesn't like the arduino.app after teensyduino has...
  44. Nice, Thanks :) I was just looking through the...

    Nice, Thanks :)

    I was just looking through the beta thread, a 64 bit version as well. Nice work.

    Will give it a go a bit later, unfortunately I'm writing a user manual at the moment and I know...
  45. Ah, I am on 1.8.5 and 1.41. HS is 10.13.4. I...

    Ah, I am on 1.8.5 and 1.41. HS is 10.13.4.

    I will try the 1.42 and get back to you...

    Thanks

    Andy
  46. Thanks for the info. Same OS as well, High...

    Thanks for the info.

    Same OS as well, High Sierra.

    I have had a look for the reboot app code but it is not open source. I also looked at how to remove any USB Device cacheing in High Sierra but...
  47. Thanks for the info, are you changing both...

    Thanks for the info, are you changing both product and manufacturer name?

    Here is the code I am using:



    #include "usb_names.h"

    #define MIDI_NAME {'M','I','D','I', ' ', 'P', 'r', 'o',...
  48. Yeah, it looks like something to do with the Mac...

    Yeah, it looks like something to do with the Mac getting confused when I change the device name:



    | +-o Teensy MIDIx16/Audio@00110000 <class AppleUSBDevice, id 0x100006803, registered,...
  49. Hi Guys, So I loaded up my project, programmed...

    Hi Guys,

    So I loaded up my project, programmed first time, super duper.

    Second time programming problem is back, so know I know it is something to do with my code.

    I found the problem, if...
  50. Hi Guys, Thanks very much for your help, a...

    Hi Guys,

    Thanks very much for your help, a re-install of arduino and the teensy software has fixed the issue :)

    Also I see a fast flashing of the led when it is being programmed, I hadn't seen...
Results 1 to 50 of 55
Page 1 of 2 1 2