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.

i2c LED example onICE, unable to compil

Other Parts Discussed in Thread: SYSBIOS, AM3359

 

Hello everyOne.

Before, i have worked with CCS3 and the 320f2812 dsp.

I have just started an ICE board (i'm new to ARM/Sitara) configured with CCS5: 5.4.0.00091, RTSC/XDCtools 3.25.00.48 and I have successfully tested the starting demo program: bigtime_ICE_AM339_cortexA.

Now I would like to try the i2c_led exemple.

In first, in TI Resource Explorer, I open<Welcome>, and select <Import Project>.

In the new window: First,I select <search-directory>, I browse to select the directory: C:\ti\am335x_sysbios_ind_sdk_1.0.0.8\sdk\examples\i2c_led

Finally I check <Copy Projects into Workspace> and <Automatically import referenced projects> and <Finish>.

An warning message appear: See details below...   Unrecognized product of type 'com.ti.rtsc.IPC' is required by project 'i2c_led' - please install at least one product of this type before building this project.

Where i can find this ?

As an attachment a picture of my configuration:

 

 

 

 

  • Can you please post build console output. Also, please check if you have updated all necessary paths in project proprieties.

    Regards,
    Maciej 

  • Hi,

    i2c_led app doesn't really use IPC pakcage. This warning can be ignored. once the project is imported, go project properties->Genral->RTSC and uncheck IPC box.

    This was an issue with old sdk and is fixed in latest sdk 1.1.0.1. 

    One more thing, you dont need to check <Copy Projects into Workspace> and <Automatically import referenced projects> unless you need to create new copy of the sample.


    Regards,

    Shahid

  • Ok, thank MaciejKucia, thank Shahid.

    1:For my sdk version: org.eclipse.equinox.p2.ui.sdk (1.0.200.v20120515-1650) "Equinox Provisioning Platform Update Support" [Active]

    org.eclipse.equinox.p2.ui.sdk.scheduler (1.1.0.v20110815-1744) "Equinox Provisioning Platform Automatic Update Support" [Active]

    You think that i need to update mys SDK ?

     

    2: I uncheck  as you said (the IPC_CG_ROOT check is also red):

     

    A question: in the project properties the compiler/Linker is a TMS470 based and not an ARMA8 compiler/Linker=>same family ?, so in the <processor options> the target processor is indexing with <7A8>, is it ok ?

     

    A second question, In the <Debug properties>, what's the difference betwen <TexasInstruments XDS100v2 USB emulator/CortexA8> and <TexasInstruments XDS100v2 USB emulator/M3_wakeupSS> ?

     

    **** Build of configuration Debug for project i2c_led ****

    "C:\\ti\\ccsv5\\utils\\bin\\gmake" -k all

    'Building file: ../app.cfg'

    'Invoking: XDCtools'

    "C:/ti/xdctools_3_25_00_48/xs" --xdcpath="C:/ti/bios_6_35_01_29/packages;C:/ti/ccsv5/ccs_base;C:/ti/uia_1_03_00_02/packages/ti/uia;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.A8Fnv -p ti.platforms.evmAM3359 -r release -c "C:/ti/ccsv5/tools/compiler/arm_5.0.4" --compileOptions "-g --optimize_with_debug" "../app.cfg"

    making package.mak (because of package.bld) ...

    generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...

    configuring app.xea8fnv from package/cfg/app_pea8fnv.cfg ...

    clea8fnv package/cfg/app_pea8fnv.c ...

    'Finished building: ../app.cfg'

    'Building file: ../main.c'

    'Invoking: TMS470 Compiler'

    "C:/ti/ccsv5/tools/compiler/arm_5.0.4/bin/armcl" -mv7A8 --code_state=32 --abi=eabi -me -g --include_path="C:/ti/ccsv5/tools/compiler/arm_5.0.4/include" --include_path="C:/ti/am335x_sysbios_ind_sdk_1.0.0.8/sdk/os_drivers/include" --include_path="C:/ti/am335x_sysbios_ind_sdk_1.0.0.8/sdk/platform/am335x/include" --diag_warning=225 --preproc_with_compile --preproc_dependency="main.pp" --cmd_file="./configPkg/compiler.opt"  "../main.c"

    "../main.c", line 59: warning: function declared implicitly

    'Finished building: ../main.c'

    'Building target: i2c_led.out'

    'Invoking: TMS470 Linker'

    "C:/ti/ccsv5/tools/compiler/arm_5.0.4/bin/armcl" -mv7A8 --code_state=32 --abi=eabi -me -g --diag_warning=225 -z -m"i2c_led.map" -i"C:/ti/ccsv5/tools/compiler/arm_5.0.4/lib" -i"C:/ti/ccsv5/tools/compiler/arm_5.0.4/include" --reread_libs --warn_sections --rom_model -o "i2c_led.out" -l"./configPkg/linker.cmd"  "./main.obj" -l"C:\ti\am335x_sysbios_ind_sdk_1.0.0.8\sdk/os_drivers/lib/sys_bios_driver.lib" -l"C:\ti\am335x_sysbios_ind_sdk_1.0.0.8\sdk/platform/am335x/lib/am335x_platform.lib" -l"C:\ti\am335x_sysbios_ind_sdk_1.0.0.8\sdk/starterware/binary/armv7a/cgt_ccs/am335x/drivers/drivers.lib" -l"C:\ti\am335x_sysbios_ind_sdk_1.0.0.8\sdk/starterware/binary/armv7a/cgt_ccs/am335x/evmAM335x/platform/platform.lib" -l"rtsv7A8_A_le_n_v3_eabi.lib" "../am335x.cmd"

    <Linking>

    'Finished building target: i2c_led.out'

    "C:\ti\am335x_sysbios_ind_sdk_1.0.0.8\sdk/tools/post_build/post_build.bat" "C:/ti/ccsv5" "C:/ti/ccsv5/tools/compiler/arm_5.0.4" "D:\Projects\NCNum\6_Products\CNum\DspSitara\i2c_led\Debug" "i2c_led" "C:\ti\am335x_sysbios_ind_sdk_1.0.0.8\sdk\tools\isdk_image\" "1" "0" "0x80000000" "0x80000000"

    "COMPILER ARM_5_x"

    1 fichier(s) copi‚(s).

    D:\Projects\NCNum\6_Products\CNum\DspSitara\i2c_led\Debug

    Input File - i2c_led.bin

    Output File - i2c_led_SD.bin

    Generating TI_Image of [Application] to be stored in [SD Card]

    Input File - i2c_led.bin

    Output File - i2c_led_SPI.bin

    Generating TI_Image of [Application] to be stored in [SPI Flash]

    finished
    **** Build Finished ****

     

    4: Load and debug:

    I Search in the properties, in the CCS General properties there is no Connection selected:


     

    I replace the <Generic cortexA8 Device> by  <ICE_AM3359(CortexA)> and I select the TI XDS100v2 USB emulator, are you agree with my choice ?

    If I close the window, a message box apear:

    The project.log file contains: !ERROR: The ARMv4.9.0 compiler, or any version compatible with it, is not currently installed! Please migrate the project to one of the supported compilers first.

     

    Sorry for my enormous post.Can you tell me where are my errors ? I am lost....

     

     

  • Last minute,

    I modify the options:

    The build is ok (only 2 littles warnings), but when I load the program, always the same error:

     

    An idea ?

     

     

  • You should connect to Cortex A8 instead of  M3 processor. 

    Regards,

    Shahid

  • Hi Shahid,

    This morning I loaded and installed last SDK version (1.1.0.1) and Last Bios version (6_35_04_50).

    If I import the new I2C exemple, it's ok for build and load. GOOD!!

    In the console an error is visible (in red color):

    CortxA8: Trouble Reading Register LR: (Error -2030 @ 0xA) Internal error: Access to unknown or invalid register was requested. Restart the application. If error persists, please report the error. (Emulation package 5.0.747.0)

    I search for this error in the forum, I'm not alone, but, anyone to resolve this problem...

    So, it's possible to stop on a breakpoint and debug step by step...

     

    This afternoon, impossible to repeat the operation, after the .gel is loaded, a curious behavior:

    The program seems to be loaded but it was not stopped at the start of the main:

    I leave CCS5, I reload and rebuild the project, nothing !!! same behavior with the other project: bigTime_ICE.

    Is CCS can provide me a report on the loading sequence ?

    Can anybody give me a direction how to resolve that problem ?

     

  • Hello,

    Do the below always before loading application to the target. This should solve your problem.

    1. Suspend current program execution if any( CCS Menu->Run->Suspend)
    2. Do a hardware reset ( CCS Menu -> Run->Reset->Rest(HW) )
    3. Execute GEL initialization routine
    4. Load the application
    Regards,
    Shahid
  • Hello Shadid,

    Yesterday, before reading you answer this morning, I deleted the BigTime project and reloaded/builded it, it's Ok now !!  After i loaded the I2c_led project, it's ok too. what append ?

    Earlier, i used CCs from TI, it's stable and without problem, i am disappointed by CCS5 (Eclipse) it seems to be unstable...

    Later, I'll try your method if the problem reappears. What's the operation to do to execute GEL initialization routine ?

    I search in the CCs menu, i don't find it.

    Thank for your involvement.

     

     

  • For this error, i understand:

    In the console an error is visible (in red color):

    CortxA8: Trouble Reading Register LR: (Error -2030 @ 0xA) Internal error: Access to unknown or invalid register was requested. Restart the application. If error persists, please report the error. (Emulation package 5.0.747.0)

    When you debug if the Memory map window is open (in the right bottom) , the error appear, if you close it, it's ok.I think that CCS try to inform the internal values before the CPu is ready, but i don't see the LR register in the list.

    I continue my work and thank you very much for your Help.

    JM