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