I had a question open which was perfectly solved in this Q&A .
As mentioned in my last comment, I didn't bring me a whole lot further. When I include freertos into my program, I get a mem fault when the first tasks is started when I compile with -fpic.
When I recompile without -fpic, the blink test runs fine.
I added two projects to this issue:
- MIMXRT1024_Project.zip : the project compiled WITH -fpic, which crashes on mem fault
- MIMXRT1024_Project.zip: the project compiled normally, without -fpic. Runs fine.
I would be very very grateful if you could help me and explain what I am doing wrong. I have tried so many things but I am getting nowhere. Moving got to ITC sram. DTC sram. Moving vector table into ITC/DTC sram. Leaving .got in flash. Nothing gives. I have the feeling that I am so close to a working solution, but I just can't find the culprit....