Tool/software:
Hello Specialists,
I recently tried to use spinlock in a PRG0PRU1 core. I encountered undefined symbols error during compile phase.
The PRU core c-code (assembly code file declaration) is shown below:

The assembly code (has compile error) is shown below:

Could anybody help to check what was missing?
Beside the error of undefined symbols, I also don't know how to use "#include" to get spinlock.h to be included (I tried to use direct c-disk file path, but was rejected with permission problem?)
Could you please also help to comment on how to remove the permission-limitations when I want to use file address in my c-disk for "#include" function?
Thank you very much. Jason, h