Latest activity

  • h4yn0nnym0u5e
    If you’d like to post the verbose error messages on the tweaks thread then maybe we can spot what’s gone wrong. It’s one of those chicken-and-egg cases where it’s way more likely to get into an update if people have tested and found it works for...
  • mjs513
    Thats a pit confusing we had moved putPicture in common in the combined_t4x_wip branch of the other repo???? And when last tested using that branch it worked. But @KurtE you are write its not in the repo TeensyRA8876Combined - wonder if there is...
  • A
    easier said than be done,never was able to compile, i followed the instructions but i think there is other things to do before. Your "good luck" makes me smile somewhere a little bit :unsure: Anyway i'll wait for this thing to be incorporated...
  • A
    I think it's a basic chorus with a bigger delay 🧐
  • B
    Bodger62 replied to the thread RTC question.
    Thanks for your reply I got the unix timestamp from the web and changed the month to June, put that in a file and then cut it. When the program was running on the Teensy I opened minicom and pasted in the following T 1718439814 which reset...
  • W
    on T4 wake-up from hibernate is only by RTC alarm. The wake-up digital pin of MCU is not accessible. Note, the snippet in #47 handles only hibernate (lowest power consumption with all but RTC switched off) and not other type of sleep modes.
  • A
    If all you want is the specific instance of a, unsigned 32 bit integer in decimal then it's not too tricky to create your own print routine with the custom formatting you want. Based roughly on known working code but with some completely...
  • A
    This is partly personal preference but I really dislike the "throw everything in a header file" approach to libraries. As soon as you have a project with more than one file you start hitting all sorts of redefinition type issues. I much prefer...
  • W
    WMXZ replied to the thread How do you organize large sketches?.
    I always tend to keep the *.ino file as short as possible, and put all my other stuff into .cpp with associated .h files within a src sub directory. Arduino IDE 2. has no issues with this and by not using multiple ino files, I avoid surprises due...
  • A
    AndyA reacted to KurtE's post in the thread Framebuffers and PSRAM with Like Like.
    A couple of different ways: Somewhere global something like: EXTMEM uint16_t buf[MYPSRAM * 1024 * 1024] __attribute__((aligned(32))); and in your code before you use frame buffer to a call like: tft.setFrameBuffer(buf); Makes sense that 3...
  • A
    AndyA replied to the thread Teensy 4.1 stalls?.
    While it could be some bug that is causing the code to lock up given the environment it's more likely to be a electrical issue than firmware. Sounds like the setup is going to be inducing all sorts of voltage spikes onto any unshielded wires and...
  • A
    AndyA reacted to MarkT's post in the thread Teensy 4.1 stalls? with Like Like.
    You'll need to protect the teensy and its wiring from the EMI produced by the blower motor. Is the teensy in a grounded metal box? That's the bare minimum you need to do.
  • Y
    ok thank you very much, it works perfectly now.
  • PaulStoffregen
    This code uses SdFat. It is complicated. I recommend using the simpler SD library. It is much easier to use and understand. Since Teensyduino 1.54, SD.h is merely a thin wrapper which really uses SdFat internally. So if you use the simpler...
  • Y
    That looks like one of the problematic SD card adapters. Many people have experienced problems with those. Power is the first issue. Hopefully you can find good documentation about the its power requirements. But often these are made by Asian...
  • Y
    @PaulStoffregen Thank you very much now it's working. I changed the microsd card adapter as you suggested and it's fine. I use a code that you provided in an example and I modified it a bit. But your code is meant for controlling the sd card...
  • M
    Indeed it’s far simpler to just remove the card of course. But, so far, I’m working on three projects where repeatedly removing the card to examine its contents is needed and this is costing us extra time - especially when the card and the Teensy...
  • G
    Hello. I have a simple task I find myselft doing repeatedly in Arduino projects, timing sections of code to see how long they take to run. I've finally (after 5 years) got the hardware of an 8x8x8 ws2811 LED cube mounted safely where the cat...
  • wwatson
    Really weird. writeRect is always the most stable. I wonder if it has anything to do with the delayNanoseconds() in: bteMpuWriteWithROPData16() in RA8876_t41_p.cpp? maybe play with that...
  • KurtE
    I rehooked up the display now acting different, faulting in writeRect in 16 bit mode… will investigate more in morning
  • wwatson
    I can't remember why "putPicture()" was moved. Hopefully after more testing I will be able to setup my SPI display. Right now the "graphicsCursor.ino" sketch is not working completely. The graphics cursor moves properly but none of the button...
  • KurtE
    The sketch you showed above looks very much like the one currently in the examples... Still did not build when SPI.. So I moved the putPicture code out of T41 into common, and both build now. So works fine at 8 bit mode TTL and now SPI. But...
  • PaulStoffregen
    For the Teensy 4.1 built in SD card, you need the examples from File > Examples > SD. Those examples default to the regular SPI port, which would be used with the audio shield or other hardware you'd connect to the SPI pins. To use the built in...
  • J
    ADMUX, ADCSRA, etc. are AVR-specific registers. T4.x is not ARM, not AVR, so this code will definitely not work or even compile. You can use the standard Arduino API for analog inputs, i.e. analogRead(), etc., or you can look at the examples for...
  • KurtE
    KurtE reacted to wwatson's post in the thread RA8876 Parallel Display Library Testing with Like Like.
    @KurtE - Try this: /* Memory Transfer RA8876 M Sandercock May 15 2020 Test memory transfer to send a picture to the RA8876 screen, then use BTE memory copy to move it around Most of the time you would want to just put an image onto...
  • PaulStoffregen
    When I have code that gets too large, usually I look for the most mature and unlikely to change portions. That's the stuff I tend to put into another file or create a library if I'm sure it'll get reused between programs.
  • M
    Thanks Paul! I will try what you suggest. Will it let me see the built in sd card via the usb port I use to upload firmware?
  • M
    I meant the built in SD card, and the usb connector we use to upload the firmware. Sorry if wasn’t clear. If, after uploading code and testing, I could look at the SD card contents without taking out the card and without moving any connectors...
  • PaulStoffregen
    In Arduino IDE, first make sure Teensy is selected in Tools > Board. The menus update based on which board you're using. Then click File > Examples > USBHost_t36 > Storage to find those examples. Hopefully those can help get you to a good start.
  • defragster
    @KurtE - Try this: /* Memory Transfer RA8876 M Sandercock May 15 2020 Test memory transfer to send a picture to the RA8876 screen, then use BTE memory copy to move it around Most of the time you would want to just put an image onto...
  • wwatson
    If you are talking about the USBHost connector then the answer is yes. You will need a USB SD card reader. Then in Teensyduino 1.59 try the driveinfo.ino sketch found in "USBHost_t36/examples/storage" folder. There are a couple other sketches as...
  • wwatson
    @KurtE - Try this: /* Memory Transfer RA8876 M Sandercock May 15 2020 Test memory transfer to send a picture to the RA8876 screen, then use BTE memory copy to move it around Most of the time you would want to just put an image onto...
    • memoryTransfer.jpg
  • K
    The latest version of my TeensyMIDIPolySynth includes a Teensy 4.1 (which manages all MIDI interfaces, 7" TFT touchscreen display, EEPROM storage/retrieval of 16 configurations, & a 500kbps serial interface shared with the audio T4.0) & a Teensy...
  • wwatson
    Got "drawPixel()" worcking 8/16bit mode: //**************************************************************// /* Write a 16bpp pixel */ //**************************************************************// void...
  • KurtE
    There is also a lot of information in different threads like: https://forum.pjrc.com/index.php?threads/teensy-4-1-how-to-start-using-flexio.66201/ Also NXP has out some other documents on some of this like...
  • K
    https://www.pjrc.com/store/teensy41.html#tech
  • KrisKasprzak
    All, I have a few "large" .ino files, one program is around 8500 lines, it has some 100 functions, and 20 libraries. I'm familiar with where things are in the code and search is helpful, but digging through 8500 lines is a pain. Some areas of...
  • KurtE
    I tried the memory transfer example, with 16 bit turned on... I tried building for SPI, but link error...
    • 1720987183188.png
  • wwatson
    @KurtE @mjs513 - "drawPixel()" does not seem to be working at all in 8bit or 16bit mode (DB5). Something has happened. Tested "writeRect()" works in 8/16bit mode. "pushPixels16bitAsync()" and "pushPixels16bitDMA() work in 8bit mode. I think...
  • KurtE
    KurtE reacted to wwatson's post in the thread RA8876 Parallel Display Library Testing with Like Like.
    @KurtE - Found these: // Helper functions. void RA8876_t41_p::beginWrite16BitColors() { while (WR_IRQTransferDone == false) { } // Wait for any IRQ transfers to complete FlexIO_Config_SnglBeat(); CSLow(); DCHigh()...
  • KurtE
    KurtE reacted to mjs513's post in the thread RA8876 Parallel Display Library Testing with Like Like.
    @KurtE Think write16BitColor was added when we added in begin beginWrite16BitColors and endWrite16BitColors. Wonder is some of that may be called from GFX library?
  • W
    wrswrsnz reacted to KurtE's post in the thread Reading Pins in Parallel -- Teensy 4.1 with Like Like.
    I am not sure if there are easy examples. One needs to read (many times) the IMXRT reference manual you can download from main pjrc product pages the section on FlexIO. A few of us have been playing with code that reads 4 or 8 bits from...
  • W
    Thanks for the info. I have been reading the IMXRT reference manual which is why I'm a bit confused. As you say, I probably need to keep re-reading it until things gel. I hadn't found any of the links you've listed despite searching for hours. I...
  • mjs513
    @KurtE Think write16BitColor was added when we added in begin beginWrite16BitColors and endWrite16BitColors. Wonder is some of that may be called from GFX library?
  • Po Ting
    Hello, very thank you I've never used RTC in T4 before, and not used in my project, what extra hardward/software or library setup is needed? Do you have an example such as blink working with minimal hardware, or using systick like snooze used...
  • wwatson
    @KurtE - Found these: // Helper functions. void RA8876_t41_p::beginWrite16BitColors() { while (WR_IRQTransferDone == false) { } // Wait for any IRQ transfers to complete FlexIO_Config_SnglBeat(); CSLow(); DCHigh()...
  • wwatson
    Just wired up for 16Bit BUS. I am testing write now. Got "setBusWidth(16) and setFlexIOPins(53,52,40)" working. Need to go through everything to refresh my memory:D I don't remember "write16BitColor(uint16_t color)" at all...
  • M
    Hello Using a Teensy 4.1 with sd card, is it possible to read and write files on the sd card via the usb connector? If yes, how?!
  • R
    Hi, I have some frequency detection code that works on Arduino Nano (AVR) using autocorrelation. I know that the ADC Sampling lines in the code below are for AVR chips (doesn't work on esp32), but I've read that it should work on Teensy 4.0...
  • KurtE
    @wwatson Wondering if I configure the RA8876 to use 16 bit buss, who code uses it? When I tried adding in calls to writeRect which uses it: Which uses: void RA8876_common::writeRectImpl(int16_t x, int16_t y, int16_t w, int16_t h, const uint16_t...
Back
Top