Search results

  1. G

    using ext flash memory

    Thanks a lot. Test_Integrity\QSPI work fine. I assumed that LittleFS_QSPIFlash should be used, but I did not figure out the initialization, in this case it turns out to have no parameters at all. I will study it!! One more thanks!!!
  2. G

    using ext flash memory

    Hi! I have W25Q128JVSQ chip, as i can see, the same as here https://www.pjrc.com/store/psram.html. I try to use LittleFS library (https://github.com/PaulStoffregen/LittleFS#nor-flash), but unfortunatly my chip wont initilized. LittleFS_SPIFlash myfs; #define chipSelect 6 if...
  3. G

    Ethernet 2.0.2 and flush()

    I have tested QNEthernet for my tasks, it work fine. Thank one more time!
  4. G

    Ethernet 2.0.2 and flush()

    It is T4.1. I use QNEthernet for Native Ethernet with T4.1, but I didn't know that it could be used for W5500. I will try! Thanks
  5. G

    Ethernet 2.0.2 and flush()

    Hi! I found an interesting feature of the library Ethernet. I use it to organize the server on Teensy with W5500, so i'm doing everything as stated in the documentation. (https://docs.arduino.cc/libraries/ethernet/#Server%20Class) void loop() { // check for any new client connecting, and say...
  6. G

    Using RAM1 & RAM2

    Thanks for the answers, but my question was, what is the best way to use almost free RAM2 memory? Why would I complicate the device with Ext memory when my RAM 2 is almost free? In my issue it is more then 400kB.
  7. G

    Using RAM1 & RAM2

    Yes, this makes a significant difference, but I've always been wary of using optimization, as there might be problems with the functioning of the entire code.
  8. G

    Using RAM1 & RAM2

    Hi! Please explain how to use the memory on Teensy4.1. correctly. I have a very large code with a lot of libraries and the issue of memory usage arose. My typical situation is Memory Usage on Teensy 4.1: FLASH: code:620644, data:104436, headers:9124 free for files:7392260 RAM1...
  9. G

    NativeEthernet and WebSocket

    Thanks, i will try it. QNEthernet is not included in the package TeensyDuino?
  10. G

    NativeEthernet and WebSocket

    Hi all! I am trying to use libraries NativeEthernet and WebSocket for Teensy 4.1. I can't get them to work together. In attachment my test scetch and WebSocket library. It work fine with Ethernet.h and SPI Ethernet card W500, but not with NativeEthernet.h. To use test scetch upload it to...
  11. G

    Free RAM on Teensy 4.1

    thanks, i will try it
  12. G

    Free RAM on Teensy 4.1

    I didn't know about such a wonderful thing. Thanks. In any case, it's very useful. Thanks a lot for the tip. Went to study;)
  13. G

    Free RAM on Teensy 4.1

    Hi! Is it possible to find out how much free RAM (RAM1 and RAM2) is left on Teensy 4.1 My board sometimes unexpectedly reboot, I want to understand why. Maybe I have a memory leak. My memory usage now FLASH: code:699008, data:153072, headers:8560 free for files:7265824 RAM1...
  14. G

    Serial vs Serial1

    Hmm, very interesting! this is a piece of code showing an error on my Mother-board (Teensy soldered on an additional board) HardwareSerial& Touch = Serial1; unsigned long OneMinuteTimer; FLASHMEM void StartDebug() { #ifdef MASTERDEBUG Serial.begin(256000); SerialMode = COMMANDMODE; #endif...
  15. G

    Serial vs Serial1

    Hello! I have some problems with Teensy 4.1. I using Serial1 to communicate with Nextion display, and Serial for debug. My code is HardwareSerial& Touch = Serial1; FLASHMEM void StartDebug() { #ifdef MASTERDEBUG Serial.begin(256000); SerialMode = COMMANDMODE; #endif } FLASHMEM void...
  16. G

    conflicting declaration with 'C' linkage

    Paul, thank you very much. You're just a magician))). Everything worked!!
  17. G

    conflicting declaration with 'C' linkage

    Hello I want to use lua language for teensy to use scripts from sd card. So i use lua libraries. To use "print" function from lua to Serial in lua libraries used this one void lua_compat_printf(char *fmt, ... ); void lua_compat_print(const char *s); /* ** If your system does not support...
  18. G

    Memory Usage for T4.1

    thanks a lot!!
  19. G

    Memory Usage for T4.1

    Thank you!!! In Arduino IDE i found the option - Optimize. I set "Smallest code" and got an additional 50KB RAM1. But I am not sure that this will not affect the work of the entire project. Please give an explanation of what this optimization includes.
  20. G

    Memory Usage for T4.1

    One more question, is it possible to use RAM2 for some variables? for example i have some struct and want to put instance of it to RAM2 struct TTuyaDevice { byte Type; String AccessKey; String SecretKey; String Category_id; String Device_id; String SubDevice_id; String...
  21. G

    Memory Usage for T4.1

    Thanks a lot for your answer and examples. Of course i tried to make a little examle to reproduce the problem, but everything worked correctly, as in your example. I can`t post my big project, it is very big, with more then 30 files and many libraries. I will try to copy a pieces of code step by...
  22. G

    Memory Usage for T4.1

    This is example. I clean all code from setup and loop section. After it i uncomment few strings in setup section and then make 1st screenshot. After it i add FLASHMEM and make 2nd screenshot. Full project now is on 3rd screenshot.
  23. G

    Memory Usage for T4.1

    No, just add FLASHMEM!!! I made screenshots on purpose, otherwise you won't believe me))
  24. G

    Memory Usage for T4.1

    OMG, after update Teensyduino from 1.57 to 1.58
  25. G

    Memory Usage for T4.1

    Hi, Please explain, how to work with memory on T4.1. I have one big project and suddenly I noticed, that i have very little RAM1. I started experiments on memory optimization, read about memory organization, but some things I can't explain. I tryed to use FLASHMEM to reduce the size of the...
  26. G

    Arduino IDE 2.0.0 selection USB port when using 2 Teensy4.0 parallel

    Yes, one is T3.5 and other T4.1. In my case it happens like this: T4.1 is in bootloader mode, and i want to upload to T3.5. In board menu i choose right board and port. I want to upload, but it is not possible, i have always error, that compiled file is for T3.5, but connected board is T4.1...
  27. G

    Arduino IDE 2.0.0 selection USB port when using 2 Teensy4.0 parallel

    Have you found the solution? I have 2 teensy board, connected to PC in same time and the same problem((
  28. G

    Use custom menu options in Arduino IDE

    I found, that i can use flags.defs for it, like this teensy41.menu.BOOT.TEENSY41_8=Cluster_v8 teensy41.menu.BOOT.TEENSY41_8.build.flags.defs=-D__IMXRT1062__ -DTEENSYDUINO=157 -DTEENSY41_V8 teensy41.menu.BOOT.TEENSY41_9=Cluster_v9 teensy41.menu.BOOT.TEENSY41_9.build.flags.defs=-D__IMXRT1062__...
  29. G

    Use custom menu options in Arduino IDE

    Hello! Is it possible to use custom menu options from boards.txt in arduino ide? I know, that it works, when i do something like this add to boards.txt menu.BOOT=BOOT options teensy41.menu.BOOT.TEENSY41_8=Cluster_v8 teensy41.menu.BOOT.TEENSY41_8.build.board=TEENSY41_V8...
  30. G

    Using Teensy4.1 with internal and external SD card. How can I select the cards ?

    @KurtE, is it possible to use spi2 for external sd card with buildin sd card on teensy 4.1? I tryed to use it on teensy 3.5 and it worked correct (i hope))), but with 4.1 i dont understand. On pinout diagramm i see, that builin sd use spi2.
  31. G

    Using Teensy4.1 with internal and external SD card. How can I select the cards ?

    I thinki founf it #include <SD.h> SDClass sd2; void setup() { // put your setup code here, to run once: Serial.begin(9600); while (!Serial); // wait for Arduino Serial Monitor Serial.println("Start"); bool ok; const int chipSelect = 43; if (!SD.begin(BUILTIN_SDCARD)) {...
  32. G

    Using Teensy4.1 with internal and external SD card. How can I select the cards ?

    Hello, do you have the sollution? I have tha same task. The problem is, i think, that the library does not provide a class, but a ready-made object SD.
  33. G

    teensy_loader_cli.exe for Windows

    Does anyone have a file teensy_loader_cli.exe with support Teensy 4.1? I cant use Makefile for Windows, compilation goes wrong(((
  34. G

    Differences in Hardvareserial between T3.5 and T4.1

    Sorry, ok, i try to explain. This is my configuration #define RS1_PIN 30 void setup() { #if TEENSYTYPE == 35 RS485 = &Serial5; #elif TEENSYTYPE == 41 RS485 = &Serial8; #endif DIR = RS1_PIN; } void TransmitMessage(){ digitalWrite(DIR, HIGH); // begin transfer delay(2)...
  35. G

    Differences in Hardvareserial between T3.5 and T4.1

    Hi! I trying to migrate with my project from 3.5 to 4.1. I have RS485 transmitter, that is connected to Serial5 on T3.5 and to Serial8 on T4.1. So afrer tranfer a message i read answer from line. With T3.5 it works fine, but with T4.1 i have some problem. The problem is, that after i transfered...
  36. G

    Ethernet W5500 with Teensy 4.1

    Oh my God, I found it!!! Two pins were not soldered properly(((((((( It work fine!!!
  37. G

    Ethernet W5500 with Teensy 4.1

    I try to use more degug information for function isW5500() uint8_t W5100Class::isW5500() { chip = w5500; ETG_LOGDEBUG("isW5500: detect W5500 chip"); if (!softReset()) return 0; ETG_LOGDEBUG("isW5500 1"); writeMR(0x08); if (readMR() != 0x08) return 0...
  38. G

    Ethernet W5500 with Teensy 4.1

    This is full Log Starting WebServer on TEENSY 4.1 with W5x00 using Ethernet_Generic Library with Large Buffer Ethernet_Generic v2.3.0 [ETG] Default SPI pinout: [ETG] MOSI: 11 [ETG] MISO: 12 [ETG] SCK: 13 [ETG] SS: 10 [ETG] ========================= [ETG] Board : TEENSY 4.1 , setCsPin: 10 [ETG]...
  39. G

    Ethernet W5500 with Teensy 4.1

    This is same connection with Teensy 3.5 Starting WebServer on Teensy 3.5 with W5x00 using Ethernet_Generic Library with Large Buffer Ethernet_Generic v2.3.0 [ETG] Default SPI pinout: [ETG] MOSI: 11 [ETG] MISO: 12 [ETG] SCK: 13 [ETG] SS: 10 [ETG] ========================= [ETG] Board : Teensy 3.5...
  40. G

    Ethernet W5500 with Teensy 4.1

    @khoil-prog, thanks for the answer. But not work for me. Starting WebServer on TEENSY 4.1 with W5x00 using Ethernet_Generic Library with Large Buffer Ethernet_Generic v2.3.0 [ETG] Default SPI pinout: [ETG] MOSI: 11 [ETG] MISO: 12 [ETG] SCK: 13 [ETG] SS: 10 [ETG] ========================= [ETG]...
  41. G

    Ethernet W5500 with Teensy 4.1

    I forgot to write, that i dont have any pullup resistors, just direct connection between Tennsy and Ethernet shield using pins 10,11,12,13
  42. G

    Ethernet W5500 with Teensy 4.1

    Hi! I have working project with Teensy 3.5 and Ethernet shield WIZ850io. I use standart SPI port for connection. Now i try to use Teensy 4.1, but unfortunetly i cant starting Ethernet. How i can see in pinout diagram Teensy 4.1 has the same SPI pins as Teensy 3.5. Examples from Standart...
  43. G

    'Over the Air' firmware updates, changes for flashing Teensy 3.5 & 3.6

    I tryed many times to flash my teensy 3.5. Work fine!!! joepasquariello - Thanks a lot!!! One more extension: for Teensy 3.5 you can use #define FLASH_BUFFER_ADDR (FLASH_SIZE/8) for small loader and #define FLASH_BUFFER_ADDR (7 * FLASH_SIZE/8) for large program, so you have 7/8 of flash size...
  44. G

    'Over the Air' firmware updates, changes for flashing Teensy 3.5 & 3.6

    Now i just want to load my large program to 3.5 from your Flasher3d. FLASH_BUFFER_ADDR - is offset for addressing or availible flash size? I think it is offset, so i tryed to set #define FLASH_BUFFER_ADDR (FLASH_SIZE/4) and got this 8193 :10FFF00022F000BFEBFE0100190002001900020010 8194...
  45. G

    'Over the Air' firmware updates, changes for flashing Teensy 3.5 & 3.6

    the problem is here flash_block (base_address + address + FLASH_BUFFER_ADDR, (char *)data, byte_count) so first offset is 3/4 of FLASH_SIZE, i think it is wrong 1 :10000000F8FF022099010000652C03001D2C03005D 393216 2 :100010001D2C03001D2C03001D2C03001D2C0300B0 393232 3...
  46. G

    'Over the Air' firmware updates, changes for flashing Teensy 3.5 & 3.6

    Unfortunately I didn't succeed to load big program (295 kB) first i fogot to change FLASH_BUFFER_ADDR to (3 * FLASH_SIZE/4) to load my large application and i got this 8188 :10FFA000DC390400EC390400FC3904000C3A04008C 8189 :10FFB000203A04002C3A04006816FF1F6C16FF1F3D 8190...
  47. G

    'Over the Air' firmware updates, changes for flashing Teensy 3.5 & 3.6

    It`s great!!! Thank you for your work. I will try it and post my results
  48. G

    'Over the Air' firmware updates, changes for flashing Teensy 3.5 & 3.6

    Thanks for your answer. My problem is, that my scetch is larger then 1/2 of flash size. Is there a possibility that this restriction will be lifted in the future? I see it this way, first i load small program with hex-loader, than hex-loader load new main programm. In your Flasher said //...
Back
Top