-
Older Activity
-
Today, 02:06 AM
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 signals. The other 6...
419 replies | 5654 view(s)
-
Today, 01:46 AM
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...
419 replies | 5654 view(s)
-
Yesterday, 11:33 PM
Can you point me to that DMA serial receive code?
419 replies | 5654 view(s)
-
Yesterday, 09:58 PM
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 DMA, since I...
419 replies | 5654 view(s)
-
Yesterday, 08:42 PM
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 2 copies. Pay...
4 replies | 98 view(s)
-
Yesterday, 05:00 PM
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 where we don't have...
419 replies | 5654 view(s)
-
Yesterday, 12:37 PM
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. Later today will try...
419 replies | 5654 view(s)
-
Yesterday, 12:19 PM
The example seems to no longer work with my ILI9341. Not sure why... can't do more right now.
419 replies | 5654 view(s)
-
Yesterday, 11:40 AM
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 triggers were needed...
419 replies | 5654 view(s)
-
Yesterday, 11:22 AM
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 set. Going to send a...
419 replies | 5654 view(s)
-
Yesterday, 03:09 AM
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.
419 replies | 5654 view(s)
-
Yesterday, 02:15 AM
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 forum these last couple...
419 replies | 5654 view(s)
-
04-11-2021, 08:12 PM
Should I make the FlexIO code just read the whole 324x244 data? That would be simpler...
419 replies | 5654 view(s)
-
04-11-2021, 07:31 PM
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 pixels and keep the 320...
419 replies | 5654 view(s)
-
04-11-2021, 07:25 PM
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 connected. All the...
419 replies | 5654 view(s)
-
04-11-2021, 06:24 PM
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 put 2 camera...
419 replies | 5654 view(s)
-
04-11-2021, 05:10 PM
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 pixels to fill in the...
419 replies | 5654 view(s)
-
04-10-2021, 10:20 PM
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 no matter what...
419 replies | 5654 view(s)
-
04-10-2021, 09:31 PM
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 all. Will convert...
419 replies | 5654 view(s)
-
04-10-2021, 12:16 PM
I started playing with FlexIO for the camera. So far it's unresponsive, but hope to have something soon...
Pulled in the latest QuadEncoder.
419 replies | 5654 view(s)
-
04-09-2021, 10:22 PM
Running the DMA version now. Wow, frame rate is so smooth. Seeing some tearing & artifacts.
419 replies | 5654 view(s)
-
04-09-2021, 09:59 PM
Which Teensy are you using? The process is different on Teensy 4.x than the older boards.
4 replies | 98 view(s)
-
04-09-2021, 09:22 PM
I finally got the display wired up and have it running here too, showing a super exciting view of my oscilloscope from the workbench.
Send another pull request, just minor stuff & compiler warnings.
419 replies | 5654 view(s)
-
04-09-2021, 07:17 PM
A little breakout board to play with the signals on a Teensy 4.1 arrived last night from OSH Park. I build one this morning.
I'm running the camera completely on 3.3V. Haven't looked at the data yet, but it...
419 replies | 5654 view(s)
-
04-09-2021, 03:14 PM
I tested just now by adding Serial.println("test"); to main.cpp. That original Makefile compiles it properly. I uploaded the hex file to a Teensy 4.0, and indeed it does print "test" every second when I open the port...
7 replies | 170 view(s)
-
04-09-2021, 11:16 AM
I believe the Himax HM01B0 camera does support HSYNC gated PCLK. Try setting bit 5 (mask 0x20) in the OSC_CLK_DIV register (address 0x3060).
Maybe change this line in HM01B0.cpp
{OSC_CLK_DIV, 0x0B},...
419 replies | 5654 view(s)
-
04-09-2021, 08:00 AM
That crystal should be fine. From everything you've said, especially that you do observe the crystal oscillating under some circumstance, I'd say the crystal is very unlikely to be your problem.
There are 2...
2 replies | 85 view(s)
-
04-08-2021, 04:21 PM
The "queue" objects are meant to let your program get access to the actual audio samples. See File > Examples > Audio > Recorder for sample code. Edit that code to delete the part which writes to a SD card and instead...
17 replies | 489 view(s)
-
04-08-2021, 08:44 AM
I also want to know why it would do this, because it should not normally blink 8 times if you have used the IMXRT1062 chip.
But I can not see your PCB. I know nothing of its design details. Even if I had the design...
12 replies | 295 view(s)
-
04-08-2021, 07:50 AM
@mamdos - Can you tell me which hardware you're using for passive PoE? If I wanted to experiment with various diodes and resistors, which gear should I buy to give me the PHY-destroying scenario you had?
4 replies | 239 view(s)
-
04-08-2021, 02:19 AM
You can use Serial.availableForWrite() to check how much space is remaining in Teensy's transmit buffer.
1 replies | 76 view(s)
-
04-07-2021, 07:12 PM
Looks like you changed Wire to Wire1 only in setup().
You also need to edit these lines in loop()
Wire.beginTransmission(address);
error = Wire.endTransmission();
28 replies | 1090 view(s)
-
04-07-2021, 09:44 AM
Sure, just connect the button to the Program pin and GND.
3 replies | 91 view(s)
-
04-07-2021, 09:26 AM
That probably explains why the ML carrier board schematic has the wrong I2C address. The Himax camera is address 0x24. OV7670 uses 0x21, according to a couple pages I could find.
419 replies | 5654 view(s)
-
04-07-2021, 06:42 AM
To try answering your question....
This really depends on what you meant by "functional difference".
The short answer is they use exactly the same communication. I have made every effort to keep the functions...
8 replies | 143 view(s)
-
04-07-2021, 12:31 AM
By default, the timers used by IntervalTimer run directly from the 24 MHz crystal clock.
No. The 24 MHz clock they use is fixed at 24 MHz, regardless of how the rest of the chip runs. Well, expect in the...
4 replies | 229 view(s)
-
04-07-2021, 12:09 AM
Reboot your PC. Then run the Teensyduino 1.53 installer before you run the Arduino IDE.
2 replies | 85 view(s)
-
04-06-2021, 08:07 PM
Oh, I know that mistake well too!
10 replies | 113 view(s)
-
04-06-2021, 06:48 PM
Looks like Sparkfun's ATP carrier board lacks any sort of USB host current limiting or even a 100 or 150 uF capacitor.
As far as I can tell none of their other boards do USB host, so they're probably not yet familiar...
419 replies | 5654 view(s)
-
04-06-2021, 06:35 PM
Did you solder GND which is next to pin 0, or GND which is between VIN and 3.3V?
The one next to pin 0 (on the audio shield) must be connected. It will not work if you used a wire only on the other GND.
10 replies | 113 view(s)
-
04-06-2021, 02:44 PM
Ok, 7mm it is!
Here's roughly what I have for a breakout board with alternate camera pins.
As you can see, I also routed pins 0-23 to a Teensy 4 layout so we can plug in shields for testing.
The 24 pin FFC...
419 replies | 5654 view(s)
-
04-06-2021, 01:09 PM
I started a quick carrier board design which brings out the pins and attempts an alternate 4 bit camera connection which should leave all the audio pins available.
Does anyone know the correct distance from the M.2...
419 replies | 5654 view(s)
-
04-06-2021, 11:50 AM
The udev rules changed since 1.53 was released.
Here are 3 possible solutions.
1: Run "sudo cp /tmp/49-teensy.rules /etc/udev/rules.d/" as the installer suggests. That will put the 1.53 version of udev rules onto...
2 replies | 93 view(s)
-
04-06-2021, 11:32 AM
If you're running I2C at the default 100 kHz clock rate, maybe try adding small capacitors between the signals and GND, located close to Teensy. Shielding the I2C wires might help too.
19 replies | 271 view(s)
-
04-06-2021, 11:18 AM
Yes, though "blind guess" would be a better phrase than "explanation" when we can't see your code or which library you're using or your wiring.
So here's a few blind guesses
1: The library might be hard-coded to...
28 replies | 1090 view(s)
-
04-06-2021, 11:10 AM
I can confirm 5.2V is perfectly fine for VIN & VUSB, as long as there isn't a large spike above 6V during startup.
I'm sad to say 0.65V is a pretty bad sign, likely hardware damage. When 3.3V power measures only...
2 replies | 98 view(s)
-
04-06-2021, 01:28 AM
Use INPUT_DISABLE
419 replies | 5654 view(s)
-
04-06-2021, 12:05 AM
The thread is #4-40.
2 replies | 67 view(s)
-
04-05-2021, 10:30 AM
Here is layer 2 from that part of the PCB.
2 replies | 123 view(s)
-
04-04-2021, 10:01 PM
Sounds like a defective or damaged board. I asked Robin to contact you directly. If you can, please try to find the 6 digit order number from your purchase.
16 replies | 287 view(s)
-
04-04-2021, 09:29 AM
Have you tried the 15 second button press to fully wipe the flash memory?
16 replies | 287 view(s)
-
04-03-2021, 01:36 PM
If you run the code from msg #6 and change the number of bytes in the line with malloc(), you should see the reported memory usage change.
10 replies | 2874 view(s)
-
04-03-2021, 01:33 PM
If you do the 15 sec button press, then wait about 1 min while it wipes all the flash, please know the LED blink program you get after that process is complete implements RawHID, not Serial. So it is supposed to be...
12 replies | 213 view(s)
-
04-03-2021, 01:31 PM
Very unlikely. If uploading still works, the hardware is almost certainly still good.
First step is to check Tools > USB Type in Arduino. If that got changed to any of the settings withing Serial, then no COM port...
12 replies | 213 view(s)
-
04-03-2021, 10:38 AM
With the audio library, you can use AudioMemoryUsage() to see how much of the AudioMemory you reserved is actually in use. Details here:
https://www.pjrc.com/teensy/td_libs_AudioConnection.html
Using the more...
10 replies | 2874 view(s)
-
04-02-2021, 09:04 PM
Yeah, saw that. The code is in so many files with so much extraneous abstraction layer stuff that it was simpler just to write minimal code from scratch. Maybe we'll use that library eventually, but pretty much...
419 replies | 5654 view(s)
-
04-02-2021, 06:32 PM
Ok, I've played with the HM01B0 camera a bit more. It seems to be 3.3V tolerant, even though Sparkfun's is powering it with 1.8V.
It's definitely transmitting 1.8V signals which is pretty marginal for receiving with...
419 replies | 5654 view(s)
-
04-02-2021, 04:15 PM
The USB-C is on the carrier board.
https://www.sparkfun.com/products/16400
419 replies | 5654 view(s)
-
04-02-2021, 03:55 PM
I got the camera to start answering I2C with the Wire scanner example. This is needed to turn make the camera respond.
// turn on power to camera (1.8V - might be an issue?)
pinMode(2, OUTPUT);
...
419 replies | 5654 view(s)
-
04-02-2021, 03:13 PM
I'm pretty sure it's too late for Sparkfun to bring out those 2 unused pins.
419 replies | 5654 view(s)
-
04-02-2021, 02:45 PM
Looks like the camera needs 1.8V signals with the way Sparkfun wired ML carrier board. But they have 2.2K pullup resistors on SDA & SCL to 3.3V, so I don't really understand how they intended this to work.
The...
419 replies | 5654 view(s)
-
04-02-2021, 12:37 PM
It is unfortunate the way Sparkfun connected the microphones.
When(if) the camera is working in 4 bit mode, perhaps we can convince them to make another base board with the camera using only pins 40-45 and connect...
419 replies | 5654 view(s)
-
04-02-2021, 12:20 PM
The tentative plan for Himax HM01B0 camera support is to use FlexIO2, similar to AN12686. I'll attach the PDF to this message.
HM01B0 pin pin# NXP Usage
---------- ---- --- -----...
419 replies | 5654 view(s)
-
04-02-2021, 11:39 AM
I will send you one soon.
419 replies | 5654 view(s)
-
04-01-2021, 03:17 PM
Maybe subscribe to this other thread about attempts to go to 8 channels.
https://forum.pjrc.com/threads/60557-48kHz-8i80-USB-Audio
2 replies | 135 view(s)
-
04-01-2021, 11:21 AM
Ok, here's a fix. Find w5100.h. It should be in {Arduino}/hardware/teensy/avr/libraries/Ethernet/src/utility. Search in the file for "__IMXRT1062__" and edit the resetSS function like this:
#elif...
6 replies | 190 view(s)
-
04-01-2021, 10:47 AM
Looks like we may be doing something too fast for that old W5100 chip.
I did get W5100 to work with Teensy 4.0 by setting Tools > CPU Speed to 150 MHz.
And to answer your question:
It's been used many...
6 replies | 190 view(s)
-
04-01-2021, 10:36 AM
Looks like W5100 may be not working with Teensy 4.0.
I tested just now. W5200 & W5500 definitely do work with Teensy 4.0, but W5100 doesn't seem to initialize.
All 3 work work with Teensy LC & 3.2.
6 replies | 190 view(s)
-
04-01-2021, 02:34 AM
Here's one that's a DIY PCB, but it was meant for Teensy LC.
http://rasterweb.net/raster/2016/02/19/teensy-lc-bob-v1-2/
4 replies | 188 view(s)
-
03-31-2021, 08:41 PM
It really depends on what sort of applications you will develop.
Most programs use RAM1 for nearly all variables and RAM2 for buffers and larger arrays. Sometimes the PSRAM is really needed when you just can't fit...
4 replies | 142 view(s)
-
03-31-2021, 06:12 PM
That's really a question for Sparkfun.
While I understand everyone has a lot of questions about this not-yet-announced product, please try to be patient. Holding a Q & A session before release really isn't...
419 replies | 5654 view(s)
-
03-31-2021, 03:31 PM
No, there's no Ethernet PHY support.
419 replies | 5654 view(s)
-
03-31-2021, 10:19 AM
I've added a BGA pinout diagram to the T4 bootloader chip page.
177 replies | 20980 view(s)
-
03-31-2021, 09:56 AM
I have not personally tested this way, but from NXP's documentation it probably should work.
As with all freshly designed PCBs, best to build & verify only a few prototypes before committing to production quantities....
3 replies | 107 view(s)
-
03-31-2021, 09:49 AM
Hold the control key and click Teensyduino. Click Show Package Contents.
In the new package contents window, navigate to Contents > Java > hardware > teensy > avr > cores. There you will find folders named teensy3...
5 replies | 1854 view(s)
-
03-31-2021, 09:13 AM
Teensy MicroMod is entering beta testing. A beta test units have been sent, to Defragster, KurtE, and mjs513. A few more might become available, if anyone is *really* interested.
Teensy MicroMod is a collaboration...
419 replies | 5654 view(s)
-
03-30-2021, 10:33 AM
That pattern, alternating between 0 and 1 or between 0 and -1, is exactly what happens when only 1 of the 2 signal wires is connected.
5 replies | 183 view(s)
-
03-30-2021, 08:57 AM
On both Teensy 4.0 and 3.5, the timers run from a peripheral clock which is slower than the CPU clock.
8 replies | 425 view(s)
-
03-29-2021, 11:07 PM
Try replacing "reinterpret_cast<char*>(sbrk(0))" with "(char *)&_heap_end".
EDIT: oh, wait... using "&top" is completely wrong for Teensy 4.x.
Try this instead:
extern unsigned long _heap_start;
extern...
10 replies | 2874 view(s)
-
03-29-2021, 01:44 PM
I have Windows 7 Home Premium here on a laptop, but it's got an i7-2760QM processor, not Celron. It's a relatively clean & unused Windows 7 install, mostly just for testing Teensy hardware. Do you think I could...
2 replies | 143 view(s)
-
03-29-2021, 11:27 AM
We should probably also (someday) extend AudioEffectDelayExternal to have a mode where it just works with a user allocated buffer. Then it could be used with 16 MB on Teensy 4.1. Not only can you have twice as much...
5 replies | 199 view(s)
-
03-29-2021, 10:05 AM
Yes, eventually we may need I2S input with scaling. Or maybe a floating point extension like Chip's mods to the library. But at this moment, so many other things are much higher priority, so it's unlikely to happen...
17 replies | 489 view(s)
-
03-28-2021, 08:35 PM
I ordered one of these IM69D130 boards from Digikey. It'll probably arrive in 1 week.
My gut feeling is the code from msg #1 was probably working, but the signal level is too low to see with only 2 digits past...
17 replies | 489 view(s)
-
03-28-2021, 08:20 PM
I'm not a Raspberry Pi expert, but my understanding is their boards need 5V power and they create their own 3.3V. That's also how Teensy normally works.
The 250 mA output is for Teensy's 3.3V regulator. That ought...
2 replies | 106 view(s)
-
03-28-2021, 07:32 PM
As AudioEffectDelayExternal exists today, no. It doesn't support the 8 MB PSRAM chip.
But it should be possible to add PSRAM chip support to AudioEffectDelayExternal, since it's pretty similar to 23LC1024. Some...
5 replies | 199 view(s)
-
03-28-2021, 01:53 PM
Indeed blocks are used for efficiency.
The "patch cord" connections between audio processing objects are implemented using shared reference counted copy-on-write blocks. Usually the last 2 functions are...
3 replies | 178 view(s)
-
03-27-2021, 02:15 PM
Not quite sure what you really want to ask, but I see 2 specific questions, so I'll try to answer those.
Reading from RAM takes 2 cycles, or only 1 cycle if the previous instruction is a "related" read.
I...
4 replies | 149 view(s)
-
03-27-2021, 01:58 PM
Before you dive into the complex low-level details, I'd suggest first running this very simple benchmark.
https://github.com/PaulStoffregen/USB-Serial-Print-Speed-Test/blob/master/usb_serial_print_speed.ino
If you...
3 replies | 196 view(s)
-
03-27-2021, 01:53 PM
It does indeed use DMA. There are the specific lines for USB serial transmit.
usb_prepare_transfer(xfer, txbuf, TX_SIZE, 0);
arm_dcache_flush_delete(txbuf,...
3 replies | 196 view(s)
-
03-27-2021, 09:32 AM
Remember, we can't see your screen, we can't know what you're actually clicking or doing while attempting to install the software. Unless you do something like record a screencast video to actually show what you're...
10 replies | 259 view(s)