Search results

  1. Sam Halvoe

    Visual Micro: Memory Usage information doesn't show in Ouput since TD 1.62

    With the latest (not yet released, but on the forum available) version of Visual Micro the memory information is shown again. (: (see 4th post in this thread https://www.visualmicro.com/forums/YaBB.pl?num=1783282614)
  2. Sam Halvoe

    Visual Micro: Memory Usage information doesn't show in Ouput since TD 1.62

    No, I am not at my PC at the moment. But I could try it in the next few days.
  3. Sam Halvoe

    Visual Micro: Memory Usage information doesn't show in Ouput since TD 1.62

    Here is the post I made on the Visual Micro forum: https://www.visualmicro.com/forums/YaBB.pl?num=1783282614
  4. Sam Halvoe

    Visual Micro: Memory Usage information doesn't show in Ouput since TD 1.62

    Thank you for the comprehensive response. (: I make post on the Visual Micro forum with this information.
  5. Sam Halvoe

    Visual Micro: Memory Usage information doesn't show in Ouput since TD 1.62

    Hello, I use Visual Micro with Arduino IDE 2.3.10. In Visual Micro the Memory Usage information isn't shown in the Output since TeensyDuino 1.62. In Arduino IDE 2 it is still present. For instance: Memory Usage on Teensy 4.1: FLASH: code:38924, data:7112, headers:8232 free for files:8072196...
  6. Sam Halvoe

    Sparkfun Teensy Ethernet Adapter

    Has anybody seen this? Looks great. (:
  7. Sam Halvoe

    SQLite Library (VFS) for Teensy 4.1

    @Rezo I confirmed the allocations in PSRAM with sm_malloc_stats_pool(). Now it should be worth a try in your project. It would be great if it helps with your project. :)
  8. Sam Halvoe

    How to track memory allocated by extmem_malloc?

    Is it possible to track memory allocated by extmem_malloc? I have allocated 1024 bytes with EXTMEM and 1024 bytes with extmem_malloc in setup, but I only get 1024 from "_extram_end - _extram_start". Thanks for hints in advance. (:
  9. Sam Halvoe

    add extmem_size to extmem API?

    Hello, I am working on a library for SQLite for Teensy (Arduino), see this thread. I added the ability for SQLite to use extmem. SQLite needs to know the size of allocations. I use the following call to get the size: "sm_szalloc_pool(&extmem_smalloc_pool, pointer);". But the the source file(s)...
  10. Sam Halvoe

    SQLite Library (VFS) for Teensy 4.1

    I created a new repository, because I switched (sometime ago) from Platform IO to Visual Micro, here is the repo. I think I got SQLite to allocate on EXTMEM. By printing memory info (like this, see MemoryInfo.hpp/.cpp in repo) I see no allocations on the heap, but no allocations on the PSRAM...
  11. Sam Halvoe

    SQLite Library (VFS) for Teensy 4.1

    I tried to implement EXTMEM support today. I can init SQLite, but got a crash at the first SQL statement execution. I will continue my effort at the weekend.
  12. Sam Halvoe

    SQLite Library (VFS) for Teensy 4.1

    I did not test either yours nor mine. Just used your code as starting point. Think your version won't work. My version could work, but I do not have a Teensy at hand at the moment. Maybe I can test it tomorrow.
  13. Sam Halvoe

    SQLite Library (VFS) for Teensy 4.1

    @Rezo I used your generated code as template for my code.
  14. Sam Halvoe

    SQLite Library (VFS) for Teensy 4.1

    That is my first attempt, though not tested. sqlite3_use_extmem() must be called before T41SQLite::getInstance().begin(...)! (If this works, I will integrate sqlite3_use_extmem() as opt-in into begin().) #include "Arduino.h" // for: Teensy extmem functions #include "sqlite3.h" // for: SQLite...
  15. Sam Halvoe

    SQLite Library (VFS) for Teensy 4.1

    Looks like we have to supply this struct with "extmem functions" and set it as the current allocation interface for SQLite. xMalloc, xFree and xRealloc should be set to the extmem variants, but I do not know to what we should set the other members of the struct (allocation interface).
  16. Sam Halvoe

    SQLite Library (VFS) for Teensy 4.1

    If you want to look into, before I have time to do it, you could start here: https://sqlite.org/malloc.html There they explain, how to add custom allocators for SQLite. We should be able to supply the custom allocators with the extmen allocators.
  17. Sam Halvoe

    SQLite Library (VFS) for Teensy 4.1

    At the moment it is not possible. But I have planned to add this feature. Maybe I will have time to look into this. Some day I want to explore SQLite on Teensy more and refactor/rewrite my SQLite port. Then I will add extmen support.
  18. Sam Halvoe

    Use Library TaskScheduler with Teensy (4.x)

    I made a PR for the library TaskScheduler. Thanks for all replies! :)
  19. Sam Halvoe

    Use Library TaskScheduler with Teensy (4.x)

    What would be a better alternative to wfi instruction on Teensy 4.x? Maybe just a delay for 1 ms: delay(1)?
  20. Sam Halvoe

    Use Library TaskScheduler with Teensy (4.x)

    I cannot test the library immediately but want to try it next week. I have seen the define _TASK_SLEEP_ON_IDLE_RUN in the example code, you could comment out the line with this define and try the blink example again, if you want to.
  21. Sam Halvoe

    Use Library TaskScheduler with Teensy (4.x)

    Thanks for your response! I will make a PR for TaskScheduler with the define TEENSYDUINO. I think use of this define here is appropriate and the easiest opposed to defines like ARDUINO_TEENSY41 and so on...
  22. Sam Halvoe

    Use Library TaskScheduler with Teensy (4.x)

    Hello, I would like to use the library TaskScheduler in my project, but I think the library could support Teensyduino better. I would like to make a PR for the library, but beforehand I would like to ask for advice: The library supports std::function, but only for specific platforms (e.g...
  23. Sam Halvoe

    How to implement attachThread of EventResponder?

    I have opened an issue on cores: https://github.com/PaulStoffregen/cores/issues/786 Since it is a small and easy adjustment, it would be great if attachThread will be declared virtual.
  24. Sam Halvoe

    How to implement attachThread of EventResponder?

    Okay, thanks. But should attachThread be virtual declared then? I mean is this a "bug" in the EventResponder class? My idea arose from this comment above attachThread: // Attach a function to be called as its own thread. Boards not running // a RTOS or pre-emptive scheduler shall implement...
  25. Sam Halvoe

    How to implement attachThread of EventResponder?

    Hello (: I use TeensyThreads in my project and plan to use async SPI with EventResponder. I got the idea to use attachThread of EventResponder with TeensyThreads. But I am not sure how to implement attachThread. Is it a weak symbol? How should I define attachThread in my code? (Rather a general...
  26. Sam Halvoe

    Let's talk of possible new accessory boards

    How about a pre-assembled Ethernet kit or an assembled Ethernet board?
  27. Sam Halvoe

    Additional PSRAM ID that works plus goodies

    That's cool! Where did you buy the IS66WVS16M8FBLL chips?
  28. Sam Halvoe

    High Ram1 usage

    Hello, I cannot say something about the errors/problems you're experiencing directly, but I have tinkered also with the linker script some time ago. I did not change the default behaviour, but I had solution for placing whole files in flash instead in RAM. This solution seemed to work back...
  29. Sam Halvoe

    SQLite Library (VFS) for Teensy 4.1

    I want to update the library and add an example sketch. But unfortunately I don't have time for that at the moment.
  30. Sam Halvoe

    SQLite Library (VFS) for Teensy 4.1

    Would it be a good idea to provide a mechanism for error handling with a callback that converts error codes of the used filesystem library to error codes that are understood by my library or by SQLite? I could provide default callbacks for some libraries that implement the FS interface. In...
  31. Sam Halvoe

    SQLite Library (VFS) for Teensy 4.1

    I switched in my Library to FS and made SdFat an optional dependency. Thank you for your replies.
  32. Sam Halvoe

    SQLite Library (VFS) for Teensy 4.1

    Did not know about FS Interface. Would I have to implement FileImpl myself or exists an implementation for SdFat/SD cards?
  33. Sam Halvoe

    SQLite Library (VFS) for Teensy 4.1

    Hello everyone, I started working on a SQLite Library for Teensy 4.1 --> see Platform IO Project on GitHub. I took the test_demovfs.c from SQLite Website and used the Teensy SdFat library to implement the VFS. I am using the built in SD card slot of Teensy 4.1. VFS stands for Virtual File...
Back
Top