Repository navigation
Open
Description
README.md: under "validated HW & SW" list the version of OpenPRU tested with (2026.02?)
project-wide makefile:
- Will there be any other examples that might want to use the I2S driver? If so, would it make more sense to place under source/i2s?
- consider moving the library makefile elsewhere, e.g. inside of the driver/ directory like source/rpmsg/makefile.
- Also, why not just delete the generated lib/ folder instead of deleting specific files when removing the library?
- As far as I can tell, the library cannot be cleaned. I assume we should add a clean target like at https://github.com/TexasInstruments/open-pru/blob/main/source/rpmsg/makefile, right?
- makefile does not place pru: and host: inside the "ifeq ($(BUILD_PROJECT),y)" guard, and includes lines that don't actually accomplish anything. Proposed rewrite:
###########################
# Make and clean commands #
###########################
ifeq ($(BUILD_PROJECT),y)
# "make" or "make all" builds PRU firmware then host code for $(DEVICE)
all: MESSAGE = "Building $(PROJECT_NAME) for $(DEVICE)"
all: pre_build_message
$(MAKE) pru
$(MAKE) host
# "make pru" builds only PRU firmware for $(DEVICE)
pru: ARGUMENTS_PRU = all
pru: MESSAGE = "Building $(PROJECT_NAME) PRU firmware"
pru: pre_build_message $(DEVICE)
# "make host" builds only host (R5F) code for $(DEVICE) — requires PRU firmware first
host: ARGUMENTS_MCUPLUS = all
host: MESSAGE = "Building $(PROJECT_NAME) host code for $(DEVICE)"
host: pre_build_message $(DEVICE_NON_PRU)
# "make clean" cleans projects that match $(DEVICE) set in imports.mak
clean: ARGUMENTS_PRU = clean
clean: ARGUMENTS_MCUPLUS = scrub
clean: MESSAGE = "Cleaning $(PROJECT_NAME) for $(DEVICE)"
clean: pre_build_message $(DEVICE) $(DEVICE_NON_PRU)
else
# if a prebuild check failed, print message and exit
all clean pru host: pre_build_message
endif
per-core makefile:
- please use the same PRU core make template that is used in the rest of OpenPRU. For an example of passing includes, libraries, and specific defines to the firmware, refer to https://github.com/TexasInstruments/open-pru/blob/main/examples/rpmsg_echo_linux/firmware/am62x-sk/pruss0_pru0_fw/ti-pru-cgt/makefile . If the top-level https://github.com/TexasInstruments/open-pru/blob/main/pru_rules.mak does not work for all the "Add inputs and outputs from these tool invocations to the build variables", let me know and we'll figure it out.
- just use the OpenPRU standard way of defining output files and placing them in the ti-pru-cgt/generated/directory. You can update the MCU+ code to point there. This makes sure we don't get any future commits which add your binary outputs to git tracking
- My understanding was we pass silicon version 3 for PRUSS & PRU-ICSS that don't have task manager, not V4. We can discuss if this understanding is wrong.
Metadata
Metadata
Assignees
Labels
No labels
Activity
a1248924 commentedon Oct 26, 2026
fixed all issues raised here in #186