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.14 seconds.

  1. Replies
    16
    Views
    247

    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.
  2. Replies
    10
    Views
    162

    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...
  3. Replies
    21
    Views
    2,717

    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...
  4. Replies
    16
    Views
    247

    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...
  5. Replies
    8
    Views
    1,138

    It works on all ARM Cortex-M processors.

    It works on all ARM Cortex-M processors.
  6. 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...
  7. 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.
  8. Replies
    8
    Views
    186

    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...
  9. Replies
    16
    Views
    247

    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?
  10. Replies
    16
    Views
    247

    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).
  11. 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...
  12. 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...
  13. 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.
  14. 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,...
  15. 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...
  16. 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.
  17. Replies
    10
    Views
    162

    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,...
  18. 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...
  19. Replies
    2
    Views
    78

    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...
  20. 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);
    }
    }
  21. Replies
    205
    Views
    13,706

    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...
  22. 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...
  23. Replies
    16
    Views
    1,138

    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:...
  24. Replies
    525
    Views
    8,405

    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
  25. Replies
    525
    Views
    8,405

    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.
  26. Replies
    525
    Views
    8,405

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

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

    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.
  28. Replies
    525
    Views
    8,405

    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.
  29. Replies
    525
    Views
    8,405

    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...
  30. Replies
    525
    Views
    8,405

    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...
  31. Replies
    525
    Views
    8,405

    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...
  32. Replies
    525
    Views
    8,405

    Can you point me to that DMA serial receive code?

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

    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...
  34. 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...
  35. Replies
    525
    Views
    8,405

    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...
  36. Replies
    525
    Views
    8,405

    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. ...
  37. Replies
    525
    Views
    8,405

    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.
  38. Replies
    525
    Views
    8,405

    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...
  39. Replies
    525
    Views
    8,405

    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...
  40. Replies
    525
    Views
    8,405

    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.
  41. Replies
    525
    Views
    8,405

    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...
  42. Replies
    525
    Views
    8,405

    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...
  43. Replies
    525
    Views
    8,405

    Somehow I was under the impression we were...

    Somehow I was under the impression we were keeping the first 320 pixels and discarding the last 4.

    Just to confirm, on each line of 324 pixels, we're supposed to ignore the first 2 and last 2...
  44. Replies
    525
    Views
    8,405

    I just connected all 3 power pins to 3.3V. ...

    I just connected all 3 power pins to 3.3V.




    That test board doesn't connect the video signals at all. They just route to those pads in the middle of the PCB. Only power and I2C are actually...
  45. Replies
    525
    Views
    8,405

    Right now I'm using Sparkfun's ML carrier board...

    Right now I'm using Sparkfun's ML carrier board with ILI9341 connected to the left side pins. Nothing special on the HM01B0 camera.

    On the breakout board, which is still at least a week away, I...
  46. Replies
    525
    Views
    8,405

    More fiddling with FlexIO... and I finally have...

    More fiddling with FlexIO... and I finally have it somewhat working. For reasons I don't fully understand, it's capturing only 7 of every 8 pixels. So I added a bit of kludge code to add 4 white...
  47. Replies
    525
    Views
    8,405

    Another detail to keep in mind is the display...

    Another detail to keep in mind is the display redraws the screen from its own frame buffer at a speed probably less than 60 Hz. I recall seeing a register to adjust the internal refresh speed. But...
  48. Replies
    525
    Views
    8,405

    I'm working on FlexIO again today. Building test...

    I'm working on FlexIO again today. Building test code inside your lib and targeting 8 bit mode, mostly just overriding the readFrame() function while I struggle to get it just working in any way at...
  49. Replies
    525
    Views
    8,405

    I started playing with FlexIO for the camera. So...

    I started playing with FlexIO for the camera. So far it's unresponsive, but hope to have something soon...




    Pulled in the latest QuadEncoder.
  50. Replies
    525
    Views
    8,405

    Running the DMA version now. Wow, frame rate is...

    Running the DMA version now. Wow, frame rate is so smooth. Seeing some tearing & artifacts.
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4