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

Search:

Type: Posts; User: PaulStoffregen

Page 1 of 10 1 2 3 4

Search: Search took 0.11 seconds.

  1. Yes, but it's not free. ...

    Yes, but it's not free.

    https://www.amazon.com/dp/0124080820

    You can also find this linked from the Teensy 4.1 product page.

    ARM also has this info on their website in various architecture...
  2. That only affects the flag within the peripheral....

    That only affects the flag within the peripheral. It has no effect on the ARM processor. It only changes the signal the peripheral is able to send to the processor.




    When the ARM processor...
  3. Replies
    1
    Views
    51

    Any chance for a photo with the instrument...

    Any chance for a photo with the instrument plugged in and being played?
  4. Yes, #2. Well, unless the library has a...

    Yes, #2. Well, unless the library has a constructor or other way to specify which port. Some newer libraries have this. But most older libraries have "Wire" hard coded. In that case, you will...
  5. Replies
    1
    Views
    35

    Use Serial.available(). Or if you really want...

    Use Serial.available().

    Or if you really want to dive into the low-level details, look at the code in HardwareSerial.cpp. You will also need to read the reference manual to learn the LPUART...
  6. You need to have at least one non-USB input or...

    You need to have at least one non-USB input or output object. USB can't cause the audio library to update. Just add an I2S input or output, even if it's unused.

    This detail is documented in the...
  7. Replies
    7
    Views
    866

    Maybe lame anti-virus software is interfering?

    Maybe lame anti-virus software is interfering?
  8. Replies
    7
    Views
    866

    I clicked the link and it downloaded the program....

    I clicked the link and it downloaded the program.




    Please try again. If it's still not working, maybe give us a screenshot so we can specifically what you're clicking and the exact "not...
  9. Replies
    21
    Views
    388

    Sounds like hardware failure. I really want to...

    Sounds like hardware failure.

    I really want to figure out what happened here. I've asked Robin to contact you next week.
  10. Replies
    10
    Views
    212

    ADC input is still experimental on Teensy 4.x. ...

    ADC input is still experimental on Teensy 4.x. One of the many features it's missing is "update responsibility". That is why you need to add an I2S output to make it work.

    If you use ADC input...
  11. Replies
    21
    Views
    2,793

    Yes, that's the general idea. I would add 2 more...

    Yes, that's the general idea. I would add 2 more things to that list.

    4: AudioStream (audio library) update() functions
    5: Update the asynchronous rate feedback

    But this simple list obscures...
  12. Replies
    21
    Views
    388

    I'd really like to know what went wrong. If...

    I'd really like to know what went wrong.

    If you're willing to measure more voltages, on the bottom side are 4 small round test pads, located between the rectangle pads for pins 24-33. Can you...
  13. Replies
    8
    Views
    1,173

    It works on all ARM Cortex-M processors.

    It works on all ARM Cortex-M processors.
  14. Those writes are just configuring the timers,...

    Those writes are just configuring the timers, which are used to generate hardware trigger events to cause the DMA to move data from memory to GPIO. And the "FTM" timers are only on Teensy 3. Look...
  15. That other thread is still the best place to...

    That other thread is still the best place to discuss more-than-stereo USB audio, because everyone who's interested is already following that thread.
  16. Replies
    9
    Views
    1,220

    The main issue I can see is whether FlexSPI can...

    The main issue I can see is whether FlexSPI can be configured to generate such a slow SPI clock speed. I seem to recall there's a bit somewhere which cuts all the clock speeds in half. But I'm not...
  17. Replies
    21
    Views
    388

    I'm a bit confused, trying to parse this ...

    I'm a bit confused, trying to parse this



    Neither board has 3V power? Or one does and the other does not?
  18. Replies
    21
    Views
    388

    If it's completely unresponsive, let's first look...

    If it's completely unresponsive, let's first look at whether it's getting power....

    Try using a DC voltmeter to measure VIN-GND (should be about 5V) and 3.3V-GND (should be 3.3V).
  19. The jack on the audio shield is output only,...

    The jack on the audio shield is output only, meant for headphones. To get a signal into the audio shield, you need to connect it here:

    24472




    Probably best to start with this 31 page...
  20. Usually these sorts of mysterious problems are...

    Usually these sorts of mysterious problems are due to a buffer overflow. Adding even an unused variable tends to cause the overwriting to corrupt something else (which is less critical and doesn't...
  21. You need to edit usb_desc.h. See the comments in...

    You need to edit usb_desc.h. See the comments in that file for details. Pay attention to the folder name, as 2 copies exist for Teensy 3 vs 4.
  22. Very difficult to say what's going wrong here,...

    Very difficult to say what's going wrong here, but it does remind me of painful problems as couple people experienced with Traco DC-DC step down converters they bought from Adafruit. As I recall,...
  23. With Teensy 4.0 / 4.1 you could do this using...

    With Teensy 4.0 / 4.1 you could do this using SPI1 on pins 26 & 27.

    But with Teensy 4.0 those pins are on the bottom side pads which aren't as convenient as the outside edge pins. The SPI...
  24. Sure, why not. 24463 24464 Hopefully no...

    Sure, why not.

    24463

    24464

    Hopefully no big surprises here, since you should be able to see these traces by just looking at the PCB before soldering.
  25. Replies
    10
    Views
    212

    It is indeed unfinished, but does partially work....

    It is indeed unfinished, but does partially work.

    Make sure you're using the latest beta. In Arduino, click Help > About to check which version you have installed. If it's older than 1.47-beta7,...
  26. Any chance the file is actually stereo data? In...

    Any chance the file is actually stereo data? In that case, the WAV file player will de-interleave the samples and send each channel to its 2 outputs. But the raw player will just give you all the...
  27. Replies
    2
    Views
    89

    Very unlikely your Teensy 4.1 is defective. The...

    Very unlikely your Teensy 4.1 is defective. The Linux kernel is detecting "New USB device found, idVendor=16c0, idProduct=0478, bcdDevice=1.05", which is a strong indication the bootloader is...
  28. The bottom (green) trace isn't SPI at all. It's...

    The bottom (green) trace isn't SPI at all. It's from this:



    void loop() {
    while (1) {
    digitalToggleFast(2);
    }
    }
  29. Replies
    205
    Views
    13,896

    I've not heard of anyone has writing code for...

    I've not heard of anyone has writing code for Pico to work with Teensy's audio shield. I did see a few people working on generic audio stuff (not specifically for SGTL5000 or this shield) but it...
  30. SPIFIFO isn't really recommended anymore, but I...

    SPIFIFO isn't really recommended anymore, but I decided to give it a quick try just to see how much of the CPU time on a Teensy 3.2 would remain unused if an IntervalTimer uses it every 5...
  31. Replies
    16
    Views
    1,155

    Yes, there is a solution. All you need to do is...

    Yes, there is a solution. All you need to do is use a recent beta version, because PDM support for Teensy 4.x was added after 1.53 was released.

    Get it here:...
  32. Replies
    525
    Views
    8,955

    Yup, let's fix the struct in imxrt.h and see if...

    Yup, let's fix the struct in imxrt.h and see if anything breaks. ;)


    EDIT: committed a fix. https://github.com/PaulStoffregen/cores/commit/64f7d7c1eededf0102510530a4e621395c4d51f7
  33. Replies
    525
    Views
    8,955

    Yup, sent a pull request just now. I'm not sure...

    Yup, sent a pull request just now. I'm not sure it's 100% working yet. I'm seeing a lot more VSYNC interrupts than screen refreshes. I added a some code to print the actual refresh rate.
  34. Replies
    525
    Views
    8,955

    Opps, sorry, I made some mistakes. Working on it...

    Opps, sorry, I made some mistakes. Working on it now...
  35. Replies
    525
    Views
    8,955

    Send a pull request for continuous FlexIO DMA. I...

    Send a pull request for continuous FlexIO DMA. I took the liberty of replacing Defragster's continuous "F" mode in hm01b0_testv3.ino.
  36. Replies
    525
    Views
    8,955

    I'm working right now to add start / stop for...

    I'm working right now to add start / stop for FlexIO, as similar to Kurt's API as I can.
  37. Replies
    525
    Views
    8,955

    Just wanted to ask which buffers are really meant...

    Just wanted to ask which buffers are really meant to be DMAMEM vs DTCM?

    I see this in the examples.


    uint8_t frameBuffer[(324) * 244];
    uint16_t imageBuffer[(324) * 244]; DMAMEM
    uint8_t...
  38. Replies
    525
    Views
    8,955

    Yes, I believe your library tries to do the...

    Yes, I believe your library tries to do the dynamic allocation of FlexIO resources, right?

    The camera interface is a bit special through, because only shifters 3 & 7 support receiving parallel...
  39. Replies
    525
    Views
    8,955

    Yup, that did the trick. I see where I went...

    Yup, that did the trick. I see where I went wrong. A silly mistake really. Sent a pull request to fix it.

    EDIT: with the latest updates I'm getting a really dark picture...
  40. Replies
    525
    Views
    8,955

    Can you point me to that DMA serial receive code?

    Can you point me to that DMA serial receive code?
  41. Replies
    525
    Views
    8,955

    Before trying to answer, I need to admit two...

    Before trying to answer, I need to admit two things.

    1: I've only read Kurt's code quickly, haven't actually worked with it or analyzed carefully
    2: Obviously I don't know everything about FlexIO...
  42. I believe all you need to do with Teensy 4.0 &...

    I believe all you need to do with Teensy 4.0 & 4.1 is edit the sample rate number in AudioStream.h.

    That file is located inside your Arduino folder. When you search for that file, you should find...
  43. Replies
    525
    Views
    8,955

    Hope you can find whatever I missed on the FlexIO...

    Hope you can find whatever I missed on the FlexIO hardware trigger. It's probably something "trivial" I overlooked.




    I wouldn't toss that code! It still could be really useful on Teensy 4.1...
  44. Replies
    525
    Views
    8,955

    Looks like my display woes might be from pulling...

    Looks like my display woes might be from pulling in the latest ILI9341_t3n. When I run graphicstest from ILI9341_t3, my display works. But graphicstest from ILI9341_t3n now gives a white screen. ...
  45. Replies
    525
    Views
    8,955

    The example seems to no longer work with my...

    The example seems to no longer work with my ILI9341. Not sure why... can't do more right now.
  46. Replies
    525
    Views
    8,955

    Sent a PR with the work-in-progress DMA code. ...

    Sent a PR with the work-in-progress DMA code.

    https://github.com/mjs513/TMM-HB01B0-Camera/pull/7/files

    When you run it, you'll probably see this in the serial monitor



    ERROR: 19764 manual...
  47. Replies
    525
    Views
    8,955

    I'm playing the FlexIO DMA. Can't seem to get...

    I'm playing the FlexIO DMA. Can't seem to get hardware triggering to work, but the DMA does transfer the image if I cheat and manually trigger the DMA channel each time the shifter status flag is...
  48. Replies
    525
    Views
    8,955

    Ok, I just sent a pull request with initial...

    Ok, I just sent a pull request with initial FlexIO. No DMA yet, but it should be fairly "easy" to just set up a DMA transfer which reads from that FlexIO register and writes to the buffer.
  49. Replies
    525
    Views
    8,955

    I updated to the latest TMM-HB01B0-Camera from...

    I updated to the latest TMM-HB01B0-Camera from github, in prep to clean up my flexio stuff, but it seems I no longer get a working image from either "s" or DMA. I'll admit, I fell behind on the...
  50. Replies
    525
    Views
    8,955

    Should I make the FlexIO code just read the whole...

    Should I make the FlexIO code just read the whole 324x244 data? That would be simpler...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4