Search results

  1. beermat

    Disabling firmware size limit / error on exceeding size

    The PlatformIO inspect function does the analysis on a compiled ELF file, compiled in debug mode (to get extra info to generate the report). Obviously, the linker cannot generate the ELF if section sizes are too large for the regions. So, it's not exactly a PlatformIO issue..... Does it build...
  2. beermat

    Problem with NativeEthernet post data to IIS (Asp.NET Core)

    It's been a while since I configured NativeEthernet, but I think the default socket size for NativeEthernet is 2048, which seems suspiciously close to your limitation. NativeEthernet.h You could increase that to some bigger value before Ethernet.begin, eg: Ethernet.setSocketSize(4096); You...
  3. beermat

    TLSF for allocations instead of smalloc?

    Has anyone had any experience with using TLFS for memory allocations, instead of smalloc? I have to declare up-front that I am not deeply knowledgable on this topic, but I've spent a day hacking around and in my experiments and specific use cases, I find it is significantly faster, without...
  4. beermat

    Linker error (embedding Lua on a Teensy 4.1)

    Yeah, I did that :) It builds and links now. I just wondered if there was a more elegant way, like stubbing out an include file somewhere, or something that didn't make it a PITA to upgrade with future library updates. It's a 3rd party library (ThorVG) for playing Lotties that's modified and...
  5. beermat

    Linker error (embedding Lua on a Teensy 4.1)

    Could you elaborate a little more? I am getting a similar error (undefined reference to '_open') building LVGL and Lottie, and I'd be happy to start hacking away at files to stub out or implement this, but it's a bit beyond my expertise, as in - I don't even know which files to even edit :) Any...
  6. beermat

    NT35510_t4x_p - a parallel display driver for Teensy 4.x boards

    The specs for writing to the display in 24 bit parallel interface mode for COLMOD = 666 is to send data on D0-D17, so I think it's fair to say, based on your research and experiments, there is no specific 18 bit parallel interface mode, but you can write to the display in 24 bit parallel...
  7. beermat

    NT35510_t4x_p - a parallel display driver for Teensy 4.x boards

    Not quite the same configuration in 18 vs 24 bit.....in 8, 16 and 18 bit mode R40-R45 are shorted (0R) but in 24 bit mode are open.....not entirely sure what those resistors do though, but if you map out the ones set to 0R vs the bitdepth in the doc (and exclude the ones that are set in each...
  8. beermat

    NT35510_t4x_p - a parallel display driver for Teensy 4.x boards

    Cannot recall from memory, but looking at the docs, which states "D[23:0] is read back from the frame memory" and my own (working) code to read the display memory: #if (TFT_BUSWIDTH == 8) uint8_t r = readBus(); uint8_t g = readBus(); uint8_t b = readBus(); #else //16 bit bus...
  9. beermat

    NT35510_t4x_p - a parallel display driver for Teensy 4.x boards

    I have a Novatech Datsheet v0.8, dated 10/28/2011, that was the latest I could find, plus another sister document "NT35510-Application Notes" v0.07 which was helpful for setup commands, I recall. The relevent sections you copied don't appear to differ. The documentation for 18 bit modes is...
  10. beermat

    NT35510_t4x_p - a parallel display driver for Teensy 4.x boards

    @KurtE This is awesome to see! It's been a couple of years since I played around with the BuyDisplay ER-TFTM040-1 and my 8/16 bit driver code for the NT35510 controllers, but one little useful hardware hack is to wire a switch to flip J1 and J5 between open and short, so you can use one screen...
  11. beermat

    New lwIP-based Ethernet library for Teensy 4.1

    @shawn - Is my understanding correct that your QNEthernet library does not support TLS 'out of the box', but provides the hooks to do so, if someone wished to try? If so, do you know of anyone that has successfully done this with a third party TLS library? I'm currently using NativeEthernet...
  12. beermat

    Teensy 4.1 SD question: Start a function from SD and return a value to the program

    Ok, glad it got you going! In your above code, looks like you open, parse through potentially hundred of lines, and close the file, for each one of the 10 preset names? Seems a little inefficient, if you have control over the file format? If you create the file with the preset names in numerical...
  13. beermat

    Teensy 4.1 SD question: Start a function from SD and return a value to the program

    If you are just looking to load the set of 10 preset names for the given PresetNumb from a file, here's a quick and dirty rudimentary working example of how you could do that, to get you going, with SdFat. I have tested this and it is functional. It is not robust (no real checking of file system...
  14. beermat

    Asynchronous/Non-Blocking read from SD card on Teensy 4.1

    @Conmanx360 - Just dropped in your library, switched my FS back to ExFat (and flipped in my bigger exFAT card) and - everything seems to be working swimmingly!! Same ~50% effective frame rate improvement on video playing, due to being able to have the read for the next chunk of data async with...
  15. beermat

    Asynchronous/Non-Blocking read from SD card on Teensy 4.1

    Update - I eliminated the single blocking read at the start of each frame, which gave a boost to FPS of 1-3fps, depending on the bitdepth of the file read. I also implemented a double buffer, which removed the video corruption, so everything works perfectly, just at ~50% higher potential frame...
  16. beermat

    Asynchronous/Non-Blocking read from SD card on Teensy 4.1

    @Conmanx360 - I did some testing, and this works so well, got some great improvements in my application! Quick background - I pre-encode video files to have a repeating set of video frame data in the format my screen buffer takes, followed by the audio data, repeated per frame. Then it's just...
  17. beermat

    Asynchronous/Non-Blocking read from SD card on Teensy 4.1

    Really intrigued by this, I might have a good use for this in my video playing app, which currently does blocking reads and blocking buffer transfers to a screen. However, my cards are 64Gb+ and formatted exFAT. Is there a limitation or a reason that this wouldn't work on exFAT, or just that you...
  18. beermat

    ILI948x_t41_p - a parallel display driver for Teensy 4.1

    Glad to see this is still alive and kicking!
  19. beermat

    Two ILI431s - different colors

    When you say "same result" can you clarify - do you mean that the left display is always fine no matter which physical device is wired there, or that the screen that has lower bitdepth on the right also has lower bitdepth when on the left?
  20. beermat

    Fast 8 bit parallel I/O for T4.0

    I think it is best to fix them in the original post, so when someone new comes along later and takes that code from the OP, they have a working version of it rather than potentially dealing with an error for a while themselves, before spending even more time trawling through a forum thread...
  21. beermat

    tgx: a 2D/3D graphics library for Teensy.

    Thanks for this! I went with this loop in the end, which works for even multiples of the screen height: static const int SLX = 480; static const int SLY = 800; static const int chunks = 4; static const int chunkSize = SLY / chunks; // main screen framebuffer uint16_t fb[SLX * chunkSize]; //...
  22. beermat

    tgx: a 2D/3D graphics library for Teensy.

    Great, sounds awesomely flexible! I tried with a full 480*800 buffer with all storage in EXTMEM, and "buddha" worked, managing 6.3 FPS :) "mars" also worked (slowly as expected) using fullscreen EXTMEM buffer. Sample code would be awesome to break it into chunks, if you could provide. This is...
  23. beermat

    tgx: a 2D/3D graphics library for Teensy.

    @vindar - is there an example of configuring your 3D renderer to use just a single non-DMA partial framebuffer? I'm interested to try this on my 800*480 16 bit parallel screen which, given the size and the nature of using GPIO to drive the 16 bit interface, uses a partial non-DMA buffer to build...
  24. beermat

    Teensy 4.1 - Adafruit Airlift Featherwing Co-Processor FTP Server not opening Port 21

    I am having the same issue as wwatson above in #126, even using the latest version of the FTP Server 1.1.0 . Using FileZilla (3.59.0) on Windows, I can connect in passive or active mode and (usually, but not always) get a directory listing back. But if I try to transfer a file from the Teensy...
  25. beermat

    Are there any higher level graphics libraries for Teensy that have widgets

    Ahhh, gotcha. Yes, there is no "quick start" for a combination of a "bare metal" device like the Teensy and a graphics library such as LVGL, which is capable of running on multiple platforms. The documentation should be enough to get you running though; I and a few others have managed this. It's...
  26. beermat

    Are there any higher level graphics libraries for Teensy that have widgets

    But isn't the battle with LVGL getting the initial setup installed, configured, working and tied in to your display driver to output to your screen? If you got to the point of displaying a text button, then surely you made it? It's now limited to your ability to design the screen? I've been...
  27. beermat

    Are there any higher level graphics libraries for Teensy that have widgets

    I have LVGL working on the Teensy 4.1, and whilst it is a little bit of an initial learning curve, it is quite powerful and very flexible, and is actively maintained by the devs. I'd definitely recommend it. Plus, I don't use the LV_ARDUINO version, but the main version, currently at 8.2.0
  28. beermat

    activating teensy 4.1 bootloader mode if teensy is in enclosure?

    From code you can do: asm("bkpt #251"); // run bootloader or add your own pushbutton to momentarily connect the "Program" pin on the T4.1 to ground
  29. beermat

    Ideas on a T4 parallel library using FlexIO

    Not had a chance to look at it yet; I just changed the font I used in my app to be more like one you prefer :)
  30. beermat

    Ideas on a T4 parallel library using FlexIO

    It's just a rotating display of some key info as I develop...the first screenshot showed it when it had power (current) usage and screen bit depth displayed, the second showed CPU temp and TFT refresh rate.
  31. beermat

    Ideas on a T4 parallel library using FlexIO

    There you go :)
  32. beermat

    Ideas on a T4 parallel library using FlexIO

    Yes, I currently do this by reading the TFT GRAM directly, either into a full screen buffer into PSRAM (double slow :) ) or in chunks into a buffer in TCM, and then write to the SD card as a .BMP, configurable to be RGB555, 565 or 888. I have some screens in this project where I write to part of...
  33. beermat

    Ideas on a T4 parallel library using FlexIO

    The pixels are a little small :) In my project that uses this, I display log files from my app, in a small but legible font - not something I'd want to read for a long period, though! I'm about to try a 7.0" 800*480 SSD1963 based display, once it arrives and I modify my parallel driver to...
  34. beermat

    Using Teensy 4.1 on Platform IO, getting "Warning: Serial8 is not declared"

    FWIW though, I am using PlatformIO in VSCode on Windows 10 with a T4.1, and have been using Serial8 without any warnings or errors in compilation through several versions of the Teensy framework and tools, up until the current 1.155.0. That's an oddity. Do you have board = teensy41 in the [env]...
  35. beermat

    PlatformIO support?

    Do you still have to manually push the button on the Teensy to enter program mode if you have the monitor open like this? I still get the following in VSC / platformIO when doing a "build and run" with teensy_serialmon open: Uploading .pio\build\trigger_teensy41_816\trigger_1.28.hex Unable to...
  36. beermat

    Ideas on a T4 parallel library using FlexIO

    A little late, but what about this 800*480 display, and just display sidebars to make it 640*480 :) It's NT35510 based, but it's a very similar controller to the ILI9488 command set, and affordable. I've used these in a project, and really like them...
  37. beermat

    T4 Increasing the clock speed

    Paul, does the above apply to the Teensy 4.1 as well? I have been using arm_set_clock() in my main project running on a T4.1 for almost a year, and haven't once experienced/identified any negative effects related to using this, at least that I have noticed, with the processor or any peripherals...
  38. beermat

    Teensy 4.1 NTP Server Example

    The three IPs in the TimeNTP example in the Time library examples all return no response for me, too. This one worked: IPAddress timeServer(132, 163, 96, 2); // time.nist.gov
  39. beermat

    Teensyduino 1.54 Beta #9

    In my experience (and others, who took this issue up with the FNET author), the DNS lookup code in NativeEthernet/FNET will not return a host IP if the lookup is done on an alias (CNAME). To establish the IP address, the FNET code compares the hostnames returned from the DNS inquiry with the...
  40. beermat

    Custom PCB with ethernet-kit clone section.

    Yeah, what indeed could go wrong? :) One thing, if you currently use 2.54mm headers to attach the Teensy to the PCB, the Ethernet ones are smaller pitch and size, so just ensure the ethernet male/female header combo has sufficient reach from Teensy to the board. I also routed all other traces...
  41. beermat

    Custom PCB with ethernet-kit clone section.

    As TX and RX are independent from a signaling/functional perspective, I don't think their relative lengths matter. I have a custom board with a Teensy 4.1 and Ethernet amongst other things (designed in EasyEDA too), and the TX / RX lines differ from each other by 8.059mm. RX+/- have an 0.008mm...
  42. beermat

    T4.1 Ethernet Library

    Update: it is dns.getHostByName(host, remote_addr) in the client.connect() method that fails to resolve the address for the server. "api.weather.gov" is an alias (CNAME) and it appears the dnsClient cannot resolve aliases.
  43. beermat

    Debugging problem

    What errors do you have at runtime? I have had a similar experience with "Fastest" in the past, after adding a small amount of new code to a functioning project and executing on the Teensy, it would freeze/lock up for no obvious reasons, and attempts to diagnose with extra code (such as...
  44. beermat

    T4.1 Ethernet Library

    Thanks vjmuzik for this library! I have been using it successfully to retrieve weather data from Open Weather. I wanted to expand to get additional information from the National Weather Service API at https://api.weather.gov/ I ran your TLS example that connects to pjrc.com successfully...
  45. beermat

    Teensy 4.1 Freeze (~1786ms)

    Thanks Frank! Wish I had seen this thread earlier :) Last week, I was experiencing similar issues inside a loop that "normally" took around 22ms for ~500 iterations, experiencing "freezes" every 50 or 60th iteration for around 1.6 seconds in duration (I never timed it precisely as it was the...
  46. beermat

    Teensy 4.1 LCD output

    But did you get this working on a T4 / T4.1? I have ILI9488 (480x320px) and NT35510 (800x480px) drivers now working well off GPIO6 in 8 and 16 bit mode, and was wondering about trying FlexIO too, but it looks like a *huge* leap for my pay grade; but would be nice to know at least it was...
  47. beermat

    Videos of Teensy 4.1 running LVGL GUI demos

    Took a little time to make a video the Teensy 4.1 running a couple of the LVGL demos, to give a view of what can be achieved with that library on a Teensy 4.1: Music player demo on T4.1 with ILI9488 480x320: https://youtu.be/ueWSo2Kv52M Printer demo on T4.1 with NT35510 800x480...
  48. beermat

    Targeting Teensy 4.1 uses 5x as much dynamic memory as Teensy 3.6

    I wanted it; still do :) I've fudged mine for now to work for me, but it's ugly.
  49. beermat

    GPIO ports and related control register

    I'm using the upper 16 bits of GPIO6 on Teensy 4.1 to drive parallel TFT displays (ILI9488 480x320 and NT35510 800x480) in 8 and 16 bit modes, and just because the Teeny pinouts aren't consecutive doesn't really mean much - the pin numbers on the Teensy are arbitrary in this case, doesn't really...
  50. beermat

    What is the purpose of these NOPs in Teensy 4.0 initialization?

    It's a quick snack for the processor. Or is that asm volatile("nom nom nom nom nom")? I forget. I (and others) use them for short delays; for instance, I'm driving a parallel ILI9488, and strobing the write pin low then high happens too fast for the ILI9488 to read the data @600Mhz T4.1. 8 nops...
Back
Top