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.

CCS/AM5718: Rebuiding example project

Anonymous
Anonymous

Part Number: AM5718
Other Parts Discussed in Thread: SYSBIOS

Tool/software: Code Composer Studio

Hi,

I want to rebuild one of the  example code (from path :C:\ti\pdk_am57xx_1_0_13\packages\MyExampleProjects)that you provided. with bios.How we rebuild this? .

  • Part Number: AM5718

    Tool/software: Code Composer Studio

    Hi,

    I just rebuilt gpio_led driver  from the path C:\ti\pdk_am57xx_1_0_13\packages\ti\board\diag\led for getting bare metal code. That's done by using your make file from the path C:\ti\pdk_am57xx_1_0_13\packages\ti\board\diag\led\build\idkAM571x\armv7 .But the code is hanged at the point shown below...The same issue repeated for all drivers i2c,mcspi,qspi...



    my

    symbols defined

    included paths

    flags updated


  • Hi,

    Sorry, I didn't follow what you intended to do and what was the issue.

    The diagnostics is bare metal code, any examples under pdk_am57xx_1_0_14\packages\ti\board\diag is built by makefile. This is explained in the user guide: http://software-dl.ti.com/processor-sdk-rtos/esd/docs/latest/rtos/index_board.html#building-the-examples. The output is intended for board diagnostics booting from SD card (of course you can use the out file from CCS/JTAG, mainly for debug). There is no CCS project for this. And all the driver libraries are pre-built with PDK installation. The makefile just compile the diagnostic source code and link with pre-built libraries. 

    For any driver examples (GPIO, SPI, I2C etc), the CCS project is created with pdkprojectcreate script. This includes GPIO LED blink: http://software-dl.ti.com/processor-sdk-rtos/esd/docs/latest/rtos/index_device_drv.html#gpio. This CCS project is SYSBIOS, you can also build it with bare metal only.

    You showed a led_with_library_idk in the screenshot, I am not sure you goal here. You want to create a CCS project for diagnostics (in addition to makefile approach)? Or you just need a GPIO LED bare metal example in CCS?

    Regards, Eric

  • Anonymous
    0 Anonymous in reply to lding

    Hi,

    Yes,I want to create a GPIOLED bare metal example.I think all codes in diagnostics folder is in the form of bare metal.

  • Hi,

    In the pdk_am57xx_1_0_14\packages\ti\drv\gpio\test\led_blink\src\main_led_blink.c, there is 

    #ifdef USE_BIOS

    If you do a undef of this, it becomes a bare metal CCS project. Will this work for you? Or you want to use the diagnostic code for bare metal LED? The former is easier. No one tried to convert the diagnostic into CCS project.

    Regards, Eric