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.

Error in running sys/ bios led blinking program on TMS320DM8168 EVM board by using ccs5.1

Other Parts Discussed in Thread: TMS320C6748, OMAP-L138, OMAPL138

Hi all,

I'm using the TMS320DM8168 EVM board .

I just started the sys/bios programming.

I am referring the ti sys/bios video.

Now  I am succeeded in running a small code on this board with sys bios.

I want to run the "LED BLINK "project on this board.

I made this project and when I run this, pointer hit the main function and then I press resume button ,i am not able to see any led is blinking and when i press suspend button i  got below error:

Can't find a source file at "C:\sandboxsvn\Freon\SE\trunk\src\c6748\bsl\src/evmc6748_i2c.c"
Locate the file or edit the source lookup path to include its location.

If it will run also which led will blink ??

Weather ON/OFF status led will blink or some other led will blink on that board TMS320DM8168 EVM board ....

I am new to this.Please guide me.....


-Studinstru

  • please do the reply...

  • Hi Studinstru,

    studinstru sggs said:

    I made this project and when I run this, pointer hit the main function and then I press resume button ,i am not able to see any led is blinking and when i press suspend button i  got below error:

    Can't find a source file at "C:\sandboxsvn\Freon\SE\trunk\src\c6748\bsl\src/evmc6748_i2c.c"
    Locate the file or edit the source lookup path to include its location.

    This is not an error. This means CCS is trying to locate the source file "evmc6748_i2c.c" along the specified path and cannot find it. When you halt execution, CCS attempts to open the C source file containing the code currently executing. In this case your PC points to code from the "evmc6748_i2c.c" source file. If you know the full path to the file on your system, you can click on "Locate File..." and point it to the file. The message will go away and CCS will open the source file.

    studinstru sggs said:

    If it will run also which led will blink ??

    Weather ON/OFF status led will blink or some other led will blink on that board TMS320DM8168 EVM board ....

    I am new to this.Please guide me.....

    Is this an example application ? If yes then where did you get it from ?

    Best,

    Ashish

  • Hi Ashish,

    Thanks for your reply.

    The led blinking Program I took from SYS/BIOS video SYS_BIOS 1.5 Day Workshop Lab 2b_ Intro to SYS_BIOS  (Basic - Small).flv by Eric and Sccott which is available on ti site.

    As this example to blink the led ,but on this TMS320DM8168 EVM board which led will blink  ?????

    According to your suggestions,I locate the evmc6748_i2c.c file then I come to the below function in  this evmc6748_i2c.c file is going in infinite loop ..

    file:evmc6748_i2c.c

    function:uint32_t I2C_write(i2c_regs_t *i2c, uint16_t in_addr, uint8_t *src_buffer, uint16_t in_length, uint8_t set_stop)

    Line 193  : while (CHKBIT(i2c->ICSTR, BB)) {}

    Because of the above while condition the program is going in infinite loop.

    The mentioned file is available in evmc6748_V1-1 folder.

    I took the example project from "Typical"in  SYS/BIOS And added my 3 files.

    I attached my 3 files with this ,Please comment on this issue.

    6507.led_blink.zip

    -Studinstru

  • Hi Studinstru,

    Are you using the correct gel file ? The setup guide suggests to use the gel file from Labs->techdocs->GEL_TTO folder.

    http://software-dl.ti.com/trainingTTO/trainingTTO_public_sw/bios/BIOS_Rev5.93_C6748EVM_Instructor_setup.pdf

    Best,

    Ashish

  • Hi Ashish,

    As per the instruction for running the code on TMS320DM8168 EVM board from wiki page ,i used the evm816x.gel.

    With this gel file only I run the small hello world program in sys/bios.

    Pfa of this gel file....3021.evm816x.gel

    If this gel is not correct then please share the url for new gel,I wlll check with this gel.......

    -Studinstru

  • Hi Ashish,

    I just want to tell that am working on TMS320DM8168 EVM hardware with ccs5.1.

    As per the ti bios video I think the hardware used is TMS320C6748 EVM.

    So Shall i RUN THE led Blinking project on my TMS320DM8168 EVM hardware ?????

    -Studinstru

  • Studinstru,

    The BIOS tutorial you are using has been written for OMAP-L138 board while you are using a DM8168 evm. Since both have a C674x core, I would expect your code to run fine on either boards. However, I suspect that the gel files provided with the tutorial are OMAP-L138 specific and might not be initializing the DM8168 board properly. Can you get the gel files for your DM8168 board from the board manufacturer's website and try again ? For example spectron digital provides gel files for their DM816x evm boards.

    Best,

    Ashish

  • Ashish,

    I already took the same gel file from spectrum site and succeeded to run a small project on this board TMS320DM8168 EVM.

    But as I mentioned in my previous post ,this same type of error am getting :

    ----------------------------------------------------------------------------------------------------------------

    According to your suggestions,I locate the evmc6748_i2c.c file and when I suspend the program I came to know following function is going in infinite loop ..

    file           : evmc6748_i2c.c

    function : uint32_t I2C_write(i2c_regs_t *i2c, uint16_t in_addr, uint8_t *src_buffer, uint16_t in_length, uint8_t set_stop)

    Line 193 : while (CHKBIT(i2c->ICSTR, BB)) {}

    Because of the above while condition the program is going in infinite loop.

    The mentioned file is available in evmc6748_V1-1 folder.

    I took the example project from "Typical"in  SYS/BIOS And added my 3 files.

    --------------------------------------------------------------------------------------------------------------------------

    I already attached the gel file  evm816x.gel with my previous post .

    Please just go through my problem that i mentioned under two horizontal lines and tell me the solution.

    <<For the given TMS320DM8168 EVM board which led will blink??? (on\off status led ??)>>


    -Studinstru


  • Hi All,

    I have just started the sys /bios coding and I think I ask the correct question only.

    Please reply to my post.

    -Studinstru

  • Hi Studinstru,

    You might need to rework the led blinking lab example to make it run on DM8168 as it was originally written for OMAPL138. The peripheral connections on DM8168 may differ from the peripheral connections on OMAPL138. Also, the peripheral base addresses may be different. You can look at the reference manual and schematic for your DM8168 board to verify that i2c is present and accessible from C674x core on DM8168 and whether the base addresses specified in the evm6748.h file are correct. You may also want to verify the pin definitions in evmc6748_i2c_gpio.h agree with your boards schematic.

    studinstru sggs said:

    <<For the given TMS320DM8168 EVM board which led will blink??? (on\off status led ??)>>

    Your example is using the led connected to this gpio pin I2C_GPIO_EX_LED1. You can check your board's schematic to determine which led does this correspond to on your board.

    Best,

    Ashish