Part Number: OMAP-L138
Tool/software: TI C/C++ Compiler
Hi there,
TI Support told me to ask my question here, for there are more technical experts available. At the moment, I develop on a device using OMAP-L138. It is based on an actual product, where the colleagues used TI pasm tool to create a C Array out of the code written in assembly language. This array was loaded to PRU Instruction RAM before PRU was started. Now we want to switch over to program the PRU in C and use TI PRU C Compiler. Now I wonder how I have to edit lnk.cmd that I get the same situation like using pasm. I tried with the settings provided here: e2e.ti.com/.../571029
But the problem is that I don't want to get two Arrays for loading one to PRU instruction ram and the other to PRU data ram. I would like to get a single Array (just like pasm generates) that I can load to PRU instruction ram. The Reason is that our PRU Data Ram is full with a data structure ARM provides for the PRU before PRU is started. How do I have to change the linker cmd File that i get a setting like described above? Unfortunately, I am not very firm to Compiler & Linker structure and work, I am very new to these topics.
I hope you can understand my problem, any hints are appreciated.
Another question: In Technical Reference manual spruh77c it says that PRU Cycle Counter (In the registers on address 0x780c) can only be cleared to 0 if PRU is disabled. In my old Assembler Program, this cycle Counter is cleared right in the assembly code. How can this work?
Best regards,
Chris