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.

TDA4VM: TDA4VM: How to run NOR SPI flash sample example

Part Number: TDA4VM

Trying to run below sample application to test NOR SPI.

ti-processor-sdk-rtos-j721e-evm-08_02_00_05/pdk_jacinto_08_02_00_21/packages/ti/drv/spi/test/ospi_flash.

Integrated this application and  try to run in MCU1_0 core but it is not running . it is not jump into spi_test() function.

static void appMain(void* arg0, void* arg1)
{
TaskP_Handle sciserverInitTask;
TaskP_Params sciserverInitTaskParams;


consolePrintf("\nappMain Task is created..\n");
appUtilsTaskInit();

appSciserverSciclientInit();
consolePrintf("appSciserverSciclientInit is Done..\n");


/* Initialize SCI Client Server */
TaskP_Params_init(&sciserverInitTaskParams);
sciserverInitTaskParams.priority = INIT_SCISERVER_TASK_PRI;
sciserverInitTaskParams.stack = gSciserverInitTskStack;
sciserverInitTaskParams.stacksize = sizeof (gSciserverInitTskStack);

sciserverInitTask = TaskP_create(appSciserverInit, &sciserverInitTaskParams);
if(NULL == sciserverInitTask)
{
OS_stop();
}

appInit();
consolePrintf("appInit is Done..\n");
appRun();
consolePrintf("appRun is Done..\n");

Board_moduleClockEnable(TISCI_DEV_MCU_FSS0_OSPI_0);
consolePrintf("Board_init is Done..\n");
spi_test();

// main_ospi_flash_test();

#if 1
while(1)
{
appLogWaitMsecs(100u);
}
#else
appDeInit();
#endif
}

I have some below question .

1) Is this correct application to test NOR Flash functionality over OSPI

 ti-processor-sdk-rtos-j721e-evm-08_02_00_05/pdk_jacinto_08_02_00_21/packages/ti/drv/spi/test/ospi_flash.

2) I found API for pinmux setting. 

void appSetPinmux(app_pinmux_cfg_t *cfg) 

Is this correct API to set pinmux?

Best regards,

Sandeep

  • Hi Sandeep,

    Have you tried running this example out-of-box? Is that also failing?

    Also, what is your use case here? If the use case is just to test the flash functionality, you can directly use the example, no need to integrate this with vision apps

    Regards,
    Parth

  • Hi Parth,

    Have you tried running this example out-of-box?

                     :- Please explain me how to run it?

    what is your use case here?

                    :- Need to use in our project for Diagnostics and other variable save.

                    :-  Need to work on Flash Emulated eeprom after this testing.

    Thanks,

    Sandeep

  • Hi Sandeep,

    You can just build the example by running the following command:

    make BOARD=j721e_evm CORE=mcu1_0 OSPI_Flash_Dma_Cache_TestApp_freertos

    and then you can run the binary using CCS or any other bootmode

    Regards,
    Parth