Tool/software: TI C/C++ Compiler
I'm running into an issue I can't understand regarding the C5000 DSP and its corresponding chip support libaray (C55xx CSL). I'm trying to access a control register for the DMA peripheral but the compiler fails to build with the error:
'Building file: ../i2s_dma.c'
'Invoking: C5500 Compiler'
"C:/ti/ccsv5/tools/compiler/c5500_4.4.1/bin/cl55" -v5515 --memory_model=large -g --include_path="C:/ti/ccsv5/tools/compiler/c5500_4.4.1/include" --include_path="C:/ti/ezdsp5535_BSL_RevC/ezdsp5535_v1/include" --include_path="C:/ti/c55_lp/c55_csl_3.07/inc" --include_path="C:/Users/evan/workspace_v5_5/danalog/Debug" --include_path="C:/ti/bios_5_42_02_10/packages/ti/bios/include" --include_path="C:/ti/bios_5_42_02_10/packages/ti/rtdx/include/c5500" --define=c5535 --display_error_number --diag_warning=225 --gen_func_subsections=on --ptrdiff_size=16 --preproc_with_compile --preproc_dependency="i2s_dma.pp" "../i2s_dma.c"
"../i2s_dma.c", line 115: error #137: struct "<unnamed>" has no field "DMACH0TCR2"
The code that it's failing on is:
However this doesn't make sense to me because if I look through the CSL source, I can find the definition for CSL_DmaRegsOvly:
c55xx_csl/inc/soc.h has the typedef on line 90:
c55xx_csl/inc/cslr_dma.h contains the datastructure:
Hopefully I'm not making a silly mistake. Any help would be much appreciated!