Tool/software: Code Composer Studio
How do you start the execution of PRU code after loading it from c6748 main processor? My context is as follows:
1. Wrote a PRU program consisting of main() only. In the main(), two contiguous unsigned int values in shared RAM (at 0x80000000) is swapped.
2. PRU code is compiled (clpru v. 2.3.1) and linked and an ascii array representing PRU code is generated in little endian format. This array is pasted in the test code that runs on the main processor.
3. The test code that runs on the processor does the following: 1)write 0's to control register at 0x01c37000. 2) writes the array above to the instruction memory of PRU0, 3) writes 0x0000000b to the control register.
4. After an arbitray delay, PRU is halted (by writing 0 to the enable bit in the control register) and the shared memory is checked. The memory content is not what was expected.
5. Based on the observation in 4, I am concluding that PRU did not run.