Latest activity

  • R
    Rezo reacted to defragster's post in the thread Call to arms | Teensy + SDRAM = true with Like Like.
    I made quick note somewhere on past pages with initial speed results showing longer at faster - but not seen with current test. Another thing the 'OneScanCap.ino' occasionally shows is an added 3 seconds to all times across the tests between...
  • M
    You could also try using the more CPU friendly version of the ladder filter as Richard van Hoesel outlined here. I recently used it on a Adafruit ItsyBitsy M4 Express board and it worked well. I applied his changes and stuck the files on my...
  • R
    Rezo reacted to mjs513's post in the thread Call to arms | Teensy + SDRAM = true with Like Like.
    Sorry been distracted today for a bunch of reasons. Reran the tests but added the time to copy the array DMAMEM to EXTMEM: 0 errors, 1010 microseconds to copy DMAMEM to DMAMEM: 0 errors, 319 microseconds to copy RAMMEM to RAMMEM: 0 errors...
  • defragster
    I made quick note somewhere on past pages with initial speed results showing longer at faster - but not seen with current test. Another thing the 'OneScanCap.ino' occasionally shows is an added 3 seconds to all times across the tests between...
  • defragster
    defragster reacted to mjs513's post in the thread Call to arms | Teensy + SDRAM = true with Like Like.
    Sorry been distracted today for a bunch of reasons. Reran the tests but added the time to copy the array DMAMEM to EXTMEM: 0 errors, 1010 microseconds to copy DMAMEM to DMAMEM: 0 errors, 319 microseconds to copy RAMMEM to RAMMEM: 0 errors...
  • I
    I didn't see any difference changing the initialization order. The millis wraparound is an issue with the example program, but it works for testing purposes to send packets at that interval. The gSendDate is copied example code, and works to try...
  • PaulStoffregen
    PaulStoffregen replied to the thread Teensy 4.1 psram memtest.
    arm_dcache_delete is in imxrt.h. Here's a link to the code on Github https://github.com/PaulStoffregen/cores/blob/dd6aa8419ee173a0a6593eab669fbff54ed85f48/teensy4/imxrt.h#L10258
  • PaulStoffregen
    If your probes have a physical switch for 1X vs 10X, make sure you set it to 10X. The physical switch on the probe is the part that truly matters. If your scope still is set for 1X, don't stress too much. The scope setting only adjusts the...
  • P
    Pencioner replied to the thread Teensy 4.1 psram memtest.
    on Arduino IDE it is not reproducible because it fails only if startup.c is patched with a clock change to 120MHz. if i change clock in setup() or loop() before doing anything, the issue is gone. that's a mystic bug tho. no need to investigate...
  • mjs513
    Sorry been distracted today for a bunch of reasons. Reran the tests but added the time to copy the array DMAMEM to EXTMEM: 0 errors, 1010 microseconds to copy DMAMEM to DMAMEM: 0 errors, 319 microseconds to copy RAMMEM to RAMMEM: 0 errors...
  • J
    jmarsh replied to the thread Teensy 4.1 psram memtest.
    Those asm instructions don't do anything with the cache, there is no feasible reason for them to be the difference between the test failing or succeeding.
  • PaulStoffregen
    PaulStoffregen replied to the thread Teensy 4.1 psram memtest.
    In msg #20 you wrote "PSRAM memtest provided is not completely trustful and may say "all is fine" while it is really not". In msg #23 I asked if you would share the specific test code you believe should be incorporated into the PSRAM test. So...
  • mjs513
    mjs513 reacted to KurtE's post in the thread Call to arms | Teensy + SDRAM = true with Like Like.
    I will try to get back to trying it on this board. Sort of a PIA at times to hook up all of the wires in a secure enough way. So I much easier playing using the other boards. Did find using my camera shifter boards I did during the T4.1...
  • S
    I’m curious, does initialization order matter? For example, if you initialize CAN first instead of Ethernet. Also, you need to account for millis() wraparound. Either compare with subtraction to a timeout value or use elapsedMillis instead...
  • P
    Pencioner replied to the thread Teensy 4.1 psram memtest.
    i didn't mean that code posted is a complete testing. i only say that in my case i have this issue with as little as 16K of data (the rom content is in another file). if asm commands are removed it doesn't make any error because of cache of...
  • PaulStoffregen
    PaulStoffregen replied to the thread Teensy 4.1 psram memtest.
    Agree, this program isn't calling arm_dcache_flush_delete() as the regular PSRAM memory test does. Without deleting the cached data, and a memory test size that fits within the 32K data cache, it will just read back from the cache.
  • N
    Here is an interesting online source that might help calibrate things the old fashion way. Can you touch the PCM3168A continuously without pain, or only for short periods?
    • Screenshot 2024-02-23 at 4.03.57 PM.png
  • J
    I am a novice with the oscilloscope. I just pushed auto adjust and tried to match your photo settings . . . not sure how to get get to 10x either. I can switch on the probe, but it stays as 1x on the scope. Also, not sure how to set those...
  • KurtE
    I will try to get back to trying it on this board. Sort of a PIA at times to hook up all of the wires in a secure enough way. So I much easier playing using the other boards. Did find using my camera shifter boards I did during the T4.1...
    • 1708731548709.png
  • K
    Hey all, I have a Teensy 4.1 wired up to Ethernet using its PHY and a SN65HVD230 CAN transceiver on CAN1. I am happy to go into more hardware details if it is relevant, but this seems like a software issue to me. When initializing either CAN or...
  • J
    jmarsh replied to the thread Teensy 4.1 psram memtest.
    That only tests 16KB, meaning it's probably skipping an entire chip in the case of the board with 2x8MB PSRAMs. I can't see at all how this is more of an in-depth test than the existing code. Edit: actually at only 16KB, the entire test data...
  • J
    Assuming the camera stuff is uslng FlexIO and DMA to move from shifter registers to RAM... are the shifters signalling any errors, to indicate overruns (new data being placed without the old data being read first) ?
  • h4yn0nnym0u5e
    I've just knocked up a very simple thermistor-based probe, on the basis I probably won't be allowed to keep the work FLIR camera :giggle: It's not likely to be super accurate unless I can find a way of calibrating it, as the thermistor has ±5%...
  • PaulS
    PaulS replied to the thread Serial Plotter / IDE / Teensy 4.0.
    Those bottom 2 screens are strange, ID 0x16? ID 0x18? With respect to the scope: I used a time base of 2ms/div, and single-shot triggering on the trailing edge, trigger level around 6V. You are not using the probes with 10x attenuation? Paul
  • J
    Hi Paul. I was having some difficulty getting a LIN signal on that code but after a few tries, I did get a similar reading to you, but no response :(
    • 1708724042153.png
    • 1708724115994.png
    • 1708724171778.png
    • 1708724189893.png
  • I
    Hey all, I have a Teensy 4.1 wired up to Ethernet using its PHY and a SN65HVD230 CAN transceiver on CAN1. I am happy to go into more hardware details if it is relevant, but this seems like a software issue to me. When initializing either CAN or...
  • J
    The program below will generate phase-shifted 1-MHz PWM on pins 2 and 3, which are channels A and B of the same SubModule on FlexPWM4. You can read about phase-shifted PWM in Chapter 55 of the iMXRT1062 reference manual. What the program does is...
  • TomChiron
    More layers, more Perlin Noise, more complexity, more beauty (hopefully).
  • P
    Pencioner replied to the thread Teensy 4.1 psram memtest.
    Well, long story short: I got two 4.1s: Name it Unit1 - no ethernet one and have two Adafruit PSRAMs installed, currently is soldered to a prototype. The PSRAM test sketch passes on all frequencies including 133MHz and below (120MHz, 110.77Mhz...
  • R
    Rezo reacted to mjs513's post in the thread Call to arms | Teensy + SDRAM = true with Like Like.
    yep DMAMEM uint16_t array1[(320) * 240] __attribute__((aligned(32))); EXTMEM uint16_t array2[(320) * 240] __attribute__((aligned(32))); int errorCnt = 0; int arraySize = (320 * 240); void setup() { Serial.begin(115200); while (!Serial &&...
  • R
    And with a DMA transfer?
  • luni
    luni replied to the thread Very high code RAM usage.
    Instead of SMALLEST_CODE you could also try to add --specs=nano.specs which will switch to newlib-nano (same as SMALLEST_CODE does) but keeps the optimization level.
  • I
    InfinityModular replied to the thread Very high code RAM usage.
    you are correct of course. It was defaulting to gnu++14. All issues resolved. I can now compile with the SMALLEST_CODE option, and USB is working correctly! Thank you everyone!
  • J
    0 to 95C. Industrial grade of the same part is -40 to 105C
  • luni
    luni replied to the thread Very high code RAM usage.
    Looks like you don't compile for gnu++17. Make sure -std=gnu++17 is set in your build options
  • I
    InfinityModular replied to the thread Very high code RAM usage.
    Himm. Can't seem to build, I've tried adding the following into platformio.ini in order to update to the new framework: platform_packages = platformio/framework-arduinoteensy@^1.159.0...
  • N
    Good information. So for free air-unheatsinked, using the spec'd Junction-to-case thermal resistance of 7.7 C/W and the typical spec'd power dissipation of 1.16 W puts the junction temperature at about 74 C - well below the spec'd maximum Tj of...
  • M
    I didn't see it in the product page, but what temperature range is Teensy 4.1 designed for? Looking at the part it appears to be commercial grade so something like 0-85C? I was going to use Teensy for a project, but I have to have industrial...
  • I
    InfinityModular replied to the thread Very high code RAM usage.
    Thanks Paul, for caring about your products. I see that I'm on 1.58, so that is likely the issue. I'll figure out how to update it.
  • PaulStoffregen
    PaulStoffregen replied to the thread Very high code RAM usage.
    Use FLASHMEM for code (which isn't speed critical) and PROGMEM for const variables. Make sure you are using version 1.59. A bug with startup when compiled with smallest code was fixed in 1.59. I believe PlatformIO is now supporting 1.59, so...
  • mjs513
    yep DMAMEM uint16_t array1[(320) * 240] __attribute__((aligned(32))); EXTMEM uint16_t array2[(320) * 240] __attribute__((aligned(32))); int errorCnt = 0; int arraySize = (320 * 240); void setup() { Serial.begin(115200); while (!Serial &&...
  • PaulStoffregen
    Can you give us a small but complete program anyone can copy into Arduino IDE and run on Teensy 4.1 to reproduce this problem? If you really have found a previously unknown bug in the EEPROM library, of course I want to investigate and fix. But...
  • mjs513
    Confirm, I generally don't comment on this code security stuff beyond the info already published on the code security web page and in the core library code, the 3 automatically generated programs and Arduino IDE plugin code. The NDA and...
  • I
    InfinityModular replied to the thread Very high code RAM usage.
    Thanks for your replay @jmarsh. The FLASHMEM seems to cause section type conflicts between global methods and class methods. Not sure how to resolve this... only when the global method is also in FLASHMEM. I think that if I am able to solve the...
  • J
    jmarsh replied to the thread Very high code RAM usage.
    USB should be working with smallest code. You should also be able to use FLASHMEM on any member function, whether it's static or not.
  • I
    InfinityModular replied to the thread Very high code RAM usage.
    I'd like to pick up on this. I'm building a synth, using classful programming. My understanding is that the FLASHMEM attribute does not work with class methods unless they are static. I have a little over 22K remaining for variables in RAM1...
  • R
    Im sure you’re already doing this - but you are flushing cache? Maybe try do a data integrity test with SDRAM/DMA? Copy data from one buffer to another and see if they are identical ?
  • R
    Rezo reacted to mjs513's post in the thread Call to arms | Teensy + SDRAM = true with Wow Wow.
    Just by way of an update @KurtE got the OV7670 and OV7670 video working using the micromod as the test platform. If you try it on the SDRAM something strange is going on. If you use DMAMEM for the framebuffers image is perfect if you use...
  • D
    Dogbone06 reacted to KurtE's post in the thread Call to arms | Teensy + SDRAM = true with Like Like.
    🤔I have not seen the problem of using the 8MBtye SDRam on the GIGA for the camera to read into. But when I looked at their schematic their SDRam setup looks very different than what I believe you are doing on these dev boards. That is they...
  • D
    Dogbone06 reacted to jmarsh's post in the thread Call to arms | Teensy + SDRAM = true with Like Like.
    That looks pretty much the same as Dogbone's devboard to me - 16 bits of data, 2 bank pins, row and column addresses are sent multiplexed on A0-A12.
Back
Top