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.

Starterware/AM3359: GPMC Problem

Part Number: AM3359
Other Parts Discussed in Thread: SYSCONFIG, , SYSBIOS

Tool/software: Starterware

HI,

I'm using a beaglebone black, CCS 6.1 with Starterware 2.0.1.1 for my project.  The interfaced in configured in non_mux mode with address 0x0100 0000, 16Mb with GPMC_csn0.

The following code is used to Configure the GPMC :

#define CS_WR_OFF_TIME 0x1E
#define CS_RD_OFF_TIME 0x1E
#define CS_ON_TIME 0x01
#define ADV_ON_TIME 0x02
#define ADV_RD_OFF_TIME 0x04
#define ADV_WR_OFF_TIME 0x04
#define OE_ON_TIME 0x0A
#define OE_OFF_TIME 0x19
#define WE_ON_TIME 0x0A
#define WE_OFF_TIME 0x19
#define RD_CYCLE_TIME 0x1F
#define WR_CYCLE_TIME 0x1F
#define RD_ACCESS_TIME 0x19
#define WR_DATA_ON_ADMUX 0x06
#define WR_ACCESS_TIME 0x00
#define CYC2CYC_DELAY 0x05
#define CS0_BASE_ADDR 0x01 // base_addr (0x01-0x1F)
#define CS0_MASK_ADDR GPMC_CS_SIZE_16MB // max cs size = 16 mb

#define LCD_WRITE(x) (*(volatile unsigned int *)(x))
#define LCD_BASE 0x01000000 
#define LCD_OFFSET (LCD_BASE + 0x01)

void GPMC_Init(void)
{
unsigned int csNum = 0;
unsigned int baseAddr = SOC_GPMC_0_REGS;
unsigned int conf = 0;

//enable clock to GPMC module
HWREG(SOC_CM_PER_REGS + CM_PER_GPMC_CLKCTRL) = (CM_PER_GPMC_CLKCTRL_MODULEMODE_ENABLE << CM_PER_GPMC_CLKCTRL_MODULEMODE_SHIFT);
//check to see if enabled
while((HWREG(SOC_CM_PER_REGS + CM_PER_GPMC_CLKCTRL) & (CM_PER_GPMC_CLKCTRL_IDLEST)));

GPMCIdleModeSelect(baseAddr, GPMC_IDLEMODE_FORCEIDLE);

//reset the GPMC module
GPMCModuleSoftReset(baseAddr);
while (GPMCModuleResetStatusGet(baseAddr) == GPMC_SYSSTATUS_RESETDONE_RSTONGOING);
GPMCIdleModeSelect(baseAddr,GPMC_SYSCONFIG_IDLEMODE_NOIDLE);
HWREG(baseAddr + GPMC_IRQENABLE) = 0x0;

//--------------------------------------- CS0 SRAM Config ---------------------------------------
//GPMCTimeOutStartValSet(GPMC_BASE,0);
HWREG(baseAddr + GPMC_TIMEOUT_CONTROL) = 0x0;
GPMCDevTypeSelect(baseAddr, csNum, GPMC_DEVICETYPE_NORLIKE); 
GPMCDevSizeSelect(baseAddr, csNum, GPMC_DEVICESIZE_16BITS); 
GPMCDevPageLenSet(baseAddr, csNum, GPMC_DEV_PAGELENGTH_FOUR); 
GPMCAddrDataMuxProtocolSelect(baseAddr, csNum, GPMC_MUXADDDATA_NOMUX); 
GPMCTimeParaGranularitySelect(baseAddr, csNum, GPMC_TIMEPARAGRANULARITY_X2);

conf = GPMC_CS_TIMING_CONFIG(CS_WR_OFF_TIME, CS_RD_OFF_TIME, GPMC_CS_EXTRA_NODELAY, CS_ON_TIME);
GPMCCSTimingConfig(baseAddr, csNum, conf);

//conf = GPMC_ADV_TIMING_CONFIG(0, 0, ADV_WR_OFF_TIME, ADV_RD_OFF_TIME, GPMC_ADV_EXTRA_NODELAY, 0, ADV_ON_TIME);
//GPMCADVTimingConfig(baseAddr, csNum, conf);

conf = GPMC_WE_OE_TIMING_CONFIG(WE_OFF_TIME, GPMC_WE_EXTRA_NODELAY, WE_ON_TIME, 0, OE_OFF_TIME, GPMC_OE_EXTRA_NODELAY, 0, OE_ON_TIME);
GPMCWEAndOETimingConfig(baseAddr, csNum, conf);

conf = GPMC_RDACCESS_CYCLETIME_TIMING_CONFIG(RD_CYCLE_TIME, WR_CYCLE_TIME, RD_ACCESS_TIME, 0);
GPMCRdAccessAndCycleTimeTimingConfig(baseAddr, csNum, conf);

//GPMCWrAccessAndWrDataOnADMUXBusTimingConfig(baseAddr, csNum, WR_ACCESS_TIME, WR_DATA_ON_ADMUX);

conf = GPMC_CYCLE2CYCLE_BUSTURNAROUND_TIMING_CONFIG(CYC2CYC_DELAY, GPMC_CYCLE2CYCLESAMECSEN_C2CDELAY, GPMC_CYCLE2CYCLEDIFFCSEN_NOC2CDELAY, 0 );
GPMCycle2CycleAndTurnArndTimeTimingConfig(baseAddr, csNum, conf);

GPMCBaseAddrSet(baseAddr, csNum, CS0_BASE_ADDR); 
GPMCMaskAddrSet(baseAddr, csNum, CS0_MASK_ADDR); 
GPMCCSConfig(baseAddr, csNum, GPMC_CS_ENABLE);

}

