Forum Rule: Always post complete source code & details to reproduce any issue!
Tab Content
  • KurtE's Avatar
    Yesterday, 06:12 PM
    @PaulStoffregen - Wondering if I should update HardwareSerial to check the state of the CCM_CSCDR1 And properly configure the baud rate for the input clock of either 24 or 80mhz? My guess is to leave the default...
    7 replies | 125 view(s)
  • KurtE's Avatar
    Yesterday, 02:41 PM
    Currently the Serial code on T4.x is using the fixed 24mhz clock and probably the min divide is which gives your 6M... I believe it would be possible to make it faster. I have never tried it: In the...
    7 replies | 125 view(s)
  • KurtE's Avatar
    Yesterday, 02:11 PM
    Sorry, there is almost nothing shown here to know where your memory is being used. Also I don't know what it means to say library made with the faust IDE... But it does sound like either: a) there are some very...
    1 replies | 32 view(s)
  • KurtE's Avatar
    05-05-2021, 08:33 PM
    Glad it is looking promising!
    9 replies | 240 view(s)
  • KurtE's Avatar
    05-05-2021, 03:29 PM
    Sorry, I am not much of a MAC person. I do have an older Mac Air, that I use as secondary or third development/test machine. But might help to know things like what version of MAC OS are your running? Answer from...
    15 replies | 265 view(s)
  • KurtE's Avatar
    05-05-2021, 12:32 PM
    Good Morning all, @mjs513 - Looks like fun... Downloaded and builds :D Will have to play later. The last few days started to do some more needed outside work, and did some mowing, and some hand brush clearing...
    873 replies | 17771 view(s)
  • KurtE's Avatar
    05-04-2021, 08:36 PM
    If it were me, I would run some type of check on Mac to make sure there is not something corrupted or going bad. Then would probably delete arduino install, and install fresh copy and see if that helps
    15 replies | 265 view(s)
  • KurtE's Avatar
    05-04-2021, 02:34 PM
    Yes you can use the same button... Although your current organization of the code may make it a little more difficult... That is you have section like: if (MSGroen.fallingEdge()) { Serial.println("MEDISCHE...
    1 replies | 67 view(s)
  • KurtE's Avatar
    05-04-2021, 01:20 PM
    Hello Jeroen, Hard to say yet what is going on. What happens when there is a short often depends on what is shorted. For example if VIN/GND shorted directly then no power goes to teensy, and it would likely...
    9 replies | 240 view(s)
  • KurtE's Avatar
    05-04-2021, 01:55 AM
    Again have no idea of your requirements. Like does your program need to do anything while the camera is reading using SPI? If not, it can be as simple as: SPI.transfer(nullptr, receive_buffer, count); And the...
    4 replies | 162 view(s)
  • KurtE's Avatar
    05-03-2021, 11:44 PM
    I am assuming T4.1 as you mention QSPI... Assuming this, than you can access that 16mb memory is in the linear address space, so you can simply use addresses in that range. Two ways to allocate: define variables...
    4 replies | 162 view(s)
  • KurtE's Avatar
    05-03-2021, 08:50 PM
    You are welcome, Glad you got it working!
    3 replies | 112 view(s)
  • KurtE's Avatar
    05-03-2021, 07:15 PM
    Sorry, hard to know exactly what is going on here without a lot more details. Example what do you mean by crash? Is the program restarting? Is it hanging, random results? Also things like what is display? what...
    3 replies | 112 view(s)
  • KurtE's Avatar
    05-03-2021, 04:10 PM
    Yes should be fun! Pushed the files up to: https://github.com/KurtE/Teensy3.1-Breakout-Boards/tree/master/MicroMod The zip files are the ones I sent to OSHPark... Thought of again using PCBWay, but went more local
    873 replies | 17771 view(s)
  • KurtE's Avatar
    05-03-2021, 03:53 PM
    @mjs513 - Sounds like you have been busy! At some point may take a look, but math makes my head hurt ;) Side note: I did order a set of 3 MMOD boards from OSHPark as well as 3 of the Himax to OV7670 adapters... ...
    873 replies | 17771 view(s)
  • KurtE's Avatar
    05-03-2021, 12:32 AM
    I will probably order a set tomorrow... Was playing around with another layout of it... Not cleaned up... Lots of wasted space on top, but idea is with that camera could put a little double faced tape behind it...
    873 replies | 17771 view(s)
  • KurtE's Avatar
    05-02-2021, 01:16 PM
    Morning all, @defragster - I have not run any tests yet today, but it looks like you have been busy. When mine was resetting I put my finger on Teensy and VR... and did not feel anything overly warm. That is...
    873 replies | 17771 view(s)
  • KurtE's Avatar
    05-02-2021, 01:48 AM
    Sorry been screwing around today... Quick and dirty so far, need to add labels...
    873 replies | 17771 view(s)
  • KurtE's Avatar
    05-01-2021, 08:44 PM
    Sorry others can answer this better than I can. But several of were playing with Fat16/Fat32 and ExFat to make them work with MTP, and MSC and ... So learned a little bit. Fat32 - can address up to 127GB volume... ...
    3 replies | 119 view(s)
  • KurtE's Avatar
    05-01-2021, 07:36 PM
    Also looks like Arducam will be selling that same one... They show for preorder and then direct you to uctronics.
    873 replies | 17771 view(s)
  • KurtE's Avatar
    05-01-2021, 06:38 PM
    Looks good, out of stock, signed up for notify... But still makes me wonder if any of the issues we are seeing on either board have to do with not fully following the doc...
    873 replies | 17771 view(s)
  • KurtE's Avatar
    05-01-2021, 04:35 PM
    On a slightly different/related topic. So far I have not ordered my MMOD breakout board. Still trying to decide a few things like: USB-C/USB-B cable... Nice thing of C is it can deliver more amperage. Again...
    873 replies | 17771 view(s)
  • KurtE's Avatar
    05-01-2021, 03:10 PM
    Thanks, I should probably reread the PDF file... Actually I have it open now as I was wondering.... @Paul - several times when I would have the PJRC carrier board stop working, I thought I heard a pop sound.......
    873 replies | 17771 view(s)
  • KurtE's Avatar
    05-01-2021, 02:38 PM
    Interesting question to self and others with the ML board. I am suing pins D0, D1, A0, A1 for debug pins.... (4, 5, 14, 15) But now if you look at the Schematic: It looks like D1 is also the Camera Trigger pin? ...
    873 replies | 17771 view(s)
  • KurtE's Avatar
    05-01-2021, 02:17 PM
    Yep, looks different with the other camera: Looks different...
    873 replies | 17771 view(s)
  • KurtE's Avatar
    05-01-2021, 02:00 PM
    Morning all, I thought I would do a little testing on the ML board, to avoid the maybe power issue... But the interesting thing on this board with it's camera I do not get a good FlexIO image... It is like there...
    873 replies | 17771 view(s)
  • KurtE's Avatar
    04-30-2021, 04:51 PM
    I am letting it cool off again... Wondering about power management for this carrier board? That is I believe the Sparkfun breakout boards have a 1 amp 3.3v regulator. I think this breakout board has a .5amp...
    873 replies | 17771 view(s)
  • KurtE's Avatar
    04-30-2021, 04:32 PM
    It was running again. I am debugging if I stop Continuous and then try to do a single frame it gets part of frame, I do it a couple more times, and it dies... I hear a pop sound and a reboot. Not sure if that...
    873 replies | 17771 view(s)
  • KurtE's Avatar
    04-30-2021, 03:55 PM
    I just pushed up a new branch video_mode_partc with the do it at the sub-frames. You might give it a try or I could just do PR? Right now it is in PJRC carrier 4 bit and I am in a system dead mode. It stopped...
    873 replies | 17771 view(s)
  • KurtE's Avatar
    04-30-2021, 03:51 PM
    I have been able to get it to sort of work with Ubuntu, at least with the set of binaries that several of us are working with. BUT with many caveats. Note: Linux is not my main machines, so I only know enough to be...
    912 replies | 75294 view(s)
  • KurtE's Avatar
    04-30-2021, 12:48 PM
    Morning all, Will play a little more with the 'V' stuff this morning. Note: I have not fully implemented the c) option yet to hopefully smooth some things out. Here are some issues I suspect with the two previous...
    873 replies | 17771 view(s)
  • KurtE's Avatar
    04-29-2021, 10:10 PM
    Remember on the ML board, there is an enable pin that turns on the 1.8V regulator that supplies power to the camera. So if you don't enable that, the scanner will not find the camera.
    873 replies | 17771 view(s)
  • KurtE's Avatar
    04-29-2021, 09:53 PM
    I just pushed up the changes. However it was in conflict as some of my earlier stuff was already merged... So I used github desktop to rebase to main, Then pushed that up, found a couple of merge issues, which I then...
    873 replies | 17771 view(s)
  • KurtE's Avatar
    04-29-2021, 09:17 PM
    Do you think I Should I PR my changes or wait until I try a few more things to see if we can get smoother video when things are moving? Looks like I will need to rebase my changes to the current stuff (i.e. it shows...
    873 replies | 17771 view(s)
  • KurtE's Avatar
    04-29-2021, 07:29 PM
    Afternoon all, Question with the V command above, is that with or without my changes? If without: What was happening is we don't have a frame buffer, so when you get the callback from the camera, the code...
    873 replies | 17771 view(s)
  • KurtE's Avatar
    04-29-2021, 04:27 PM
    I enabled the Frame buffer :D by freeing up memory. I think that some of the other functions should all share memory and/or they should maybe malloc/new memory and free it after the Raw or bitmap... I am seeing...
    873 replies | 17771 view(s)
  • KurtE's Avatar
    04-29-2021, 03:42 PM
    Sorry I am sort of lost, here? How is it that you want an IO pin to be both Input and Output at the same time? I know that you can switch their direction as Input or Output using: IOMUXC_GPR_GPR6 or the like. So...
    4 replies | 156 view(s)
  • KurtE's Avatar
    04-29-2021, 02:31 PM
    I have a version I think that is working a lot better. up in the branch: https://github.com/KurtE/TMM-HB01B0-Camera/tree/video_mode_partb Not sure if I needed the part b, to move it to when the frame completed or...
    873 replies | 17771 view(s)
  • KurtE's Avatar
    04-29-2021, 01:11 PM
    Aargh :o - Playing with Zelda with V and F... And noise and ... Sometimes it helps to go back and the basic stuff. Things like: Where in the code do we ever turn on using the frame Buffer? We don't in this...
    873 replies | 17771 view(s)
  • KurtE's Avatar
    04-29-2021, 12:24 PM
    KurtE replied to a thread Soft SPI on T4.x in Project Guidance
    Sorry, I am not sure what is all going on here and there are several other things I am playing with right now, so won't be much help here. But if it were me, I think I would spend a few more minutes debugging why you...
    6 replies | 247 view(s)
  • KurtE's Avatar
    04-29-2021, 11:52 AM
    Sorry I probably was not clear. What I am wondering, is if we are renaming Wire2 to be Wire1 on TMOD to sort of match the MMOD name for the pins SCL1/SDA1 And currently on the MMOD board like the one Paul has it...
    873 replies | 17771 view(s)
  • KurtE's Avatar
    04-28-2021, 11:58 PM
    It is sort of an interesting issue... Like I mentioned elsewhere. Is Currently Wire1 on all T4.x boards is on Teensy IO pins(16 and 17) and also have some alternates on other pins. and likewise Wire2 is on Teensy...
    873 replies | 17771 view(s)
  • KurtE's Avatar
    04-28-2021, 05:16 PM
    This morning I have done a little playing with IRQ priorities... To help with that I added to the class: HM01B0.h: void setVSyncISRPriority(uint8_t priority) {NVIC_SET_PRIORITY(IRQ_GPIO6789, priority); } void...
    873 replies | 17771 view(s)
  • KurtE's Avatar
    04-28-2021, 02:20 PM
    Talking another look through the FlexIO DMA code we have now and what I was doing in the GPIO DMA code, to see if anything makes sense on differences. There are some simple differences, like: I was/am using a chain...
    873 replies | 17771 view(s)
  • KurtE's Avatar
    04-28-2021, 01:22 PM
    Not sure, my impression from: https://www.pjrc.com/teensy/td_libs_AudioProcessorUsage.html Is the no interrupts calls is to allow you to setup multiple settings and not have them all take effect at the same time...
    873 replies | 17771 view(s)
  • KurtE's Avatar
    04-28-2021, 01:03 PM
    Morning all, Looks like you have been having some fun. I may play a little more with the 'V' stuff. @Paul and others - I am no Audio expert. I have not done much of anything with this library... But...
    873 replies | 17771 view(s)
  • KurtE's Avatar
    04-28-2021, 12:02 AM
    FYI I just pushed up new branch/PR with a 'V' version of the 'F' that uses UpdateScreenAsync(true) and updates the screen each time we get a new camera update... It looks better but sound not as good!
    873 replies | 17771 view(s)
  • KurtE's Avatar
    04-27-2021, 10:42 PM
    Note: I edited my output for the #s to always output and do CR every 64 or so.. static uint8_t callback_count = 0; Serial.print("#"); callback_count++; if (!(callback_count & 0x3f)) Serial.println(); ...
    873 replies | 17771 view(s)
  • KurtE's Avatar
    04-27-2021, 09:19 PM
    Note: I now think it is the Teensy camera Thread that is getting starved...
    873 replies | 17771 view(s)
  • KurtE's Avatar
    04-27-2021, 08:35 PM
    Thanks that is sort of what I assumed and was/am not updating... I updated some priorities in the startread: while ((*_vsyncPort & _vsyncMask) != 0); NVIC_SET_PRIORITY(IRQ_GPIO6789, 102); ...
    873 replies | 17771 view(s)
  • KurtE's Avatar
    04-27-2021, 08:00 PM
    Will play with both... Luckily I only have headphones plugged in :D
    873 replies | 17771 view(s)
  • KurtE's Avatar
    04-27-2021, 07:52 PM
    Sorry taking it slow. What steps in Zelda to make it hang?
    873 replies | 17771 view(s)
  • KurtE's Avatar
    04-27-2021, 06:02 PM
    I hear you, we are all at a pretty cheap pay grade :D I am not sure which interrupt we are talking about? I don't believe we are using any flexIO interrupts. There are two others that I know of: First off we...
    873 replies | 17771 view(s)
  • KurtE's Avatar
    04-27-2021, 04:07 PM
    Sounds good. I found a T4 Audio board... I know I have several, but first one I found had female pins... Found new one with no pins, so will solder later. Also will solder up pins to the ribbon breakout cable so can...
    873 replies | 17771 view(s)
  • KurtE's Avatar
    04-27-2021, 01:53 PM
    Sorry, I don't remember if this went in for the last release or not or only one of the recent betas... As for when/how to get updates here on PlatformIO... Not sure as I really don't use it. But I believe I have...
    5 replies | 420 view(s)
  • KurtE's Avatar
    04-27-2021, 12:48 PM
    Also quick look - On my quick and dirty board, I did have pins 13 and 31 to GND, also I think 39 and 40 - But was trying to get the board to work with three different displays to test out, including: The older 5"...
    9 replies | 222 view(s)
  • KurtE's Avatar
    04-27-2021, 12:07 PM
    Morning all, Any thoughts? - Occasionally ;) :D Sorry have been distracted with some other stuff... I know I should read the stuff to figure it out, but what do I need to setup to do Zelda? i.e. does it...
    873 replies | 17771 view(s)
  • KurtE's Avatar
    04-26-2021, 06:29 PM
    With a T4.1 if it is not liking your program and crashes... One of the things to try then is to reset it to the default program. You can do that by holding in the program button for about 20+ seconds, until yo see...
    7 replies | 186 view(s)
  • KurtE's Avatar
    04-26-2021, 04:11 PM
    Looks like you have been busy will try to play some later. I would say go for it and back to master.
    873 replies | 17771 view(s)
  • KurtE's Avatar
    04-26-2021, 02:42 PM
    @amazed - try syncing up to my library again. I just moved that method out of protected: and into public:
    372 replies | 63359 view(s)
  • KurtE's Avatar
    04-26-2021, 02:28 PM
    The Teensy log only shows stuff about about the log... Note: Serial output at the start of a sketch can often be faster than the Serial system on a PC can be initialized... That is the USB is part of the Teensy...
    7 replies | 186 view(s)
  • KurtE's Avatar
    04-26-2021, 12:31 PM
    Looks like you have tested most of the obvious things. Hopefully once you can ring out the different pins, to verify everything works, the issue will show up. Likewise I would check with a voltmeter what voltage is...
    9 replies | 222 view(s)
  • KurtE's Avatar
    04-26-2021, 03:22 AM
    I assume you are trying it with the same display and the like. If not I would probably try with a different one to make sure it is not a display issue. Like are they setup to be powered the same? I ordered mine...
    9 replies | 222 view(s)
  • KurtE's Avatar
    04-26-2021, 01:26 AM
    Hopefully someone who uses these a lot will be able to give you a more complete answer. At one point I played around with my own carrier board, that I could use with the RA8875 and some with the RA8876 boards... It...
    9 replies | 222 view(s)
  • KurtE's Avatar
    04-26-2021, 12:59 AM
    Sorry hope you don't mind I added the code tags (#) in the toolbar around the code. It helps to keep the code layout like the indentation. So far I am seeing a header file and a sketch file, but the error message...
    7 replies | 186 view(s)
  • KurtE's Avatar
    04-26-2021, 12:48 AM
    Sometimes hard to know.. As I mentioned on the issue up on github. Sometimes need to find the exact display you are using. When some of us were playing with ILI9488 like displays earlier, I ended up with a few...
    699 replies | 46379 view(s)
  • KurtE's Avatar
    04-25-2021, 11:02 PM
    Sounds like a good idea. As you mentioned, at some point it might also be good to extract the GPIO/DMA stuff and optionally keep or not in own source file(s). Maybe also the FlexIO stuff to it's own file(s). Maybe...
    873 replies | 17771 view(s)
  • KurtE's Avatar
    04-25-2021, 10:00 PM
    I was sort-of kidding, but thought I would try a few things and see what happens with flexIO. Currently I don't have a total set of correction code in the flexIO stuff. That is I request from the specified timer,...
    873 replies | 17771 view(s)
  • KurtE's Avatar
    04-25-2021, 09:12 PM
    Afternoon ... Boy trying to tear out all of the fun stuff :D And hear I was wondering if one could setup one T4.1 or MMOD and run two of these cameras ;) Not sure if we could do it just with FlexIO Might be...
    873 replies | 17771 view(s)
  • KurtE's Avatar
    04-25-2021, 06:34 PM
    Great! Tried it out on new carrier with 4 bit flexio... Works! Will try a few things... Already verified that I don't need any specific timer, will push up PR back to you, but now looking at commentsL 8 Data...
    873 replies | 17771 view(s)
  • KurtE's Avatar
    04-25-2021, 02:52 PM
    @mjs513 @Paul... Should have other breakout soon... Question: Should maybe go ahead and merge in the newer flexIO version? Also should look at your new zip file to see if we can or you already have reworked the ...
    873 replies | 17771 view(s)
  • KurtE's Avatar
    04-25-2021, 01:38 PM
    Morning again all: Quick FYI - I just updated the FlexIO_t4 library to be a more proper library, with an library.properties file and moved the sources into the src directory... All of the moves where done using...
    873 replies | 17771 view(s)
  • KurtE's Avatar
    04-25-2021, 12:10 PM
    Morning all, just having first sip of coffee so have not looked yet at anything... But at least with the ML board, you have to setup the enable pin to the camera, or Wire will fail to see the camera. Not sure yet...
    873 replies | 17771 view(s)
  • KurtE's Avatar
    04-25-2021, 12:57 AM
    Sounds great - I just pushed up your changes to my branch :D Next thing to try may be to simply the other constructor simply save away the right pins and the like. and then in flexIO case at least it all folds back...
    873 replies | 17771 view(s)
  • KurtE's Avatar
    04-24-2021, 08:17 PM
    Afternoon all, I just pushed up some changes for the FlexIO to use my FlexIO library. I modified several of the methods like read a frame with FlexIO to use the FlexIO hardware structure with things like which...
    873 replies | 17771 view(s)
  • KurtE's Avatar
    04-24-2021, 05:30 PM
    @mjs513 - I started testing some of my changes to flexIO and nothing is working in either 8 bit or 4 bit mode :D And I am not using my own random configuration code (yet). I then switched branch back to rework...
    873 replies | 17771 view(s)
  • KurtE's Avatar
    04-24-2021, 01:07 PM
    Hope your Z's are doing good! I am just starting the coffee infusion :D Timeout: will try to take a look later. In the mean time you might try adding calls in to fully dump the DMA structure, like I do in the...
    873 replies | 17771 view(s)
  • KurtE's Avatar
    04-24-2021, 01:42 AM
    Evening all: I will take a look tomorrow as well. Hopefully by then will have breakout board. Been spending time trying to build in part of the constructor and Flex IO Config method that take more arbitrary pins...
    873 replies | 17771 view(s)
  • KurtE's Avatar
    04-23-2021, 07:52 PM
    However if we are going to extend this to apply to other cameras we may want to have the option for 8 bits as I know that at least some of them use 8
    873 replies | 17771 view(s)
  • KurtE's Avatar
    04-23-2021, 04:30 PM
    I just pushed up a new branch based off the rewire, that added the constructor I mentioned (with edits)... Now to start playing through this, to see how hard to get the FlexIO to be able to use it :D
    873 replies | 17771 view(s)
  • KurtE's Avatar
    04-23-2021, 01:41 PM
    Hopefully later today I will play with a version that maybe has a constructor, that looks something like: HM01B0(int8_t vsync, int8_t hsync, int8_t mclk, int8_t pckl, TwoWire &wire=Wire, int8_t d0,...
    873 replies | 17771 view(s)
  • KurtE's Avatar
    04-23-2021, 12:39 PM
    Yep - should probably be as you mentioned, I missed it... Surprised it would build without the change as the variable names changed.
    873 replies | 17771 view(s)
  • KurtE's Avatar
    04-23-2021, 12:35 PM
    Morning all, Actually all of these boards can and maybe should have options ;) :D Except maybe the camera on the MicroMod machine learning: For example for MicroMod just on FlexIO2 it has FlexIO pins 0-12...
    873 replies | 17771 view(s)
  • KurtE's Avatar
    04-23-2021, 01:17 AM
    Was wondering if maybe the nibbles were reversed in the bytes?
    873 replies | 17771 view(s)
  • KurtE's Avatar
    04-22-2021, 11:32 PM
    I may need to wait until I can up LA to this to see what the data is... Sure wish I went into town :D Paul, with your breakout board you are still feeding 3.3v to the camera? If so until then I may be able to rig...
    873 replies | 17771 view(s)
  • KurtE's Avatar
    04-22-2021, 10:17 PM
    Actually I think the first thing that needs to change is: // TIMCMP, page 2937 FLEXIO2_TIMCMP2 = 15; The Timer decrements on both edges and was 7, it resets to this when it decrements to 0. Before 7 or 4 pulses...
    873 replies | 17771 view(s)
  • KurtE's Avatar
    04-22-2021, 10:03 PM
    Back to FlexIO 4 bit... For the heck of it, I added some debug output at the end of: readFrameFlexIO uint32_t *p = (uint32_t *)buffer; for (uint16_t i = 0; i < 256; i++) { Serial.printf("%08x ",...
    873 replies | 17771 view(s)
  • KurtE's Avatar
    04-22-2021, 06:47 PM
    I will take a look, but one hair brain idea is to leave FLEXIO_SHIFTCFG_PWIDTH(7); But not configure those pins as FlexIO. Long term not good, as maybe I want to use them for some other FlexIO thing...
    873 replies | 17771 view(s)
  • KurtE's Avatar
    04-22-2021, 02:59 PM
    That should do it!... I think.... Except will be interesting as it will only shift 4 bits into shift register, so question will be do we get an output from shift register when the 4 bits come in or when it fully...
    873 replies | 17771 view(s)
  • KurtE's Avatar
    04-22-2021, 02:18 PM
    Looks like the same stuff... Gets the job done... Will try to play some today. I did verify it does read on the Machine Learning on ST7789 :D
    873 replies | 17771 view(s)
More Activity
About KurtE

Basic Information

Statistics


Total Posts
Total Posts
8,987
Posts Per Day
3.36
Last Post
Teensy4.1 MAX baud rate Yesterday 06:12 PM
General Information
Last Activity
Today 05:29 PM
Join Date
01-12-2014