Forum Rule: Always post complete source code & details to reproduce any issue!
  • OnixIsThePewterGod's Avatar
    02-05-2023, 07:11 PM
    I was asking about the best way to initialize the SD card and how I could get max performance out of it. I also had asked if overclocking the Teensy itself (not the SDIO) would make any difference.
    22 replies | 964 view(s)
  • OnixIsThePewterGod's Avatar
    01-27-2023, 02:54 PM
    As you said, that definitely sounds challenging. I don't write linker scripts so I can't try. Also I've wanted to talk about #1 and #2 again. I tried using the SdFat_Usage sketch and the only begin() functions which...
    22 replies | 964 view(s)
  • OnixIsThePewterGod's Avatar
    01-26-2023, 01:08 PM
    Now I realize the challenge that comes with loading programs from an SD card... It's basically forcing you to make an executable format from scratch and that isn't easy lol.
    22 replies | 964 view(s)
  • OnixIsThePewterGod's Avatar
    01-22-2023, 08:43 PM
    I know C/C++ will give you the address of the array/malloc just by referencing it. Do you mean it won't give you the exact address or something?
    22 replies | 964 view(s)
  • OnixIsThePewterGod's Avatar
    01-22-2023, 03:34 PM
    I get it 😉 I did figure out it runs in Thumb mode (that's kind of why I was confused on my last post along with the endianness). So couldn't I just read() x number of bytes into an array/vector/malloc() and then...
    22 replies | 964 view(s)
  • OnixIsThePewterGod's Avatar
    01-22-2023, 02:26 AM
    It seems this works... maybe? I hope it's not causing undefined behavior. void setup(){ Serial.begin(9600); char a="\xfe\xff\xff\xea"; ((void(*)(void))a)(); Serial.println("this shouldn't be reached"); } ...
    22 replies | 964 view(s)
  • OnixIsThePewterGod's Avatar
    01-21-2023, 11:17 PM
    Also, about #4: Could I read the code into a standard array or malloc() array, and then use __attribute__ ((section (".ramfunc")))? Or is there any other way users have proposed?
    22 replies | 964 view(s)
  • OnixIsThePewterGod's Avatar
    01-21-2023, 11:11 PM
    Oh... I was confused, sorry Yup, I did before I got my T4.1. Never found anything about SD being the same as SdFat. I guess I'll have to switch libraries now.
    22 replies | 964 view(s)
  • OnixIsThePewterGod's Avatar
    01-21-2023, 09:52 PM
    I tried putting the SdFat_Usage begin() functions into my code and they don't work. sdInitErrorHalt shows SdError: 0x1, 0xFF. So those don't work. Again, I don't want to use anything in SD.h.
    22 replies | 964 view(s)
  • OnixIsThePewterGod's Avatar
    01-21-2023, 09:15 PM
    Any possible examples of code for my questions? (the ones which can easily be answered) I want to use the SdFat library, not SD. I meant the MCU, not SDIO.
    22 replies | 964 view(s)
  • OnixIsThePewterGod's Avatar
    01-21-2023, 08:28 PM
    I got a T4.1 for Christmas (yay! should have posted about it though) and I've been messing with the SD card slot. I want some guidance on how to write code with the SdFat library. Which ways can I properly...
    22 replies | 964 view(s)
No More Results
About OnixIsThePewterGod

Basic Information

Statistics


Total Posts
Total Posts
14
Posts Per Day
0.04
Last Post
SD card questions 02-05-2023 07:11 PM
General Information
Last Activity
02-27-2023 09:07 PM
Join Date
05-03-2022