Hi,
I'm using TI's C-compiler to create some PRU-code. My first test application consisted of the main-function only and worked well with PRU starting at address 0x0000.
Now I added a function which is called out of main() and the whole thing is damaged. What I found from MAP-file this new function sendFrame() was placed at address 0x0000:
output attributes/ section page origin length input sections -------- ---- ---------- ---------- ---------------- .text 0 00000000 00000450 00000000 000001f4 main.obj (.text:sendFrame$0) 000001f4 000001a4 main.obj (.text:main)
So when PRU starts at address 0x0000 it of course will fail since execution is started somewhere in between.
So my question: Is there an option to tell the compiler to always place main() at address 0x00000000?