void GPMC_PinConfig(void)
{
//MODE SWITCH
CPUSwitchToPrivilegedMode();
//CPUSwitchToUserMode();

//PIN MUX
HWREG(SOC_CONTROL_REGS + CONTROL_CONF_GPMC_AD(8)) = CONTROL_CONF_MUXMODE(0); /* Mapping GPMC_AD8 => GPMC_AD8 */
HWREG(SOC_CONTROL_REGS + CONTROL_CONF_GPMC_AD(9)) = CONTROL_CONF_MUXMODE(0); /* Mapping GPMC_AD9 => GPMC_AD9 */
HWREG(SOC_CONTROL_REGS + CONTROL_CONF_GPMC_AD(10)) = CONTROL_CONF_MUXMODE(0); /* Mapping GPMC_AD10 => GPMC_AD10 */
HWREG(SOC_CONTROL_REGS + CONTROL_CONF_GPMC_AD(11)) = CONTROL_CONF_MUXMODE(0); /* Mapping GPMC_AD11 => GPMC_AD11 */
HWREG(SOC_CONTROL_REGS + CONTROL_CONF_GPMC_AD(12)) = CONTROL_CONF_MUXMODE(0); /* Mapping GPMC_AD12 => GPMC_AD12 */
HWREG(SOC_CONTROL_REGS + CONTROL_CONF_GPMC_AD(13)) = CONTROL_CONF_MUXMODE(0); /* Mapping GPMC_AD13 => GPMC_AD13 */
HWREG(SOC_CONTROL_REGS + CONTROL_CONF_GPMC_AD(14)) = CONTROL_CONF_MUXMODE(0); /* Mapping GPMC_AD14 => GPMC_AD14 */
HWREG(SOC_CONTROL_REGS + CONTROL_CONF_GPMC_AD(15)) = CONTROL_CONF_MUXMODE(0); /* Mapping GPMC_AD15 => GPMC_AD15 */

HWREG(SOC_CONTROL_REGS + CONTROL_CONF_GPMC_WEN) = CONTROL_CONF_MUXMODE(0); /* Mapping GPMC_WEN => GPMC_WEN */
HWREG(SOC_CONTROL_REGS + CONTROL_CONF_GPMC_OEN_REN) = CONTROL_CONF_MUXMODE(0); /* Mapping GPMC_OEN_REN => GPMC_OEN_REN */
HWREG(SOC_CONTROL_REGS + CONTROL_CONF_GPMC_CSN(0)) = CONTROL_CONF_MUXMODE(0); /* Mapping GPMC_CSN0 => GPMC_CSN0 */
HWREG(SOC_CONTROL_REGS + CONTROL_CONF_GPMC_CSN(3)) = CONTROL_CONF_MUXMODE(0); /* Mapping GPMC_CSN3 => GPMC_CSN3 */
HWREG(SOC_CONTROL_REGS + CONTROL_CONF_GPMC_CLK) = CONTROL_CONF_MUXMODE(0); /* Mapping GPMC_CLK => GPMC_CLK */
HWREG(SOC_CONTROL_REGS + CONTROL_CONF_GPMC_WAIT0) = CONTROL_CONF_MUXMODE(0); /* Mapping GPMC_WAIT0 => GPMC_WAIT0 */

HWREG(SOC_CONTROL_REGS + CONTROL_CONF_LCD_DATA(0)) = CONTROL_CONF_MUXMODE(1); /* Mapping LCD_DATA0 => GPMC_A0 */
HWREG(SOC_CONTROL_REGS + CONTROL_CONF_LCD_DATA(1)) = CONTROL_CONF_MUXMODE(1); /* Mapping LCD_DATA1 => GPMC_A1 */
HWREG(SOC_CONTROL_REGS + CONTROL_CONF_LCD_DATA(2)) = CONTROL_CONF_MUXMODE(1); /* Mapping LCD_DATA2 => GPMC_A2 */
HWREG(SOC_CONTROL_REGS + CONTROL_CONF_LCD_DATA(3)) = CONTROL_CONF_MUXMODE(1); /* Mapping LCD_DATA3 => GPMC_A3 */
HWREG(SOC_CONTROL_REGS + CONTROL_CONF_LCD_DATA(4)) = CONTROL_CONF_MUXMODE(1); /* Mapping LCD_DATA4 => GPMC_A4 */
HWREG(SOC_CONTROL_REGS + CONTROL_CONF_LCD_DATA(5)) = CONTROL_CONF_MUXMODE(1); /* Mapping LCD_DATA5 => GPMC_A5 */
HWREG(SOC_CONTROL_REGS + CONTROL_CONF_LCD_DATA(6)) = CONTROL_CONF_MUXMODE(1); /* Mapping LCD_DATA6 => GPMC_A6 */
HWREG(SOC_CONTROL_REGS + CONTROL_CONF_LCD_DATA(7)) = CONTROL_CONF_MUXMODE(1); /* Mapping LCD_DATA7 => GPMC_A7 */
HWREG(SOC_CONTROL_REGS + CONTROL_CONF_LCD_VSYNC) = CONTROL_CONF_MUXMODE(1); /* Mapping LCD_VSYNC => GPMC_A8 */
HWREG(SOC_CONTROL_REGS + CONTROL_CONF_LCD_HSYNC) = CONTROL_CONF_MUXMODE(1); /* Mapping LCD_HSYNC => GPMC_A9 */
HWREG(SOC_CONTROL_REGS + CONTROL_CONF_LCD_PCLK) = CONTROL_CONF_MUXMODE(1); /* Mapping LCD_PCLK => GPMC_A10 */
HWREG(SOC_CONTROL_REGS + CONTROL_CONF_LCD_AC_BIAS_EN) = CONTROL_CONF_MUXMODE(1); /* Mapping LCD_AC_BIAS_EN => GPMC_A11 */
HWREG(SOC_CONTROL_REGS + CONTROL_CONF_LCD_DATA(8)) = CONTROL_CONF_MUXMODE(1); /* Mapping LCD_DATA8 => GPMC_A12 */
HWREG(SOC_CONTROL_REGS + CONTROL_CONF_LCD_DATA(9)) = CONTROL_CONF_MUXMODE(1); /* Mapping LCD_DATA9 => GPMC_A13 */
HWREG(SOC_CONTROL_REGS + CONTROL_CONF_LCD_DATA(10)) = CONTROL_CONF_MUXMODE(1); /* Mapping LCD_DATA10 => GPMC_A14 */
HWREG(SOC_CONTROL_REGS + CONTROL_CONF_LCD_DATA(11)) = CONTROL_CONF_MUXMODE(1); /* Mapping LCD_DATA11 => GPMC_A15 */
HWREG(SOC_CONTROL_REGS + CONTROL_CONF_LCD_DATA(12)) = CONTROL_CONF_MUXMODE(1); /* Mapping LCD_DATA12 => GPMC_A16 */
HWREG(SOC_CONTROL_REGS + CONTROL_CONF_LCD_DATA(13)) = CONTROL_CONF_MUXMODE(1); /* Mapping LCD_DATA13 => GPMC_A17 */
HWREG(SOC_CONTROL_REGS + CONTROL_CONF_LCD_DATA(14)) = CONTROL_CONF_MUXMODE(1); /* Mapping LCD_DATA14 => GPMC_A18 */
HWREG(SOC_CONTROL_REGS + CONTROL_CONF_LCD_DATA(15)) = CONTROL_CONF_MUXMODE(1); /* Mapping LCD_DATA15 => GPMC_A19 */


;
}

