Hi I'm trying to use UART2 in OMAP-L138 on board from LogicPD, but I stuck on some errors:
<code>
---------------------- OMAPL138-DSP-LED-DSP.pjt - Debug ----------------------
[Linking...] "C:\CCStudio_v3.3\C6000\cgtools\bin\cl6x" -@"Debug.lkf"
<Linking>
undefined first referenced
symbol in file
--------- ----------------
_sysRegs C:\\Documents and Settings\\Cooler\\Moje dokumenty\\OMAP\\OMAPL138-DSP-LED\\DSP\\src\\Debug\\main_led_dip.obj
error: unresolved symbols remain
error: errors encountered during linking; "../Debug/OMAPL138-DSP-LED-DSP.out"
not built
>> Compilation failure
Build Complete,
1 Errors, 0 Warnings, 0 Remarks.
</code>
This is my source file:
<code>#include <UART_interrupt_loopback_dspL138.h>
int main (void)
{
init_OMAPL138();
//setup i2c registers and start i2c running
//init_i2c();
// LED_turnOn(0);
// blink_leds();
while(1);
}
static void init_OMAPL138 (void)
{
// Open Permissions to SYSCFG Registers
CSL_FINS(sysRegs->KICK0R, SYSCFG_KICK0R_KICK0, KICK0_KEY);
CSL_FINS(sysRegs->KICK1R, SYSCFG_KICK1R_KICK1, KICK1_KEY);
// Configure UART2 Transmit & Receive Signals
CSL_FINST(sysRegs->PINMUX4, SYSCFG_PINMUX4_PINMUX4_23_20, UART2_TXD);
CSL_FINST(sysRegs->PINMUX4, SYSCFG_PINMUX4_PINMUX4_19_16, UART2_RXD);
// Configure UART0 with the DSP CPU
CSL_FINST(sysRegs->SUSPSRC, SYSCFG_SUSPSRC_UART2SRC, DSP);
// Close Permissions to SYSCFG Registers
CSL_FINS(sysRegs->KICK0R, SYSCFG_KICK0R_KICK0, KICK_LOCK);
}/* init_OMAPL138 */
</code>
I'm using included files from qStartExamples package I found on TI's wiki tutorials and CCSv3. I think it is someting wrong with my linking file, but I don't know how to create this files properly.Could anyone give me same clues where can I find some tutorials dokuments about creating linking files? ( something about sections, general rules related with OMAP)
My looks like this:
<code> ; Code Composer Project File, Version 2.0 (do not modify or remove this line)
[Project Settings]
ProjectDir="C:\Documents and Settings\Cooler\Moje dokumenty\OMAP\OMAPL138-DSP-LED\DSP\ccs\"
ProjectType=Executable
CPUFamily=TMS320C67XX
Tool="Compiler"
Tool="CustomBuilder"
Tool="DspBiosBuilder"
Tool="Linker"
Config="Debug"
[Source Files]
Source="..\src\main_led_dip.c"
Source="linker_dsp.cmd"
["Compiler" Settings: "Debug"]
Options=-g -q -fr".\Debug\" -i"..\inc" -i"C:\Program Files\Texas Instruments\quickStartOMAPL1x_rCSL\OMAPL1x\support\includes" -d"DEBUG" -mv6740
["Linker" Settings: "Debug"]
Options=-q -c -m"..\Debug\OMAPL138-DSP-LED-DSP.map" -o"..\Debug\OMAPL138-DSP-LED-DSP.out" -x
</code>