I compiled the mcasp example provided with StarterWare. Then I connected an audio signal to the LCDK's input, and an amplifier to the output. When the program is running there is a low frequency noise at the LCDK's output. The ISRs are called correctly, and there is no error when starting a debug session. Changing the #define lines at mcaspPlayBk.c alters the frequency of the noise. Based on that I suppose there could be an audio buffers configuration issue. What could be wrong?
Regards
board: LCDK C6748
emulator: XDS100v2
optimization level = 0
includes:
"C:\ti\C6748_StarterWare_1_20_03_03\include\"
"C:\ti\C6748_StarterWare_1_20_03_03\include\hw"
"C:\ti\C6748_StarterWare_1_20_03_03\include\c674x\c6748"
libraries:
"C:\ti\C6748_StarterWare_1_20_03_03\binary\c674x\cgt\c6748\system_config\Debug\system_config.lib"
"C:\ti\C6748_StarterWare_1_20_03_03\binary\c674x\cgt\c6748\lcdkC6748\platform\Debug\platform.lib"
"C:\ti\C6748_StarterWare_1_20_03_03\binary\c674x\cgt\c6748\drivers\Debug\drivers.lib"
---------------------------------------------------------------------------------------------
**** Build of configuration Debug for project starterware_passthrough ****
"C:\\ti\\ccsv5\\utils\\bin\\gmake" -k all
'Building file: ../mcaspPlayBk.c'
'Invoking: C6000 Compiler'
"C:/ti/ccsv5/tools/compiler/c6000/bin/cl6x" -mv6740 --abi=eabi -O0 -g --disable_push_pop --include_path="C:/ti/ccsv5/tools/compiler/c6000/include" --include_path="C:/ti/C6748_StarterWare_1_20_03_03/include/" --include_path="C:/ti/C6748_StarterWare_1_20_03_03/include/hw" --include_path="C:/ti/C6748_StarterWare_1_20_03_03/include/c674x/c6748" --define=c6748 --display_error_number --diag_warning=225 --preproc_with_compile --preproc_dependency="mcaspPlayBk.pp" "../mcaspPlayBk.c"
'Finished building: ../mcaspPlayBk.c'
' '
'Building target: starterware_passthrough.out'
'Invoking: C6000 Linker'
"C:/ti/ccsv5/tools/compiler/c6000/bin/cl6x" -mv6740 --abi=eabi -O0 -g --disable_push_pop --define=c6748 --display_error_number --diag_warning=225 -z --stack_size=0x800 -m"starterware_passthrough.map" --heap_size=0x800 -i"C:/ti/ccsv5/tools/compiler/c6000/lib" -i"C:/ti/ccsv5/tools/compiler/c6000/include" --reread_libs --warn_sections --display_error_number --rom_model -o "starterware_passthrough.out" "./mcaspPlayBk.obj" "./codecif.obj" "./aic31.obj" -l"libc.a" -l"C:\ti\C6748_StarterWare_1_20_03_03\binary\c674x\cgt\c6748\system_config\Debug\system_config.lib" -l"C:\ti\C6748_StarterWare_1_20_03_03\binary\c674x\cgt\c6748\lcdkC6748\platform\Debug\platform.lib" -l"C:\ti\C6748_StarterWare_1_20_03_03\binary\c674x\cgt\c6748\drivers\Debug\drivers.lib" "../C6748.cmd"
<Linking>
'Finished building target: starterware_passthrough.out'
' '
**** Build Finished ****
----------------------------------------------------------------------
C674X_0: Output: Target Connected.
C674X_0: Output: ---------------------------------------------
C674X_0: Output: Memory Map Cleared.
C674X_0: Output: ---------------------------------------------
C674X_0: Output: Memory Map Setup Complete.
C674X_0: Output: ---------------------------------------------
C674X_0: Output: PSC Enable Complete.
C674X_0: Output: ---------------------------------------------
C674X_0: Output: PLL0 init done for Core:300MHz, EMIFA:25MHz
C674X_0: Output: DDR initialization is in progress....
C674X_0: Output: PLL1 init done for DDR:150MHz
C674X_0: Output: Using DDR2 settings
C674X_0: Output: DDR2 init for 150 MHz is done
C674X_0: Output: ---------------------------------------------