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.

OMAP-L138 DSP+ARM9 LCDK Linking GPIO functions

Other Parts Discussed in Thread: OMAPL138, SYSBIOS

I have installed the SYS/BIOS dev kit with CCS 5.3.0 and compiled one of the Minimal programs for the ARM9 LCDKOMAPL138.

It compiled without error.

I then added to main.c the following headers:

hw_types.h, gpio.h, soc_OMAPL138.h, lcdkOMAPL138.h and psc.h

I added the line PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);

I added to the ARM Compiler include list:

/usr/local/OMAPL138_StarterWare_1_10_03_03/include/c574x/omapl138

/usr/local/OMAPL138_StarterWare_1_10_03_03/include/armv5/omapl138

/usr/local/OMAPL138_StarterWare_1_10_03_03/include/hw

/usr/local/OMAPL138_StarterWare_1_10_03_03/include

In the linker search path I added:

/usr/local/OMAPL138_StarterWare_1_10_03_03/include/armv5/omapl138

/usr/local/OMAPL138_StarterWare_1_10_03_03/binary/armv5/cgt_ccs/omapl138/lcdkOMAPL138/platform/Debug

It compiles but the linker fails with unresolved symbol PSCModuleControl

The binary path I used for the linker contains driver.lib which seems to have PSCModuleControl.

I don't know what else to try.

Here is the Linker output:

Building target: minimal_LCDKOMAPL138_ARM9.out

Invoking: ARM Linker

"/opt/ti/ccsv5/tools/compiler/arm_5.0.1/bin/armcl" -mv5e --code_state=32 --abi=eabi -me -g --define=omapl138 --diag_warning=225 --display_error_number --diag_wrap=off -z --stack_size=0x800 -m"minimal_LCDKOMAPL138_ARM9.map" --heap_size=0x800 -i"/opt/ti/ccsv5/tools/compiler/arm_5.0.1/lib" -i"/opt/ti/ccsv5/tools/compiler/arm_5.0.1/include" --reread_libs --warn_sections --display_error_number --diag_wrap=off --rom_model -o "minimal_LCDKOMAPL138_ARM9.out" -l"./configPkg/linker.cmd"  "./main.obj" -l"libc.a"

<Linking>

 undefined        first referenced

  symbol              in file    

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

 PSCModuleControl ./main.obj     

error #10234-D: unresolved symbols remain error #10010: errors encountered during linking; "minimal_LCDKOMAPL138_ARM9.out" not built

Thank you in advance.

Sam

  • Update.

    I linked in the source files for GPIO and PSC iin the project and it linked just fine.

    Thanks,

    Sam

  • New problem is that when I try to write to any register with HWREG(0x01E26000 + offset) it crashes.

    Is there something I have to do first to be able to write to a register?

  • Sam,

    This issue seems to be device specific rather than BIOS related, so I moved this thread over to the OMAP-Lxx forum in hopes that it will get a faster response there.

  • Hello

    Today, I just repeated what Sam had done (of this thread) last year.  First, I have created a SYS/BIOS (v6.4) project for LCDKOMAPL138's ARM core, and it worked just fine (with a Timer spinning correctly).  Then, I tried pulling in another known good StarterWare (1.10.04.01) 'gpio' sample project with some initialization functions sitting in the main(), prior to entering the BIOS_start().  The result is almost the same: my LCDKOMAPL138 crashes at the PSCModuleControl function, only at different address HWREG(0x01E27000 + offset).

    Is there any comment from TI or any pioneers?  Thank you!

    My guessing is that I should do some reconfiguration on RTOS’s .cfg file, but I could not do it because I simply got following window with two empty columns [Package Name and CPU Core].  I was not allowed to do any edit/view for  .cfg reconfiguration.  Please help!

    Thank you!

    YeuShyr

  • Hi YeuShyr,

      First, I have created a SYS/BIOS (v6.4) project for LCDKOMAPL138's ARM core, and it worked just fine (with a Timer spinning correctly).

    Are you trying run SYSBIOS in ARM core?

    Then, I tried pulling in another known good StarterWare (1.10.04.01) 'gpio' sample project with some initialization functions sitting in the main(), prior to entering the BIOS_start().  The result is almost the same: my LCDKOMAPL138 crashes at the PSCModuleControl function, only at different address HWREG(0x01E27000 + offset).

    Please make sure that you have included appropriate include files related to DSP or ARM.

    What type of examples/SYSBIOS project are you running ?

    Create new "hello" example SYSBIOS project with starterware (PSC) stuffs there and run app in DSP core and let us know the results.

    If issue persists, Please create new thread and elaborate your problem there to support in depth.

    Thank you for your understanding.

  • HI,

    Since you are following up on the old thread, it would be advisable to create a new thread for your issue, so that we could pay more attention towards latest threads.

    Thanks & regards,

    Sivaraj K