Hi...i am a new user here. Omitted a pretty big part of my project, which is I am using FreeRTOS. When putting my encryption and decryption code in a thread, including a copy of the code from the forum post you directed me to, it seems to not work. However as soon as I took it out of the thread and put it into the main function before the scheduler started it worked fine. The thread it was running on was the only one in the program, and had nothing preempting it.

pcb assembly firm