Search results

  1. D

    Respect FNET MDNS defines in Teensy NativeEthernet

    That was a typo in this post, I edited the correct values. Reducing the PCB for TCP and UDP to 4 (from 8), now gives: -Og -g teensy_size: FLASH: code:1526256, data:81952, headers:8684 free for files:6509572 RAM1*: variables:92192, code:432220, padding:26532 free for local...
  2. D

    Respect FNET MDNS defines in Teensy NativeEthernet

    Hi shawn, please find the statistics below: NativeEthernet: -Og -g teensy_size: FLASH: code:1487336, data:70688, headers:9176 free for files:6559264 teensy_size: RAM1: variables:79972, code:395372, padding:30612 free for local variables:18332 teensy_size: RAM2: variables:24768 free...
  3. D

    Respect FNET MDNS defines in Teensy NativeEthernet

    Hi shawn, here is the current output of QNEthernet vs NativeEthernet: nativeethernet: teensy_size: FLASH: code:1487336, data:70688, headers:9176 free for files:6559264 teensy_size: RAM1: variables:79972, code:395372, padding:30612 free for local variables:18332 teensy_size: RAM2...
  4. D

    Respect FNET MDNS defines in Teensy NativeEthernet

    Hi shawn, I tried your library and it is a very nice drop-in replacement. Very good work and good features. At the moment however, it is too big for my code setup. I definitely have it on my list for later optimizations and to see which library I like more. Best Regards Daniel
  5. D

    Respect FNET MDNS defines in Teensy NativeEthernet

    Hi Paul, I am working on a private Teensy project (controlling my model rail way, German forum post here) where I sometimes exceed the Teensy 4.1 RAM1 or flash limits (especially with the debug build). To avoid this, I disable some FNET configs in fnet_user_config.h (no TLS + delete mbedtls...
  6. D

    Teensy 4.1 stack size of 13k enough?

    With this, we are down to: With WITH_SSTREAM defined: Memory Usage on Teensy 4.1: FLASH: code:9996, data:3008, headers:8496 free for files:8104964 RAM1: variables:3808, code:7536, padding:25232 free for local variables:487712 RAM2: variables:12416 free for malloc/new:511872 And...
  7. D

    Teensy 4.1 stack size of 13k enough?

    So I made a quick example with Teensyduino 1.59 and compiling for Teensy 4.1: #define WITH_SSTREAM #ifdef WITH_SSTREAM #include <sstream> #else #include <string> #endif const int i = 911; void setup() { Serial.begin(115200); } void loop() { #ifdef WITH_SSTREAM std::string s =...
  8. D

    Flash content to littleFS during upload

    Thanks @defragster! In that case, I will investigate the include-file-as-variable and declare it to reside in FLASHMEM. Should be the same effect at the end (updated files with each compile) and I have the content directly accessible. Daniel
  9. D

    Flash content to littleFS during upload

    Hi all, as I have not found anything using google or the forum search, here is my question: can I flash content to the littleFS section of the flash memory during program flashing (I use a Teensy 4.1)? I have stuff in my project I would like to have on the teensy and setting it via the...
  10. D

    QNEthernet using 80k RAM

    Hi @shawn, thanks for the update, I will investigate when I touch that side of the project again. Best Regards Daniel
  11. D

    Custom PCB with Teensy 4.1 and Ethernet

    Hi all, while sorting out my current problems, I am also thinking about new ones. Or at least about cool new features for my projects :cool: Using the Teensy 4.1 on a breadboard made me think of a custom PCB where also the Ethernet connector could be placed directly onto the PCB. As I am not a...
  12. D

    Teensy 4.1 stack size of 13k enough?

    As I said, I removed the #include <sstream> include I used for a custom integer-to-std::string function and replaced it with a manual conversion. The results shared were using only -Og. The strange thing is that the file sstream was included in shrinks from 5744 to 2348 according to...
  13. D

    Teensy 4.1 stack size of 13k enough?

    Thanks for the idea with bringing initialization code also to FLASHMEM. As of now, I do not have large arrays which I can bring there, too. I am now close to 32k of padding and the rest I will find, too. Although I was bit worried that with added functionality, I will soon be in that area...
  14. D

    Teensy 4.1 stack size of 13k enough?

    Hi all, I am coding a little project for my model railway using some own code and some libraries (SPI, SD, NativeEthernet and Websocket). Compiling the project with -Og results in the following teensy_size output: teensy_size*: Memory Usage on Teensy 4.1 teensy_size*: FLASH: code:443968...
  15. D

    QNEthernet using 80k RAM

    Perfect, glad that I could help here. I will have a look here and there for an update :)
  16. D

    QNEthernet using 80k RAM

    Yes, I installed the WebSockets2_Generic and QNEthernet library. This is the include section in my Header file: #define WEBSOCKETS_USE_ETHERNET true #ifdef WINSTON_TEENSY_QNETHERNET #define USE_QN_ETHERNET true #else #define USE_NATIVE_ETHERNET true #endif #include...
  17. D

    QNEthernet using 80k RAM

    Ah, I completely missed the Buffers. Here is an update, also with a bigger MEM_SIZE: Debug with LWIP-MEMSIZE: 1024 instead of 24000 LWIP_STATS: 0 instead of 1 MEMP_NUM_UDP_PCB: 2 instead of 8 MEMP_NUM_TCP_PCB: 2 instead of 8 teensy_size*: Memory Usage on Teensy 4.1 teensy_size*: FLASH...
  18. D

    QNEthernet using 80k RAM

    Hi all, I ran some analysis compiles. The rtti is still enabled as it is something my code relies on. But I think even different -Ox-Flags show some results: Smallest Code: teensy_size*: Memory Usage on Teensy 4.1 teensy_size*: FLASH: code:236484, data:40548, headers:8660 free for...
  19. D

    QNEthernet using 80k RAM

    Good point with the FLASHMEM. I already tried to find the biggest one with arm-size. Lets see what is worth modifying. Additional input from Shawn is highly appreciated, though!
  20. D

    QNEthernet using 80k RAM

    Hi all, first of all, thanks Paul for the Teensy. It is an amazing product with great features. Keep going! And now the issue I currently have: I want to control the signals on my model railway with a Teensy connected to a Roco z21 digital station via Ethernet. There is a simple protocol where...
Back
Top