Other Parts Discussed in Thread: OMAPL138
Hi
I want to run a simple code on PRU (under window), please can you to give me a simple "how to" (I have the PRU_multiply example)
TX
PF
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Other Parts Discussed in Thread: OMAPL138
Hi
I want to run a simple code on PRU (under window), please can you to give me a simple "how to" (I have the PRU_multiply example)
TX
PF
Hi PF,
The easiest way to execute PRU code on the OMAPL138 from a Windows environment is using Code Composer Studios (CCS).
All of the examples require initialization from either the DSP or ARM, as well as the DSP or ARM to load the PRU firmware into the PRU instruction RAM and enable the PRU to start executing instructions. The DSP-based PRU support package already contains CCS projects that you can use.
Below are basic steps for running these examples in CCS. For details about using CCS, please refer to the CCS Getting Started Guide.
1. Assemble the PRU code for the desired project. Instructions for using the PASM assembler are here. You should use the -c and -CPRU_Code options. Be sure to copy the PRU_multiply_bin.h file to the PRU Software Development_1_03\examples\<example_name> directory
2. In CCS, create a Target Configuration File. You will want to select the device as "OMAPL138_pru."
3. Import the PRU example project in CCS (Project --> Import Legacy CCS Projects).
Use the "select search-directory" option and browse to the PRU Software Development_1_03\examples\<example_name> directory.
4. Launch the debugger (Run --> Debug). Make sure the emulator is connected to the PC and board and the OMAPL138 is powered on.
5. Select Run --> Resume to execute the example.
Regards,
Melissa