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.

RTOS/PROCESSOR-SDK-AM335X: Rebuilding pdk_am335x_1_0_12 in windows fails

Part Number: PROCESSOR-SDK-AM335X

Tool/software: TI-RTOS

Hello,

I've install the processor SDK for the AM335x 05.01.00.11 and I'm trying to rebuild the shipped psk, pdk_am335x_1_0_12.

I had no problems with the previous version pdk_am335x_1_0_11.

I've copied & pasted the output for gmake clean 

C:\ti\pdk_am335x_1_0_12\packages>pdksetupenv.bat
'export' is not recognized as an internal or external command,
operable program or batch file.
***************************************************
Environment Configuration:
***************************************************
    SDK_INSTALL_PATH        : C:/ti
    GMAKE_INSTALL_PATH      : C:/ti/xdctools_3_50_07_20_core
    RULES_MAKE              : C:/ti/pdk_am335x_1_0_12/packages/Rules.make
***************************************************

C:\ti\pdk_am335x_1_0_12\packages>gmake clean
gmake -C ./ti/csl clean
gmake[1]: Entering directory `C:/ti/pdk_am335x_1_0_12/packages/ti/csl'
gmake clean_libcores SOC=am335x
gmake[2]: Entering directory `C:/ti/pdk_am335x_1_0_12/packages/ti/csl'
gmake clean_lib_allendians CORE=a8host BUILD_PROFILE_a8host=release
gmake[3]: Entering directory `C:/ti/pdk_am335x_1_0_12/packages/ti/csl'
gmake comp_libs_clean ENDIAN=little
gmake[4]: Entering directory `C:/ti/pdk_am335x_1_0_12/packages/ti/csl'
gmake -C C:/ti/pdk_am335x_1_0_12/packages/ti/csl -fmakefile.mk clean
     17 [main] sh 5116 C:\ti\xdctools_3_50_07_20_core\bin\sh.exe: *** fatal error - fork: can't reserve memory for stack 0x2CC8C0 - 0x2D0000, Win32 error 487
      9 [main] sh 7348 child_info::sync: wait failed, pid 5116, Win32 error 1812

    810 [main] sh 7348 fork: child -1 - died waiting for longjmp before initialization, retry 10, exit code 0x1000000, errno 11
C:/Users/Paul/AppData/Local/Temp/make5272-1.sh: Cannot fork: Resource temporarily unavailable
gmake[4]:

pdk_am335x_1_0_11 uses gmake and sh from C:\ti\xdctools_3_50_03_33_core

pdk_am335x_1_0_12 is using gmake and sh from C:\ti\xdctools_3_50_07_20_core, so I'm suspecting the issue is to do with the change of tools. Or perhaps my PC is missing a dependency for the new tools.

PC System Information

OS Name Microsoft Windows 7 Professional
Version 6.1.7601 Service Pack 1 Build 7601
Other OS Description Not Available
OS Manufacturer Microsoft Corporation
System Manufacturer Dell Inc.
System Model Vostro 3560
System Type x64-based PC
Processor Intel(R) Core(TM) i3-2370M CPU @ 2.40GHz, 2400 Mhz, 2 Core(s), 4 Logical Processor(s)
Installed Physical Memory (RAM) 4.00 GB
Total Physical Memory 3.88 GB
Available Physical Memory 1.02 GB
Total Virtual Memory 7.75 GB
Available Virtual Memory 2.67 GB

  • Paul,

    The command line forking issue is somethings that we have intermittently seen from end users but don`t necessarily completely understand as this seems to be caused but cycgwin/mingw/mysys tools that are setup on Windows machine that seem to impact Processor SDK RTOS build on Windows on some machines. Can you confirm that you don`t have any cygwin, miggw or msys tools in your environment path

    you can check from posts below, that other users have reported and found work arounds for these issues:

    The one time that we were able to reproduce this issue, restarting the machine and opening new command line to restart the process solved the issue and in that test case we had several msys based sessions open due to GITbash open.

    Another tip that I would give to you to save some time, is that with Processor SDK RTOS, you should never be required to do a gmake clean. The installer provides a prebuilt version of all driver and component libraries. The only things that you need to build are demos and examples so using gmake with specific command line options that limit the build will save you plenty of time during development:

    Building_PDK_for_AM335x.pdf

    We are working on adding this update to the SDK documentation here:

    http://software-dl.ti.com/processor-sdk-rtos/esd/docs/latest/rtos/Overview.html#building-pdk-using-gmake-in-windows-environment

    Hope this helps.

    Regards,

    Rahul

  • Hi Rahul,

    I checked the PATH environment variable as suggested and found C:/TI/XDCTOOLS_3_25_02_70. 

    After removing this from the PATH, the PDK build operations worked as expected.

    I will be making some changes to the PDK for our custom board so I will need to at least rebuild the PDK board libs.

    Thanks for you help,

    Regards,

    Paul.