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.

mcsdk API functions



hello,

I have a question when I was running the the platform_test_evmc6678l project provided by the TI's MCSDK , there are some functions like

p_device = platform_device_open(PLATFORM_DEVID_NORN25Q128, 0);

however,when I open the declaraion of  platform_device_open(), there are only a brief description about this function in file platform.h, I can't see how it works ,I mean there is no definition about it . Can I find its definition in somewhere else ? 

Still, I don't understand why PLATFORM_DEVID_NORN25Q128 is defined  0xBB18 in platform.h , while PLATFORM_DEVID_NAND512R3A2D  is   0x2036 ? Is there any rule when define those deviceid?

thanks a lot,

Philly

  • Philly,

    Please refer the platform.c(Line Number:949) carefully, you can find the platform_device_open definition in this file.
    PLATFORM_DEVICE_info *platform_device_open(uint32_t deviceid, uint32_t flags )
    pdk_C6678_1_1_2_6\packages\ti\platform\evmc6678l\platform_lib\src\platform.c(949):
    This project have the Macros for build like PLATFORM_NAND_IN, PLATFORM_NOR_IN and PLATFORM_EEPROM_IN.
    If you like to open the NAND device, enable the PLATFORM_NAND_IN.

    #define PLATFORM_DEVID_NAND512R3A2D 0x2036 /**< NAND Flash */
    #define PLATFORM_DEVID_NORN25Q128 0xBB18 /**< NOR Flash */
    #define PLATFORM_DEVID_EEPROM50 0x50 /**< EEPROM @ slave address 0x50 */
    #define PLATFORM_DEVID_EEPROM51 0x51 /**< EEPROM @ slave address 0x51 */

    These are device identifiers like address. More details find in the device datasheet.

  • Hi Pubesh,

    Thanks for your answering, Now I  get it.

    Best Regards,

    Philly

  • Hi Pubesh,

    I was also runing the the platform_test_evmc6678l  project  provided by the TI's MCSDK ,when it is runing to the functiong platform_init came out an error said "Can't find a source file at ...platform.c ",and I can not find the platform.c file. can you tell where the document is? 

    Best Regards,

    Tom

  • Tom,

    You can find the platform_init function at : C:\ti\pdk_C6678_1_1_2_6\packages\ti\platform\evmc6678l\platform_lib\src\platform.c

    The platform_test_evmc6678l  project having the platform lib.  So that you did not see the platform_init definition at this project. The platform_lib project having the original source.  

    How to test this project, refer the read me file, at: C:\ti\pdk_C6678_1_1_2_6\packages\ti\platform\evmc6678l\platform_test

    I would recommend, Please Create New Threads for New Issues, and even for similar issues that have already been reported. Do not reply to a thread that has already been answered and say "I'm having the same problem". You will get a faster response if you create a new issue that is not already marked answered.

  • Tom,

    I believe that, you can find the platform.c from the above E2E post. Do you need further follow-up on this? If not, close this thread.