Part Number: EVMK2H
Tool/software: TI C/C++ Compiler
The attached project was created to attempt to instigate the heap issue in RTOS/AM5728: memory_alloc fails with 1GB but not with 1GB-128B ?
The project was created using:
- CCS 8.3.0.00009
- SYS/BIOS 6.73.1.01
- XDCtools 3.51.1.18_core
- C6000 CGT v8.2.5
When compiled with the SYS/BIOS Build-profile to release the compile fails with an assertion failure:
**** Clean-only build of configuration Debug for project typical_TCI6638K2K_C66XX **** "C:\\ti\\ccs830\\ccsv8\\utils\\bin\\gmake" -k -j 12 clean -O cleaning ../src/sysbios ... DEL /F "typical_TCI6638K2K_C66XX.hex" "configPkg\linker.cmd" "configPkg\compiler.opt" "typical_TCI6638K2K_C66XX.out" DEL /F "main.obj" DEL /F "main.d" RMDIR /S/Q "configPkg\" Could Not Find C:\Users\mr_halfword\workspace_v8\typical_TCI6638K2K_C66XX\Debug\typical_TCI6638K2K_C66XX.hex Could Not Find C:\Users\mr_halfword\workspace_v8\typical_TCI6638K2K_C66XX\Debug\typical_TCI6638K2K_C66XX.out Finished clean **** Build Finished **** **** Build of configuration Debug for project typical_TCI6638K2K_C66XX **** "C:\\ti\\ccs830\\ccsv8\\utils\\bin\\gmake" -k -j 12 all -O Building file: "../app.cfg" Invoking: XDCtools "C:/ti/ccs830/xdctools_3_51_01_18_core/xs" --xdcpath="C:/ti/bios_6_73_01_01/packages;" xdc.tools.configuro -o configPkg -t ti.targets.elf.C66 -p ti.platforms.evmTCI6638K2K -r release -c "C:/ti/ccs830/ccsv8/tools/compiler/ti-cgt-c6000_8.2.5" --compileOptions "-g" "../app.cfg" making package.mak (because of package.bld) ... generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ... configuring app.xe66 from package/cfg/app_pe66.cfg ... generating custom ti.sysbios library makefile ... Starting build of library sources ... making C:/Users/mr_halfword/workspace_v8/typical_TCI6638K2K_C66XX/src/sysbios/sysbios.ae66 ... cle66 C:/ti/bios_6_73_01_01/packages/ti/sysbios/BIOS.c ... asme66 C:/ti/bios_6_73_01_01/packages/ti/sysbios/family/c64p/Exception_asm.s64P ... asme66 C:/ti/bios_6_73_01_01/packages/ti/sysbios/family/c64p/Hwi_asm.s62 ... asme66 C:/ti/bios_6_73_01_01/packages/ti/sysbios/family/c64p/Hwi_asm_switch.s62 ... asme66 C:/ti/bios_6_73_01_01/packages/ti/sysbios/family/c64p/Hwi_disp_always.s64P ... asme66 C:/ti/bios_6_73_01_01/packages/ti/sysbios/rts/ti/tls_get_tp.asm ... asme66 C:/ti/bios_6_73_01_01/packages/ti/sysbios/family/c62/TaskSupport_asm.s62 ... asme66 C:/ti/bios_6_73_01_01/packages/ti/sysbios/timers/timer64/Timer_asm.s64P ... are66 BIOS.obj c64p_Exception_asm.obj c64p_Hwi_asm.obj c64p_Hwi_asm_switch.obj c64p_Hwi_disp_always.obj ti_tls_get_tp.obj c62_TaskSupport_asm.obj timer64_Timer_asm.obj ... Build of libraries done. cle66 package/cfg/app_pe66.c ... >> Compilation failure subdir_rules.mk:12: recipe for target 'build-572158591-inproc' failed Assertion failed: otype->is_func() || size == otype->size(), file c:\jenkins\workspace\buildtoolsmega_buildworker\cgt\master\opt5\types.h, line 264 gmake.exe: *** [package/cfg/app_pe66.mak:18: package/cfg/app_pe66.oe66] Error 1 js: "C:/ti/ccs830/xdctools_3_51_01_18_core/packages/xdc/tools/Cmdr.xs", line 52: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted. gmake[1]: *** [build-572158591-inproc] Error 1 gmake: *** No rule to make target 'build-572158591', needed by 'configPkg/compiler.opt'. gmake: *** No rule to make target 'build-572158591', needed by 'configPkg/linker.cmd'. gmake: Target 'all' not remade because of errors. **** Build Finished ****
If the SYS/BIOS Build-profile is changed to debug then the projects compiles and links without error, but gets warnings (since I hadn't completed the required code changes).
From a quick search I think the "Assertion failed: otype->is_func() || size == otype->size()" might be a bug in the code generation tools.