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.

Compile C++ code on the DSP side, within SWOSD example

Hi,

I am working on DM814x, RDK4.0. Some 3A functions written by C++/Asm need to be applied to the DSP side.  It looks easy to start from the example SWOSD. However, I still can't find out the reference to config it in the SRC_FILES.MK. The C++ and ASM code is in the .cpp & .asm files.  Is there any reference project or document? Very thanks!

Rest Regards.

Hong.

  • Are you using DVRRDK or IPNC RDK ? DVRRDK support doesn't support compilation of .asm and .cpp files. Adding support for .asm and .cpp files required modification to /dvr_rdk/makerules/rules_c674.mk

    For asm compilation you can refer DVRRDK rules_m3.mk for reference

    # Asm Object file creation
    # The first $(CC) generates the dependency make files for each of the objects
    # The second $(CC) compiles the source to generate object
    $(AOBJ_PATHS): $(OBJDIR)/%.$(AOBJEXT): %.s
     $(ECHO) \# Assembling $(PLATFORM):$(CORE):$(PROFILE_$(CORE)):$(APP_NAME)$(MODULE_NAME): $<
     $(CC) $(filter-out -oe -eo.$(OBJEXT),$(_CFLAGS)) --asm_listing --ual -eo.$(AOBJEXT) $(INCLUDES) $(CFLAGS_DIROPTS) -fa $<

    For cpp files I think you are going to face issues as we have never tried cpp file compilation using dvrrdk make.

    I think it is simpler if you compile the files separately using a CCS project and link in the library.