After doing this, i'm trying to write a word in the address 0x0100 0000 but the application crashes at this point with undefined handler.

LCD_WRITE(LCD_OFFSET)=0xaa00;

Here are GPMC_CONFIG7 registers:

GPMC_CONFIG1_0 0x00001010 
GPMC_CONFIG2_0 0x001E1E01 
GPMC_CONFIG3_0 0x22060514 
GPMC_CONFIG4_0 0x190A190A 
GPMC_CONFIG5_0 0x00191F1F 
GPMC_CONFIG6_0 0x8F070580 
GPMC_CONFIG7_0 0x00000F41 

Please let me know, if this is the right way to do and also why it crashes when i'm trying to write to GPMC address. Please suggest.

Thanks

  • user4910990,
    Please take a look at this example in the RTOS package for GPMC init. Its for AM3359 but it should give you some insight into the correct settings. C:\ti\pdk_am335x_1_0_7\packages\MyExampleProjects\GPMC_Test_icev2AM335x_armExampleProject

    If you have trouble building the example, please let me know and I can assist.

    Lali
  • Hi Lalindra,
    Where can I find this example? I am using AM335X StarterWare 02.00.01.01 but there is no this directory.
    C:\ti\pdk_am335x_1_0_7\packages\MyExampleProjects\GPMC_Test_icev2AM335x_armExampleProject

    Thanks
  • user4910990,
    I meant to reference pdk_am335x_1_0_6. Version 1_0_7 is a beta build which should be released in the next few weeks. So, you can find the same example at C:\ti\pdk_am335x_1_0_6\packages\MyExampleProjects\GPMC_Test_icev2AM335x_armExampleProject
    Please get the AM335x RTOS release from software-dl.ti.com/.../index_FDS.html

    The MyExampleProjects directory is not installed by default.

    In order to get this example/directory, you will have to build the pdk examples as mentioned here processors.wiki.ti.com/.../Rebuilding_The_PDK

    Lali
  • Lali,

    Thanks for your help.

    I got an error when I build PDK using command gmake all.

    # Archiving am335x:a8host:release:pm_example_utils into /ti/PDK_AM~1/packages/ti/drv/pm/lib/am335x/a8/release/pm_example_utils.aa8fg...

    #
    C:/ti/gcc-arm-none-eabi-4_9-2015q3/bin/arm-none-eabi-ar cr /ti/PDK_AM~1/packages/ti/drv/pm/lib/am335x/a8/release/pm_example_utils.aa8fg /ti/PDK_AM~1/packages/ti/binary/ti/drv/pm/examples/utils/obj/am335x/a8/release/app_utils.oa8fg
    gmake[5]: Leaving directory `C:/ti/PDK_AM~1/packages/ti/drv/pm/examples/utils'
    gmake[4]: Leaving directory `C:/ti/PDK_AM~1/packages/ti/drv/pm'
    gmake[3]: Leaving directory `C:/ti/PDK_AM~1/packages/ti/drv/pm'
    gmake[2]: Leaving directory `C:/ti/PDK_AM~1/packages/ti/drv/pm'
    gmake appcores BOARD=evmAM335x
    gmake[2]: Entering directory `C:/ti/PDK_AM~1/packages/ti/drv/pm'
    gmake examples CORE=a8host BUILD_PROFILE_a8host=release;
    gmake[3]: Entering directory `C:/ti/PDK_AM~1/packages/ti/drv/pm'
    Nothing to be done for am335x pm_systemconfig_app
    gmake -C /ti/PDK_AM~1/packages/ti/drv/pm/examples/pmrtos xdc_configuro
    gmake[4]: Entering directory `C:/ti/PDK_AM~1/packages/ti/drv/pm/examples/pmrtos'
    # Invoking configuro...
    C:/ti/xdctools_3_32_01_22_core/bin/mkdir -p /ti/PDK_AM~1/packages/ti/binary
    C:/ti/xdctools_3_32_01_22_core/xs --xdcpath="C:/ti/bios_6_46_04_53/packages;C:/ti/xdctools_3_32_01_22_core/packages;C:/ti/edma3_lld_2_12_03_27/packages;C:/ti/ndk_2_25_01_11/packages;/ti/PDK_AM~1/packages;" xdc.tools.configuro --generationOnly -o /ti/PDK_AM~1/packages/ti/binary/pm_rtos_app/obj/evmAM335x/a8host/release/pm_rtos_app_configuro -t gnu.targets.arm.A8F -p "ti.platforms.evmAM3359" \
    -r release -c C:/ti/gcc-arm-none-eabi-4_9-2015q3 -b /ti/PDK_AM~1/packages/ti/build/am335x/config_am335x_a8.bld --ol /ti/PDK_AM~1/packages/ti/binary/pm_rtos_app/obj/evmAM335x/a8host/release/pm_rtos_app_configuro/linker_mod.cmd /ti/PDK_AM~1/packages/ti/drv/pm/examples/pmrtos/pm_a8.cfg
    C:\ti\xdctools_3_32_01_22_core\xs.exe: error: can't create session manager: can't find a JVM; try setting the environment variable 'XDCTOOLS_JAVA_HOME' to the absolute path of any directory containing a 32-bit Java Runtime Environment (1.7 or greater); e.g., 'C:\Program Files (x86)\Java\jre7'.
    gmake[4]: *** [/ti/PDK_AM~1/packages/ti/binary/pm_rtos_app/obj/evmAM335x/a8host/release/pm_rtos_app_configuro/package/cfg/pm_a8_pa8fg.c] Error 1
    gmake[4]: Leaving directory `C:/ti/PDK_AM~1/packages/ti/drv/pm/examples/pmrtos'
    gmake[3]: *** [pm_rtos_app] Error 2
    gmake[3]: Leaving directory `C:/ti/PDK_AM~1/packages/ti/drv/pm'
    gmake[2]: *** [a8host_app] Error 2
    gmake[2]: Leaving directory `C:/ti/PDK_AM~1/packages/ti/drv/pm'
    gmake[1]: *** [evmAM335x_app] Error 2
    gmake[1]: Leaving directory `C:/ti/PDK_AM~1/packages/ti/drv/pm'
    gmake: *** [pm] Error 2

    C:\ti\PDK_AM~1\packages>

    Then, I use command pdkProjectCreate.bat AM335x all little all arm C:\ti\PDK_AM~1\packages.

    The SDK RTOS Build Environment window shows the error as below:

    C:\ti\PDK_AM~1\packages>pdkProjectCreate.bat AM335x all little all arm C:\ti\PDK_AM~1\packages
    =========================================================================
    Configuration:
    SOC : AM335x
    BOARD : all
    ENDIAN : little
    MODULE : all
    PROCESSOR : arm
    PDK_SHORT_NAME : C:\ti\PDK_AM~1\packages
    =========================================================================
    Checking Configuration...
    Complete
    =========================================================================
    PDK_PARTNO : AM335
    PDK_ECLIPSE_ID : com.ti.pdk.am335x
    RTSC_PLATFORM_NAME : ti.platforms.evmAM3359
    RTSC_TARGET : gnu.targets.arm.A8F
    CCS_DEVICE : "Cortex A.AM3359.ICE_AM3359"
    *****************************************************************************
    Detecting all projects in PDK and importing them in the workspace C:\ti\PDK_AM~1\packages\MyExampleProjects
    Detected Test Project: EMAC_BasicExample_evmAM335x_armExampleproject
    The system cannot find the path specified.
    Copying macro.ini
    The system cannot find the path specified.
    0 file(s) copied.
    Detected Test Project: EMAC_BasicExample_skAM335x_armExampleproject
    The system cannot find the path specified.
    Copying macro.ini
    The system cannot find the path specified.
    0 file(s) copied.
    Detected Test Project: GPIO_LedBlink_bbbAM335x_armTestProject
    The system cannot find the path specified.
    Copying macro.ini
    The system cannot find the path specified.
    0 file(s) copied.
    Detected Test Project: GPIO_LedBlink_icev2AM335x_armTestProject
    The system cannot find the path specified.
    Copying macro.ini
    The system cannot find the path specified.
    0 file(s) copied.
    Detected Test Project: GPIO_LedBlink_skAM335x_armTestProject
    The system cannot find the path specified.
    Copying macro.ini
    The system cannot find the path specified.
    0 file(s) copied.
    Detected Test Project: GPMC_Test_icev2AM335x_armExampleProject
    The system cannot find the path specified.
    Copying macro.ini
    The system cannot find the path specified.
    0 file(s) copied.
    Detected Test Project: GPMC_Test_icev2AM335x_armTestProject
    The system cannot find the path specified.
    Copying macro.ini
    The system cannot find the path specified.
    0 file(s) copied.
    Detected Test Project: I2C_Example_bbbAM335x_armExampleProject
    The system cannot find the path specified.
    Copying macro.ini
    The system cannot find the path specified.
    0 file(s) copied.
    Detected Test Project: I2C_Example_evmAM335x_armExampleProject
    The system cannot find the path specified.
    Copying macro.ini
    The system cannot find the path specified.
    0 file(s) copied.
    Detected Test Project: I2C_Example_icev2AM335x_armExampleProject
    The system cannot find the path specified.
    Copying macro.ini
    The system cannot find the path specified.
    0 file(s) copied.
    Detected Test Project: I2C_Example_skAM335x_armExampleProject
    The system cannot find the path specified.
    Copying macro.ini
    The system cannot find the path specified.
    0 file(s) copied.
    Detected Test Project: I2C_Test_bbbAM335x_armTestProject
    The system cannot find the path specified.
    Copying macro.ini
    The system cannot find the path specified.
    0 file(s) copied.
    Detected Test Project: I2C_Test_evmAM335x_armTestProject
    The system cannot find the path specified.
    Copying macro.ini
    The system cannot find the path specified.
    0 file(s) copied.
    Detected Test Project: I2C_Test_icev2AM335x_armTestProject
    The system cannot find the path specified.
    Copying macro.ini
    The system cannot find the path specified.
    0 file(s) copied.
    Detected Test Project: I2C_Test_skAM335x_armTestProject
    The system cannot find the path specified.
    Copying macro.ini
    The system cannot find the path specified.
    0 file(s) copied.
    Detected Test Project: ICSS_EMAC_BasicExample_icev2AM335x_wSoCFile_armTestproject
    The system cannot find the path specified.
    Copying macro.ini
    The system cannot find the path specified.
    0 file(s) copied.
    Detected Test Project: ICSS_EMAC_BasicExample_icev2AM335x_wSoCLib_armTestproject
    The system cannot find the path specified.
    Copying macro.ini
    The system cannot find the path specified.
    0 file(s) copied.
    Detected Test Project: MCASP_DeviceLoopback_evmAM335x_armExampleProject
    The system cannot find the path specified.
    Copying macro.ini
    The system cannot find the path specified.
    0 file(s) copied.
    Detected Test Project: MMCSD_FatfsConsole_bbbAM335x_armExampleProject
    The system cannot find the path specified.
    Copying macro.ini
    The system cannot find the path specified.
    0 file(s) copied.
    Detected Test Project: MMCSD_FatfsConsole_bbbAM335x_DMA_armExampleProject
    The system cannot find the path specified.
    Copying macro.ini
    The system cannot find the path specified.
    0 file(s) copied.
    Detected Test Project: MMCSD_FatfsConsole_evmAM335x_armExampleProject
    The system cannot find the path specified.
    Copying macro.ini
    The system cannot find the path specified.
    0 file(s) copied.
    Detected Test Project: MMCSD_FatfsConsole_evmAM335x_DMA_armExampleProject
    The system cannot find the path specified.
    Copying macro.ini
    The system cannot find the path specified.
    0 file(s) copied.
    Detected Test Project: MMCSD_FatfsConsole_icev2AM335x_armExampleProject
    The system cannot find the path specified.
    Copying macro.ini
    The system cannot find the path specified.
    0 file(s) copied.
    Detected Test Project: MMCSD_FatfsConsole_icev2AM335x_DMA_armExampleProject
    The system cannot find the path specified.
    Copying macro.ini
    The system cannot find the path specified.
    0 file(s) copied.
    Detected Test Project: MMCSD_FatfsConsole_skAM335x_armExampleProject
    The system cannot find the path specified.
    Copying macro.ini
    The system cannot find the path specified.
    0 file(s) copied.
    Detected Test Project: MMCSD_FatfsConsole_skAM335x_DMA_armExampleProject
    The system cannot find the path specified.
    Copying macro.ini
    The system cannot find the path specified.
    0 file(s) copied.
    Detected Test Project: MMCSD_bbbAM335x_armTestproject
    The system cannot find the path specified.
    Copying macro.ini
    The system cannot find the path specified.
    0 file(s) copied.
    Detected Test Project: MMCSD_bbbAM335x_DMA_armTestproject
    The system cannot find the path specified.
    Copying macro.ini
    The system cannot find the path specified.
    0 file(s) copied.
    Detected Test Project: MMCSD_bbbAM335x_EMMC_armTestproject
    The system cannot find the path specified.
    Copying macro.ini
    The system cannot find the path specified.
    0 file(s) copied.
    Detected Test Project: MMCSD_bbbAM335x_EMMC_DMA_armTestproject
    The system cannot find the path specified.
    Copying macro.ini
    The system cannot find the path specified.
    0 file(s) copied.
    Detected Test Project: MMCSD_evmAM335x_armTestProject
    The system cannot find the path specified.
    Copying macro.ini
    The system cannot find the path specified.
    0 file(s) copied.
    Detected Test Project: MMCSD_evmAM335x_DMA_armTestProject
    The system cannot find the path specified.
    Copying macro.ini
    The system cannot find the path specified.
    0 file(s) copied.
    Detected Test Project: MMCSD_icev2AM335x_armTestproject
    The system cannot find the path specified.
    Copying macro.ini
    The system cannot find the path specified.
    0 file(s) copied.
    Detected Test Project: MMCSD_icev2AM335x_DMA_armTestproject
    The system cannot find the path specified.
    Copying macro.ini
    The system cannot find the path specified.
    0 file(s) copied.
    Detected Test Project: MMCSD_skAM335x_armTestproject
    The system cannot find the path specified.
    Copying macro.ini
    The system cannot find the path specified.
    0 file(s) copied.
    Detected Test Project: MMCSD_skAM335x_DMA_armTestproject
    The system cannot find the path specified.
    Copying macro.ini
    The system cannot find the path specified.
    0 file(s) copied.
    Detected Test Project: MCSPI_BasicExample_icev2AM335x_armExampleProject
    The system cannot find the path specified.
    Copying macro.ini
    The system cannot find the path specified.
    0 file(s) copied.
    Detected Test Project: MCSPI_SlaveMode_MasterExample_bbbAM335x_armExampleProject
    The system cannot find the path specified.
    Copying macro.ini
    The system cannot find the path specified.
    0 file(s) copied.
    Detected Test Project: MCSPI_SlaveMode_MasterExample_icev2AM335x_armExampleProject
    The system cannot find the path specified.
    Copying macro.ini
    The system cannot find the path specified.
    0 file(s) copied.
    Detected Test Project: MCSPI_SlaveMode_SlaveExample_bbbAM335x_armExampleProject
    The system cannot find the path specified.
    Copying macro.ini
    The system cannot find the path specified.
    0 file(s) copied.
    Detected Test Project: MCSPI_SlaveMode_SlaveExample_icev2AM335x_armExampleProject
    The system cannot find the path specified.
    Copying macro.ini
    The system cannot find the path specified.
    0 file(s) copied.
    Detected Test Project: MCSPI_BasicExample_icev2AM335x_armTestProject
    The system cannot find the path specified.
    Copying macro.ini
    The system cannot find the path specified.
    0 file(s) copied.
    Detected Test Project: MCSPI_SerialFlash_Dma_evmAM335x_armTestProject
    The system cannot find the path specified.
    Copying macro.ini
    The system cannot find the path specified.
    0 file(s) copied.
    Detected Test Project: UART_BasicExample_bbbAM335x_armExampleProject
    The system cannot find the path specified.
    Copying macro.ini
    The system cannot find the path specified.
    0 file(s) copied.
    Detected Test Project: UART_BasicExample_evmAM335x_armExampleProject
    The system cannot find the path specified.
    Copying macro.ini
    The system cannot find the path specified.
    0 file(s) copied.
    Detected Test Project: UART_BasicExample_icev2AM335x_armExampleProject
    The system cannot find the path specified.
    Copying macro.ini
    The system cannot find the path specified.
    0 file(s) copied.
    Detected Test Project: UART_BasicExample_skAM335x_armExampleProject
    The system cannot find the path specified.
    Copying macro.ini
    The system cannot find the path specified.
    0 file(s) copied.
    Detected Test Project: UART_BasicExample_bbbAM335x_armTestProject
    The system cannot find the path specified.
    Copying macro.ini
    The system cannot find the path specified.
    0 file(s) copied.
    Detected Test Project: UART_BasicExample_Dma_evmAM335x_armTestProject
    The system cannot find the path specified.
    Copying macro.ini
    The system cannot find the path specified.
    0 file(s) copied.
    Detected Test Project: UART_BasicExample_evmAM335x_armTestProject
    The system cannot find the path specified.
    Copying macro.ini
    The system cannot find the path specified.
    0 file(s) copied.
    Detected Test Project: UART_BasicExample_icev2AM335x_armTestProject
    The system cannot find the path specified.
    Copying macro.ini
    The system cannot find the path specified.
    0 file(s) copied.
    Detected Test Project: UART_BasicExample_skAM335x_armTestProject
    The system cannot find the path specified.
    Copying macro.ini
    The system cannot find the path specified.
    0 file(s) copied.
    Detected Test Project: usb_dev_msc_evmAM335x_arm_project
    The system cannot find the path specified.
    Copying macro.ini
    The system cannot find the path specified.
    0 file(s) copied.
    Detected Test Project: usb_host_msc_evmAM335x_arm_project
    The system cannot find the path specified.
    Copying macro.ini
    The system cannot find the path specified.
    0 file(s) copied.
    Detected Test Project: FATFS_Console_evmAM335x_armExampleProject
    The system cannot find the path specified.
    Copying macro.ini
    The system cannot find the path specified.
    0 file(s) copied.
    Detected Test Project: FATFS_Console_icev2AM335x_armExampleProject
    The system cannot find the path specified.
    Copying macro.ini
    The system cannot find the path specified.
    0 file(s) copied.
    Detected Test Project: OSAL_BasicExample_evmAM335x_armTestProject
    The system cannot find the path specified.
    Copying macro.ini
    The system cannot find the path specified.
    0 file(s) copied.
    Detected Test Project: NIMU_BasicExample_bbbAM335x_armExampleproject
    The system cannot find the path specified.
    Copying macro.ini
    The system cannot find the path specified.
    0 file(s) copied.
    Detected Test Project: NIMU_BasicExample_evmAM335x_armExampleproject
    The system cannot find the path specified.
    Copying macro.ini
    The system cannot find the path specified.
    0 file(s) copied.
    Detected Test Project: NIMU_BasicExample_icev2AM335x_armExampleproject
    The system cannot find the path specified.
    Copying macro.ini
    The system cannot find the path specified.
    0 file(s) copied.
    Detected Test Project: NIMU_BasicExample_skAM335x_armExampleproject
    The system cannot find the path specified.
    Copying macro.ini
    The system cannot find the path specified.
    0 file(s) copied.
    Detected Test Project: NIMU_ICSS_BasicExample_icev2AM335x_wSoCLib_armExampleproject
    The system cannot find the path specified.
    Copying macro.ini
    The system cannot find the path specified.
    0 file(s) copied.
    No projects detected
    Project generation complete
    *****************************************************************************

     

  • user4910990,

    Your commands seem correct.
    Did you do the following?

    "Ensure all dependent/prerequisite products are installed and registered with CCS before proceeding with the examples and/or unit test. Starting CCS after installing the Processor SDK products will cause CCS to find and register any new products. Errors will occur during PDK project creation if any dependent products have not been registered with CCS."

    Lali
  • Lali,

    I did, but it was not working.

    After that I found the parameter " CCS_INSTALL_PATH="C:\ti\ccsv7" " in "pdkProjectCreate.bat",  I changed this value to "C:\ti\ccsv6".  It seem working.

     I can find "GPMC_Test_icev2AM335x_armExampleProject" in  "C:\ti\pdk_am335x_1_0_6\packages\MyExampleProjects"; however, to build this project using CCSv6, I got a gmake.exe error as following:

    **** Build of configuration Debug for project GPMC_Test_icev2AM335x_armExampleProject ****

    "C:\\ti\\ccsv6\\utils\\bin\\gmake" -k all
    'Building file: C:/ti/pdk_am335x_1_0_6/packages/ti/drv/gpmc/test/am335x/armv7/bios/am335x_app_icev2am335x.cfg'
    'Invoking: XDCtools'
    "C:/ti/xdctools_3_32_01_22_core/xs" --xdcpath="C:/ti/bios_6_46_04_53/packages;C:/ti/pdk_am335x_1_0_6/packages;C:/ti/edma3_lld_2_12_03_27/packages;C:/ti/ndk_2_25_01_11/packages;C:/ti/ccsv6/ccs_base;" xdc.tools.configuro -o configPkg -t gnu.targets.arm.A8F -p ti.platforms.evmAM3359 -r debug -c "C:/ti/gcc-arm-none-eabi-4_9-2015q3" "C:/ti/pdk_am335x_1_0_6/packages/ti/drv/gpmc/test/am335x/armv7/bios/am335x_app_icev2am335x.cfg"
    making package.mak (because of package.bld) ...
    generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
    configuring am335x_app_icev2am335x.xa8fg from package/cfg/am335x_app_icev2am335x_pa8fg.cfg ...
    generating custom ti.sysbios library makefile ...
    Linking with library ti.drv.uart:./lib/am335x/a8/release/ti.drv.uart.aa8fg
    Linking with library ti.board:./lib/icev2AM335x/a8/release/ti.board.aa8fg
    subdir_rules.mk:14: recipe for target 'build-1933472511' failed
    js: "C:/ti/pdk_am335x_1_0_6/packages/ti/utils/profiling/package.xs", line 64: Error: Library not found: C:/ti/pdk_am335x_1_0_6/packages/ti/utils/profiling/./lib/a8/release/ti.utils.profiling.aa8fg
    gmake.exe: *** [package/cfg/am335x_app_icev2am335x_pa8fg.xdl] Error 1
    gmake.exe: *** Deleting file `package/cfg/am335x_app_icev2am335x_pa8fg.xdl'
    gmake.exe: *** [package/cfg/am335x_app_icev2am335x_pa8fg.xdl] Deleting file `package/cfg/am335x_app_icev2am335x_pa8fg.h'
    gmake.exe: *** [package/cfg/am335x_app_icev2am335x_pa8fg.xdl] Deleting file `package/cfg/am335x_app_icev2am335x_pa8fg.c'
    js: "C:/ti/xdctools_3_32_01_22_core/packages/xdc/tools/Cmdr.xs", line 52: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
    gmake: *** [build-1933472511] Error 1
    gmake: Target 'all' not remade because of errors.

    **** Build Finished ****

    What are those error mean? Should I change the CCSv6 to CCSv7?

  • user4910990,
    Did you get past the build errors?

    Lali