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

Search:

Type: Posts; User: jonr

Page 1 of 10 1 2 3 4

Search: Search took 0.01 seconds.

  1. It would be really nice if the flasher code could...

    It would be really nice if the flasher code could directly accept any .hex lines it is likely to receive.
  2. Replies
    2
    Views
    59

    I would study the example below. Look closely at...

    I would study the example below. Look closely at how/where "client" is set.

    https://gist.github.com/atomsfat/1813823
  3. Replies
    84
    Views
    11,390

    > A simple hardware diagnostic using patterns of...

    > A simple hardware diagnostic using patterns of red LED blinks is also planned

    Nice! - black boxes are hard to debug. Would be very helpful to distinguish between "loader can't talk to MCU",...
  4. That is my concern. Some protocols are likely to...

    That is my concern. Some protocols are likely to lose exactly an entire line. This could get flashed and the error might not be immediately obvious.
  5. > you need to type in ":flash XXXX", where XXXX...

    > you need to type in ":flash XXXX", where XXXX is the number of lines reported by the program

    I recommend that you don't do this. Type in ":flash XXXX", where XXXX is the number of lines you...
  6. Replies
    22
    Views
    315

    For speaker analysis and correction, this is...

    For speaker analysis and correction, this is great.

    https://www.roomeqwizard.com/

    If you want to do convolution based correction, then just use the impulse response from REW and also use...
  7. Replies
    22
    Views
    315

    Yes, specifically "fast, partitioned convolution".

    Yes, specifically "fast, partitioned convolution".
  8. Replies
    22
    Views
    315

    While it's only necessary for high resolution at...

    While it's only necessary for high resolution at low frequencies, I am able to run 12288 taps, stereo.
  9. Replies
    18
    Views
    356

    OK, I checked and some notes: T4 with a small...

    OK, I checked and some notes:

    T4 with a small heat sink attached
    It runs about 45C (far far different than the graph)
    Slowing from 600 to 528 is only a couple of degrees cooler
    wfi makes no...
  10. Replies
    18
    Views
    356

    In many cases, one could include this in their...

    In many cases, one could include this in their idle loop, which I understand reduces power/heat more than slowing down to 450 mhz.

    asm volatile("wfi");
  11. Replies
    18
    Views
    356

    My guess is that at 450 mhz, it will last a very...

    My guess is that at 450 mhz, it will last a very long time. And most applications won't notice the slower speed.
  12. Replies
    616
    Views
    56,702

    There was some discussion of strlcpy(). IMO,...

    There was some discussion of strlcpy(). IMO, don't just use it, use it and check the return value. Ie:



    if (strlcpy(dest, src, sizeof(dest)) > sizeof(dest))
    handle_error();
  13. Replies
    18
    Views
    356

    3 years life at 600 mhz - that could be a problem.

    3 years life at 600 mhz - that could be a problem.
  14. Sure, you could pack four 10 bit samples into...

    Sure, you could pack four 10 bit samples into every five bytes. But consider other approaches - like a teensy 4.1 or a larger sd card.
  15. Replies
    49
    Views
    1,441

    My experience is that paste is better, even when...

    My experience is that paste is better, even when you don't have a stencil. But I save time and frustration - unless JLCPCB puts most of the parts on, I always order a stencil. More advice - use a...
  16. Replies
    22
    Views
    315

    I agree with tomas. Is there a tool for...

    I agree with tomas. Is there a tool for predicting how many bits you need for how much distortion?
  17. Replies
    14
    Views
    202

    Consider either headphones (low bass with low...

    Consider either headphones (low bass with low power) or a subwoofer (which will need size and power).
  18. Replies
    20
    Views
    2,031

    For about $15, you can buy an external TOSLINK...

    For about $15, you can buy an external TOSLINK DAC box. Not the lowest cost option, but will probably outperform the PT8211.
  19. Replies
    95
    Views
    23,662

    Yes, it works on both 4.0 and 4.1.

    Yes, it works on both 4.0 and 4.1.
  20. Replies
    95
    Views
    23,662

    See here for a newer, better teensy 3.x version:...

    See here for a newer, better teensy 3.x version:

    https://forum.pjrc.com/threads/43165-Over-the-Air-firmware-updates-changes-for-flashing-Teensy-3-5-amp-3-6
  21. Nice work Joe.

    Nice work Joe.
  22. Replies
    16
    Views
    406

    I use the audio library with USB input and SPDIF...

    I use the audio library with USB input and SPDIF optical output. I have no noise issues.

    You haven't explained what you need to do, but stay digital as much as possible and if you have to do a...
  23. Replies
    49
    Views
    1,441

    Nice! Can you make a iMXRT1062 version too? ...

    Nice!

    Can you make a iMXRT1062 version too? :-)
  24. Replies
    11
    Views
    214

    For less noise, you should be doing a...

    For less noise, you should be doing a differential read on two analog inputs.
  25. What options are available on a teensy to do...

    What options are available on a teensy to do bounds checking? Ie, what's the easiest way to find the above error?
  26. Replies
    106
    Views
    3,981

    IMO, the memory allocation details should be...

    IMO, the memory allocation details should be abstracted away for the typical use case. Ie, a single mallocX() call where you optionally pass it a hint as to the speed desired (or other...
  27. Replies
    6
    Views
    294

    I'd use the existing routine for writing blocks. ...

    I'd use the existing routine for writing blocks. Specifically:

    void eeprom_write_block(const void *buf, void *addr, uint32_t len)
  28. Replies
    6
    Views
    149

    I'm curious, is there any reason that the library...

    I'm curious, is there any reason that the library shouldn't have an empty constructor and do the initialization in begin()? In any case, just crashing is poor design.
  29. Replies
    695
    Views
    441,672

    My understanding is that if you omit the stop,...

    My understanding is that if you omit the stop, then the bus isn't released and, with your slave chip/application, the following start isn't needed/tolerated.
    But the libraries don't provide a way...
  30. Replies
    695
    Views
    441,672

    Good that you found something that works. As I...

    Good that you found something that works. As I see it, your application could use less buffer space if it had something like this for all but the first and last portions:
    ...
  31. Replies
    695
    Views
    441,672

    You should post your actual code. I don't...

    You should post your actual code. I don't know much about it, but possibly use wait_idle() between partial writes.
  32. Replies
    695
    Views
    441,672

    Can you do many smaller writes? What is the...

    Can you do many smaller writes? What is the target chip and software running on it?
  33. There is a nice spreadsheet coefficient...

    There is a nice spreadsheet coefficient calculator/visualizer here:

    https://www.minidsp.com/applications/advanced-tools/advanced-biquad-programming

    +1 on using the teensy code (see...
  34. Thread: Audio filter

    by jonr
    Replies
    10
    Views
    448

    > The geometric mean gives 965Hz, i.e. 35Hz...

    > The geometric mean gives 965Hz, i.e. 35Hz bellow the 1000Hz

    I get:

    sqrt(1390*720) = 1000.4 Hz
  35. Replies
    84
    Views
    11,390

    If you really need a custom iMXRT1062 design now,...

    If you really need a custom iMXRT1062 design now, then I'd design it for both a MKL02 and a jtag connector.
  36. Thread: Audio filter

    by jonr
    Replies
    10
    Views
    448

    >but not symmetrical around 1000Hz. You...

    >but not symmetrical around 1000Hz.

    You should use the geometric mean and with that, it is symmetrical.
  37. You might as well get used to the teensy way of...

    You might as well get used to the teensy way of debugging. Lots of print statements, sometimes with a Serial.flush() followed by a delay.
  38. Replies
    18
    Views
    493

    Two questions: I use partitioned fast...

    Two questions:

    I use partitioned fast convolution to greatly reduce filtering delays. Can't partitioning be used for this application?

    If one does use 96 biquad bandpass filters (which seems...
  39. Replies
    18
    Views
    493

    I only looked at it briefly, but that code...

    I only looked at it briefly, but that code appears to be doing a FFT and then combining bins. Not clear why so many people write code without comments.
  40. Replies
    18
    Views
    493

    Agreed, the typical person watching is likely to...

    Agreed, the typical person watching is likely to prefer larger bins and less delay. You can still use the same number of lights, probably most people won't notice the lack of accuracy on the low...
  41. Replies
    18
    Views
    493

    +1 on combining bins. Say you down sample to 11K...

    +1 on combining bins. Say you down sample to 11K sps, then run a 22,000 sample FFT. Each bin would represent .5 hz.

    The DD4WH code is an example of large FFTs.
  42. If one is going to mix digital circuitry with...

    If one is going to mix digital circuitry with analog audio, better to use differential/balanced for the audio. Or stick with digital audio (eg, an i2s microphone).
  43. Thread: No /dev device

    by jonr
    Replies
    9
    Views
    189

    Is the teensy loaded with code that emulates a...

    Is the teensy loaded with code that emulates a serial port?
  44. With com0com, you would just have to write the...

    With com0com, you would just have to write the code to move bytes over TCP.

    http://com0com.sourceforge.net/

    Or possibly this:

    https://tibbo.com/support/downloads/tdst.html
  45. Replies
    95
    Views
    23,662

    Very minor change - leave interrupts off when...

    Very minor change - leave interrupts off when done flashing.
  46. With interrupts, it's critical to be clear about...

    With interrupts, it's critical to be clear about during which stage. The first when data is being moved from input to upper flash and the second when upper flash is being moved down to lower...
  47. Replies
    23
    Views
    613

    The ESP-01 seems like a good fit.

    The ESP-01 seems like a good fit.
  48. I didn't look closely at what you are doing, but...

    I didn't look closely at what you are doing, but in general, for low jitter input, you can disable interrupts while waiting for the next pulse. Or use an interrupt of the highest priority to capture...
  49. Replies
    616
    Views
    56,702

    I would have some use for a teensy version of...

    I would have some use for a teensy version of OpenLog that uses MTP over usb. But would have to have similarly low power consumption.
  50. A fine but important point. When you use the...

    A fine but important point. When you use the teensy clock to measure a ratio between two external clocks, drift in the teensy clock is mostly irrelevant. Because it effects both measurements...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4