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.

AM5728: PRU programming questions

Part Number: AM5728

I am working with the AM5728 evaluation board and using Code Composer to program the PRU cores. I am working through the Hands-on Labs provided in the Tii documents. I am trying to compile the first lab (toggle_led) Lab_1. I get a build error because it cannot find the pru_cfg.h file. When I search for it in my files it does not exist. I know that this lab is designed for the AM355 series on a BBB target but I thought that there would be an equivalent AM5728 pru_cfg.h file but I cannot find one. I have downloaded and set up the entire host and Code Composer environment as specified and downloaded all the dependencies but the pru_cfg.h file does not exist. Furthermore I cannot find the example Hands-on Labs for the AM5728 part in any of the downloads. 

My assumption is that these Labs have not been included as they have not been created for this device part. If this is the case then is it the case that I will have to create my own pru_cfg.h file for the AM5728? I was under the impression that one would be provided for each Sitara device as it pertains to the !/O registers. Thank you, Ian

  • Hello Ian,

    We do not currently have AM5728 specific labs, but you should be able to get the existing labs working on AM5728. The build error is probably because it is looking for the AM572x pru_cfg.h file from the PRU Software Support Package, not the AM355x pru_cfg.h. I assume you are using AM5728 silicon revision 2.0. If you installed the Linux Processor SDK (e.g. SDK 4.3), that file should be at ti-processor-sdk-linux-am57xx-evm-04.03.00.05/example-applications/pru-icss-5.1.0/include/am572x_2_0/pru_cfg.h. If you do not want to install the entire Linux Processor SDK, you can get just the PRU Software Support Package here.

    Try changing Lab 1 step 4d to 

    <PRU_SW_PATH>/include/am572x_2_0

    Regards, 

    Nick

  • Other notes:

    Step 6: Linker Command File. Instead of using AM335x_PRU.cmd, Take AM57xx_PRU.cmd from one of the PRU SW Support Package examples at examples/am572x/.

    Step 8e: the gel file is specific to AM335x and the beaglebone PRU cape, so you can't use it without modification.

    It may be easier to initialize the PRUs and develop with Linux already running rather than relying on GEL files for pinmuxing and initialization (see labs 4-6 and RPMsg quick start guide). Let me know as you have questions and we can work through them.

    Regards,

    Nick

  • Hi Nick,

    thanks very much for your very helpful reply. I have yet to implement the change you suggested as I am waiting for my new JTAG emulator. However, it is good to know that I should be able to get this working with the AM57xx with that change. I will let you know how it goes,

    All the best,

    Ian

  • Hi again, Nick,
    I just saw this addition to your first email. I will read through the RPMsg quick start guide and try to see how to get this to work. Thank you for offering to help. It will be good to be able to use the lab examples to learn how to code these cores. I wish TI would update these labs for the latest AM devices. All the best, Ian
  • Hello Ian,

    Expanding the PRU labs to include other devices has been on the backburner for some time. However, your post re-started that discussion and we may be able to put resources towards expanding the labs sometime in the future. So thank you for posting! Any challenges you run into are issues we would need to document for the lab expansion, so if/when I get the green light to devote time to redoing the labs, our discussion will be an excellent resource for that documentation process.

    Regards,
    Nick
  • Hello Ian,

    I am going to mark this resolved for now. If you have follow-up questions, please reply here.

    Regards,
    Nick