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.

TMS320F280023C: compile error

Part Number: TMS320F280023C
Other Parts Discussed in Thread: C2000WARE

Hi Team,

There is an issue from the customer need your help:

Error: Cannot find module 'C:\dot_file_libraries\clbDotUtility.js'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
    at Function.Module._load (internal/modules/cjs/loader.js:725:27)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
    at internal/main/run_main_module.js:17:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []

How to fix this error?

Could you help check this case?

Thanks & Regards,

Ben

  • Hello,

    When does this error occur and where is this message output? It does not look like a message from the compiler.

    Thanks

    ki

  • Hi Ki,

    The problem is that there are some extra code at Build—StepsPost-build steps, and I don't know what does it do.

    mkdir "${BuildDirectory}/simulation"
    ${CLB_SIM_COMPILER}/g++  -c -DCLB_SIM -I${SYSTEMC_INSTALL}/src -I${C2000WARE_ROOT}/utilities/clb_tool/clb_syscfg/systemc/include -I${PROJECT_ROOT} -I${CLB_SIM_COMPILER}/include -Og -g -gdwarf-3 -gstrict-dwarf -Wall -MMD -MP -MF${BuildDirectory}/simulation/clb_sim.d -MT${BuildDirectory}/simulation/clb_sim.o -I${BuildDirectory}/syscfg   -fno-threadsafe-statics  -o${BuildDirectory}/simulation/clb_sim.o ${BuildDirectory}/syscfg/clb_sim.cpp
    ${CLB_SIM_COMPILER}/g++ -DCLB_SIM -Og -g -gdwarf-3 -gstrict-dwarf -Wall -Wl,-Map,${BuildDirectory}/simulation/simulation_output.map -L${SYSTEMC_INSTALL}/build/src -o${BuildDirectory}/simulation/simulation_output.exe ${BuildDirectory}/simulation/clb_sim.o ${C2000WARE_ROOT}/utilities/clb_tool/clb_syscfg/systemc/src/CLB_FSM_SC_model.o ${C2000WARE_ROOT}/utilities/clb_tool/clb_syscfg/systemc/src/CLB_HLC_SC_model.o ${C2000WARE_ROOT}/utilities/clb_tool/clb_syscfg/systemc/src/CLB_LUT4_SC_model.o ${C2000WARE_ROOT}/utilities/clb_tool/clb_syscfg/systemc/src/CLB_OutputLUT_SC_model.o ${C2000WARE_ROOT}/utilities/clb_tool/clb_syscfg/systemc/src/CLB_counter_SC_model.o  -Wl,--start-group -lsystemc -Wl,--end-group
    ./simulation/simulation_output.exe
    ${NODE_TOOL} "${CLB_SYSCFG_ROOT}/dot_file_libraries/clbDotUtility.js"  "${CLB_SYSCFG_ROOT}" "${BuildDirectory}/syscfg" "${BuildDirectory}/syscfg/clb.dot"

    Best Regards,

    Ben

  • Thanks. The error is coming from a post-build step. I will bring this thread to the attention of the device experts for further suggestions

  • Hello Ben,

    The post-build step regarding the clbDotUtility.js is used to generate the diagram for the CLB Tool; if you're not using it you can exclude the step by setting the NODE_TOOL variable to 0 in the Project Properties Build settings.

    If you are trying to generate a diagram for the CLB Tool, verify that the Linked Resources section of the Project Properties lists CLB_SYSCFG_ROOT as something like: C2000Ware_4_XX_XX_XX\utilities\clb_tool\clb_syscfg\dot_file_libraries, because otherwise it will always have this error.

    Best regards,

    Omer Amir