Function rc_pru_start#

Function Documentation#

int rc_pru_start(int ch, const char *fw_name)#

Starts a single specified PRU core running a provided firmware name.

This function requires root privileges and your custom firmware must exist in “/lib/firmware/”. The default name for the two firmwares are “am335x-pru0-fw” and “am335x-pru1-fw”, please don’t overwrite these if they exist. Name your firmware image something like “am335x-pru0-mycustom-fw”.

Parameters:
  • ch[in] pru core to start (0 or 1)

  • fw_name[in] The firmware image name, e.g. “am335x-pru0-fw”, do not include ‘/lib/firmware’ in the path, only the file name.

Returns:

0 on success, -1 on failure.