Hello,
Been trying for the last 2 days to get the correct compiler that is needed for the PRU_Hardware_UART example.
Link shows its been down for maintenance, is this the correct link?


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.
Hello,
Been trying for the last 2 days to get the correct compiler that is needed for the PRU_Hardware_UART example.
Link shows its been down for maintenance, is this the correct link?


The URLs under https://software-dl.ti.com/codegen/ are designed for use by the Eclipse updater and give "Sorry! We are currently doing site maintenance" messages if viewed by a web browser.
Compiler Installation and Selection and Compiler Updates describe how to install compilers from inside CCS.
From CCS 12 was able to use the menu option Help -> Install Code Generation Tools... and select to install PRU compiler 2.1.1, which from your error message is the compiler version mentioned:

Which after installation showed as discovered by CCS under Help -> Preferences:

From CCS 12 was able to use the menu option Help -> Install Code Generation Tools... and select to install PRU compiler 2.1.1, which from your error message is the compiler version mentioned:
That is broken, here are the screen shots.


Only selected the actually tools identified as PRU and those appear to have been installed instead of generating error.
It still does not work and produces these errors:

That is why I went direct to the download area, your suggested method was done initially and failed.
That is broken, here are the screen shots.
OK, not sure why that is broken but found the installers for PRU v2.1.1 compiler at https://www.ti.com/tool/download/PRU-CGT/2.1.1 by following the links from Compilers
Does the download link above work for you?
It also appears the PRU specific code is not in the SDK, here are the error messages after a clean an rebuild.

Hello Fred,
1) Read PRU Getting Started Labs
Please reference the PRU Getting Started Labs. They will walk you through all the steps to create the PRU project properly (including how to link to the header files, which are in the PRU Software Support Package (PSSP), which is packaged in your Linux SDK): https://software-dl.ti.com/processor-sdk-linux/esd/AM62X/08_06_00_42/exports/docs/common/PRU-ICSS/PRU-Getting-Started-Labs.html
I am linking you to the AM62x documentation because I finished writing the documentation for the labs after AM335x SDK 8.2 released (however, PSSP v6.1 which you have still has all the same lab files in it).
Lab 1 will address your question of how to get the latest compiler. Lab 2 will address your question of how to include the header files (among other important details).
2) Use the latest compiler
Is there a specific reason you are using PRU compiler v2.1.1? It is very old. Unless you know exactly what you are doing and why you are doing it, I would suggest using the latest PRU compiler v2.3.3. This is described in the makefile of the project you are trying to build: https://git.ti.com/cgit/pru-software-support-package/pru-software-support-package/tree/examples/am335x/PRU_Hardware_UART/Makefile
Regards,
Nick
Alternatively, you can reference the PRU Hands-on Labs which are AM335x specific (which seems to be your processor): software-dl.ti.com/.../PRU-Hands-on-Labs.html
Hi Nick
AM62X is the processor, why is an AM335 specific in the SDK for the AM62 if it does not have compatibility?
Can I just copy the file from the AM335 SDK into the AM62 SDK directory?
Thank you for the link to the labs, I seen that mentioned but never could find it.
Hey Fred,
PSSP includes examples for all our processors that have a PRU in them. The PRU Getting Started Labs are for every single processor, including the AM62x. I would begin with the getting started labs I were you.
Since you were referencing the PRU_Hardware_UART project in your screenshots (which is an AM335x project), I assumed that was your processor. The PRU Hands-on labs require specific hardware settings that would be different for every single processor and EVM you tried to run it on. That's too much work for us to handle right now, so the Hands-on labs are going to only include the settings for the AM335x BeagleBone black.
As another important note, we have ONLY tested AM62x PRU with the latest PRU compiler 2.3.3.
First, please go through the getting started labs. After that, if you are having trouble adapting AM335x PRU projects to run on AM62x, you can create a different e2e thread for that question.
Regards,
Nick