Search results

  1. E

    Running Code from RAM2 on Teensy 4.0

    Only when i disabled the caches was I able to run the code from ram. Later when I am able I'm going to look into enabling the caching. Im going to attach the code that i use to compile and move the code onto the SD card automatically. The build.sh is used to compile the .c code and output it...
  2. E

    Running Code from RAM2 on Teensy 4.0

    Thank you so so much Paul! After some digging I found out that I also need to disable the D and I cache with SCB_DisableICache(); and SCB_DisableDCache(); But either way now that I am able to run code from the OCRAM comes the next challenge of interacting with outside variables and...
  3. E

    Running Code from RAM2 on Teensy 4.0

    Hi all, I'm working on a project where I need to load and execute code dynamically from an SD card. Specifically, I’m allocating memory in RAM2 using malloc(), copying precompiled function code into that memory region, and then trying to call it via a function pointer. The code seems to load...
  4. E

    How do i run external code?

    I am currently working on a project that has to run compiled code that is previously loaded on an SD card. So far I have managed to do the loading from an SD card part and I supposedly have done the code execution (but I will upload the execution of foreign functions library). My question is how...
  5. E

    Teensy slows down for some unknown reason

    Hello I'm going back to my project after some time and for some reason there is a delay of 7 seconds that happens for some reason. What happens the MC runs fine, this can be indicated by the internal led i have setup to blink, but when I send the magic character that adds a packet to the packet...
  6. E

    Memory issues with Teensy 4.0

    I have fixed the code and now it works fine. Thank you!
  7. E

    Memory issues with Teensy 4.0

    I didn’t think the BusComLib.h or util.h files were important to mention since they’re just header files. I also forgot to mention that utils.cpp contains only my custom implementation of memset(). The reason I wrote my own version of memset() is that I suspected there might be an issue with...
  8. E

    Memory issues with Teensy 4.0

    Hi everyone, I'm working on a computer project designed to run on embedded devices. The main board I'm using for everything is the Teensy 4.0. I’ve created a class to handle the bus communication I’m setting up between all the devices. In this class, I have two large struct arrays. The total...
Back
Top