This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

cfg.s55 will not assemble



I am migrating a large project from CCS3 to CCS4.  My project.cdb file worked in CCS3.  I used cdb2tcf.exe to convert my project.cdb to project.tcf.  Now when I build the project in CCS4 I get 244 assembly errors in projectcfg.s55.  How can I get my cfg.s55 file to assemble properly?

  • Sequoyah,

    What do the assembly errors look like?

    John

  • These are the assembly errors in projectcfg.s55:

    [E9999] Bad term in expression

    [E9999] Invalid mnemonic specified 

    [E9999] No matching right parenthesis

    [E9999] Operand

    [E9999] Syntax Error

    [E9999] Unexpected trailing operand(s)

  • Sequoyah,
    can you post the TCF script generated by cdb2tcf, and also projectcfg.s55? I am guessing .s55 file is long, so you don't have to post all of it. Just the part from the beginning to the line with the first error should be enough.

  • The TCF file is in red - the .s55 file is in blue. 

    The first assembler errors are on the last line which is the following:

    CLK_config _IMR0TINTMASK, _IMR1TINTMASK, _INTBIT, _TIMERIMRMASK, _REGS, _TIMERIMR, _TIMERIFR, _TIMERNUM, _USETIMER, _MICROSECONDS, _TCR, _TDDR, _TDDRHIGH, _PRD, _PRDHIGH, _COUNTSPMS, _COUNTSPMSHIGH, _TIMEFXN, _HOOKFXN

    The errors are Syntax Error, and  Invalid mnenomic specified .

    %%%%%%%%%%%%%%%%%%%%%%%%%

    6052.Locatortcf.txt

    .TCF file: (please excuse the length)

    environment["ti.bios.oldMemoryNames"] = true;

    /* loading the generic platform */
    var params = {};
    params.clockRate = 300;
    params.deviceName = "5502";
    params.catalogName = "ti.catalog.c5500";
    params.regs = {};
    params.regs.pllm = 0xa;
    params.regs.plldiv0 = 0x8000;
    utils.loadPlatform("ti.platforms.generic", params);


    /* enabling DSP/BIOS components */
    bios.GBL.ENABLEINST = true;
    bios.MEM.NOMEMORYHEAPS = false;
    bios.RTDX.ENABLERTDX = true;
    bios.HST.HOSTLINKTYPE = "RTDX";
    bios.TSK.ENABLETSK = true;
    bios.GBL.ENABLEALLTRC = true;

    bios.DARAM.createHeap = true;
    bios.DARAM.heapSize = 0x3f80;

    bios.MEM.BIOSOBJSEG = prog.get("DARAM");
    bios.MEM.MALLOCSEG = prog.get("DARAM");
    bios.TSK.STACKSEG = prog.get("DARAM");


    /* applying user changes */
    bios.FLASH = bios.MEM.create("FLASH");

    bios.FLASH.comment = "External Flash";

    bios.FLASH.base = 0x200000;

    bios.FLASH.len = 0x7ffff;

    bios.FLASH.createHeap = 0;

    bios.SDRAM = bios.MEM.create("SDRAM");

    bios.SDRAM.comment = "External RAM, excluding diagnostic buffer";

    bios.SDRAM.base = 0x10000;

    bios.SDRAM.len = 0xf0000;

    bios.SDRAM.createHeap = 0;

    bios.BufferPool_16_long = bios.BUF.create("BufferPool_16_long");

    bios.BufferPool_8_long = bios.BUF.create("BufferPool_8_long");

    bios.BufferPool_2_long = bios.BUF.create("BufferPool_2_long");

    bios.BufferPool_96_long = bios.BUF.create("BufferPool_96_long");

    bios.BufferPool_4_long = bios.BUF.create("BufferPool_4_long");

    bios.BufferPool_12_long = bios.BUF.create("BufferPool_12_long");

    bios.BufferPool_6_long = bios.BUF.create("BufferPool_6_long");

    bios.BufferPool_64_long = bios.BUF.create("BufferPool_64_long");

    bios.BufferPool_32_long = bios.BUF.create("BufferPool_32_long");

    bios.SD_BufferPool_12_long = bios.BUF.create("SD_BufferPool_12_long");

    bios.SD_BufferPool_16_long = bios.BUF.create("SD_BufferPool_16_long");

    bios.SD_BufferPool_2_long = bios.BUF.create("SD_BufferPool_2_long");

    bios.SD_BufferPool_32_long = bios.BUF.create("SD_BufferPool_32_long");

    bios.SD_BufferPool_4_long = bios.BUF.create("SD_BufferPool_4_long");

    bios.SD_BufferPool_64_long = bios.BUF.create("SD_BufferPool_64_long");

    bios.SD_BufferPool_8_long = bios.BUF.create("SD_BufferPool_8_long");

    bios.SD_BufferPool_96_long = bios.BUF.create("SD_BufferPool_96_long");

    bios.SD_BufferPool_6_long = bios.BUF.create("SD_BufferPool_6_long");

    bios.key_press_time_swi = bios.PRD.create("key_press_time_swi");

    bios.run_backends_swi = bios.PRD.create("run_backends_swi");

    bios.signal_toggle_timeout_swi = bios.PRD.create("signal_toggle_timeout_swi");

    bios.reset_override_flags_swi = bios.PRD.create("reset_override_flags_swi");

    bios.pic_release_uart_swi = bios.PRD.create("pic_release_uart_swi");

    bios.start_nmea_swi = bios.PRD.create("start_nmea_swi");

    bios.FILL_AUDIO_BUFFER_swi = bios.SWI.create("FILL_AUDIO_BUFFER_swi");

    bios.LCD_update = bios.SWI.create("LCD_update");

    bios.Audio_Level_splash_swi = bios.SWI.create("Audio_Level_splash_swi");

    bios.picInterrupt_swi = bios.SWI.create("picInterrupt_swi");

    bios.Initialize_system_swi = bios.SWI.create("Initialize_system_swi");

    bios.handle_duart_swi = bios.SWI.create("handle_duart_swi");

    bios.Board_Tester_swi = bios.SWI.create("Board_Tester_swi");

    bios.send_cal_packet_swi = bios.SWI.create("send_cal_packet_swi");

    bios.ADC_Data_Process_swi = bios.SWI.create("ADC_Data_Process_swi");

    bios.send_nmea_packet_swi = bios.SWI.create("send_nmea_packet_swi");

    bios.fact_reset_swi = bios.SWI.create("fact_reset_swi");

    bios.flash_set_region_swi = bios.SWI.create("flash_set_region_swi");

    bios.init_region_menu_swi = bios.SWI.create("init_region_menu_swi");

    bios.I2C_PIC_receive_swi = bios.SWI.create("I2C_PIC_receive_swi");

    bios.I2C_PIC_send_swi = bios.SWI.create("I2C_PIC_send_swi");

    bios.run_I2C_func_swi = bios.SWI.create("run_I2C_func_swi");

    bios.send_data_packet_swi = bios.SWI.create("send_data_packet_swi");

    bios.Terminal_Comm_swi = bios.SWI.create("Terminal_Comm_swi");

    bios.calculate_proximity_swi = bios.SWI.create("calculate_proximity_swi");

    bios.save_sys_benchmark_swi = bios.SWI.create("save_sys_benchmark_swi");

    bios.clear_adc_ovfl_int_swi = bios.SWI.create("clear_adc_ovfl_int_swi");

    bios.cycle_counter = bios.IDL.create("cycle_counter");

    bios.TSK_idle.stackMemSeg = prog.get("MEM_NULL");

    bios.LOG_system.bufLen = 0x10;

    bios.MEM.ARGSSIZE = 0x8;

    bios.MEM.STACKSIZE = 0x520;

    bios.MEM.USERCOMMANDFILE = 1;

    bios.MEM.SYSSTACKSIZE = 0x300;

    bios.MEM.GBLINITSEG = prog.get("SDRAM");

    bios.MEM.NOMEMORYHEAPS = 1;

    bios.GBL.ENABLEALLTRC = 0;

    bios.GBL.ENABLEINST = 0;

    bios.GBL.MEMORYMODEL = "LARGE";

    bios.GBL.CHIPTYPE = "other";

    bios.BufferPool_16_long.comment = "(void *)[16] buffers";

    bios.BufferPool_16_long.bufSeg = prog.get("DARAM");

    bios.BufferPool_16_long.bufCount = 0x1e;

    bios.BufferPool_16_long.size = 0x20;

    bios.BufferPool_8_long.comment = "(void *)[8] buffers";

    bios.BufferPool_8_long.bufSeg = prog.get("DARAM");

    bios.BufferPool_8_long.bufCount = 0x1c;

    bios.BufferPool_8_long.size = 0x10;

    bios.BufferPool_2_long.comment = "(void *)[2] buffers";

    bios.BufferPool_2_long.bufSeg = prog.get("DARAM");

    bios.BufferPool_2_long.bufCount = 0xe1;

    bios.BufferPool_96_long.comment = "short[192] buffers";

    bios.BufferPool_96_long.bufSeg = prog.get("DARAM");

    bios.BufferPool_96_long.bufCount = 0x6;

    bios.BufferPool_96_long.size = 0xc0;

    bios.BufferPool_4_long.comment = "(void *)[4] buffers";

    bios.BufferPool_4_long.bufSeg = prog.get("DARAM");

    bios.BufferPool_4_long.bufCount = 0x104;

    bios.BufferPool_4_long.size = 0x8;

    bios.BufferPool_12_long.comment = "(void *)[12] buffers";

    bios.BufferPool_12_long.bufSeg = prog.get("DARAM");

    bios.BufferPool_12_long.bufCount = 0x1e;

    bios.BufferPool_12_long.size = 0x18;

    bios.BufferPool_6_long.comment = "(void *)[6] buffers";

    bios.BufferPool_6_long.bufSeg = prog.get("DARAM");

    bios.BufferPool_6_long.bufCount = 0x1e;

    bios.BufferPool_6_long.size = 0xc;

    bios.BufferPool_64_long.comment = "(void *)[64] buffers";

    bios.BufferPool_64_long.bufSeg = prog.get("DARAM");

    bios.BufferPool_64_long.bufCount = 0x16;

    bios.BufferPool_64_long.size = 0x80;

    bios.BufferPool_32_long.comment = "(void *)[32] buffers";

    bios.BufferPool_32_long.bufSeg = prog.get("DARAM");

    bios.BufferPool_32_long.bufCount = 0xf;

    bios.BufferPool_32_long.size = 0x40;

    bios.SD_BufferPool_12_long.comment = "(void *)[12]buffers";

    bios.SD_BufferPool_12_long.bufSeg = prog.get("SDRAM");

    bios.SD_BufferPool_12_long.bufCount = 0x78;

    bios.SD_BufferPool_12_long.size = 0x18;

    bios.SD_BufferPool_16_long.comment = "(void *)[16] buffers";

    bios.SD_BufferPool_16_long.bufSeg = prog.get("SDRAM");

    bios.SD_BufferPool_16_long.bufCount = 0x64;

    bios.SD_BufferPool_16_long.size = 0x20;

    bios.SD_BufferPool_2_long.comment = "(void *)[2] buffers";

    bios.SD_BufferPool_2_long.bufSeg = prog.get("SDRAM");

    bios.SD_BufferPool_2_long.bufCount = 0x64;

    bios.SD_BufferPool_32_long.comment = "(void *)[32] buffers";

    bios.SD_BufferPool_32_long.bufSeg = prog.get("SDRAM");

    bios.SD_BufferPool_32_long.bufCount = 0x1e;

    bios.SD_BufferPool_32_long.size = 0x40;

    bios.SD_BufferPool_4_long.comment = "(void *)[4] buffers";

    bios.SD_BufferPool_4_long.bufSeg = prog.get("SDRAM");

    bios.SD_BufferPool_4_long.bufCount = 0x15e;

    bios.SD_BufferPool_4_long.size = 0x8;

    bios.SD_BufferPool_64_long.comment = "(void *)[64] buffers";

    bios.SD_BufferPool_64_long.bufSeg = prog.get("SDRAM");

    bios.SD_BufferPool_64_long.bufCount = 0x2c;

    bios.SD_BufferPool_64_long.size = 0x80;

    bios.SD_BufferPool_8_long.comment = "(void *)[8] buffers";

    bios.SD_BufferPool_8_long.bufSeg = prog.get("SDRAM");

    bios.SD_BufferPool_8_long.bufCount = 0x96;

    bios.SD_BufferPool_8_long.size = 0x10;

    bios.SD_BufferPool_96_long.comment = "short[192]";

    bios.SD_BufferPool_96_long.bufSeg = prog.get("SDRAM");

    bios.SD_BufferPool_96_long.bufCount = 0xc;

    bios.SD_BufferPool_96_long.size = 0xc0;

    bios.SD_BufferPool_6_long.comment = "(void *)[6] bufers";

    bios.SD_BufferPool_6_long.bufSeg = prog.get("SDRAM");

    bios.SD_BufferPool_6_long.bufCount = 0x190;

    bios.SD_BufferPool_6_long.size = 0xc;

    bios.PRD.USECLK = 0;

    bios.PRD.MICROSECONDS = 1.0;

    bios.key_press_time_swi.period = 0x5;

    bios.key_press_time_swi.mode = "one-shot";

    bios.key_press_time_swi.fxn = prog.extern("SWI_key_press_time");

    bios.key_press_time_swi.order = 1;

    bios.run_backends_swi.period = 0x2;

    bios.run_backends_swi.fxn = prog.extern("SWI_run_backends");

    bios.run_backends_swi.order = 0x2;

    bios.signal_toggle_timeout_swi.period = 0x7f;

    bios.signal_toggle_timeout_swi.mode = "one-shot";

    bios.signal_toggle_timeout_swi.fxn = prog.extern("SWI_signal_toggle_timeout");

    bios.signal_toggle_timeout_swi.order = 0x3;

    bios.reset_override_flags_swi.period = 0x71;

    bios.reset_override_flags_swi.mode = "one-shot";

    bios.reset_override_flags_swi.fxn = prog.extern("SWI_reset_override_flags");

    bios.reset_override_flags_swi.order = 0x4;

    bios.pic_release_uart_swi.period = 0x15;

    bios.pic_release_uart_swi.mode = "one-shot";

    bios.pic_release_uart_swi.fxn = prog.extern("SWI_pic_release_uart");

    bios.pic_release_uart_swi.order = 0x5;

    bios.start_nmea_swi.period = 0x29;

    bios.start_nmea_swi.mode = "one-shot";

    bios.start_nmea_swi.fxn = prog.extern("SWI_start_nmea");

    bios.start_nmea_swi.order = 0x6;

    bios.HST.HOSTLINKTYPE = "NONE";

    bios.TSK.ENABLETSK = 0;

    bios.cycle_counter.comment = "this will count how long we spend in idle loop";

    bios.cycle_counter.fxn = prog.extern("count_idle_time");

    bios.cycle_counter.order = 0x5;

    bios.CLK.ENABLECLK = 0;

    bios.RTDX.ENABLERTDX = 0;

    bios.HWI_INT2.fxn = prog.extern("Dual_Uart_Interrupt_Handler");

    bios.HWI_INT2.useDispatcher = 1;

    bios.HWI_INT3.fxn = prog.extern("ADC_Overflow");

    bios.HWI_INT3.useDispatcher = 1;

    bios.HWI_INT9.fxn = prog.extern("LCD_Data_BufferEmpty");

    bios.HWI_INT9.useDispatcher = 1;

    bios.HWI_INT11.fxn = prog.extern("PIC_interrupt");

    bios.HWI_INT11.useDispatcher = 1;

    bios.HWI_INT14.fxn = prog.extern("ADC_DMA_IRQ");

    bios.HWI_INT14.useDispatcher = 1;

    bios.HWI_INT14.arg = 1;

    bios.HWI_INT15.fxn = prog.extern("ADC_DMA_IRQ");

    bios.HWI_INT15.useDispatcher = 1;

    bios.HWI_INT15.arg = 0x2;

    bios.HWI_INT18.fxn = prog.extern("ADC_DMA_IRQ");

    bios.HWI_INT18.useDispatcher = 1;

    bios.HWI_INT20.fxn = prog.extern("AUDIO_Data_BufferEmpty");

    bios.HWI_INT20.useDispatcher = 1;

    bios.HWI_INT21.fxn = prog.extern("I2C_DMA_interrupt");

    bios.HWI_INT21.useDispatcher = 1;

    bios.HWI_INT23.fxn = prog.extern("I2C_interrupt");

    bios.HWI_INT23.useDispatcher = 1;

    bios.PRD_swi.priority = 0x3;

    bios.FILL_AUDIO_BUFFER_swi.fxn = prog.extern("Fill_audio_buff");

    bios.FILL_AUDIO_BUFFER_swi.priority = 0x6;

    bios.FILL_AUDIO_BUFFER_swi.arg0 = prog.extern("main_params");

    bios.LCD_update.fxn = prog.extern("SWI_lcd_update");

    bios.Audio_Level_splash_swi.fxn = prog.extern("lcd_audio_level_screen");

    bios.Audio_Level_splash_swi.priority = 0x3;

    bios.picInterrupt_swi.fxn = prog.extern("SWI_picInterrupt");

    bios.picInterrupt_swi.priority = 0x7;

    bios.Initialize_system_swi.fxn = prog.extern("Initialize_System");

    bios.Initialize_system_swi.priority = 0x4;

    bios.handle_duart_swi.fxn = prog.extern("handle_duart");

    bios.handle_duart_swi.priority = 0x4;

    bios.Board_Tester_swi.fxn = prog.extern("Board_Test");

    bios.send_cal_packet_swi.fxn = prog.extern("SWI_send_cal_packet");

    bios.ADC_Data_Process_swi.comment = "Start ADC signal processing after DMA hardware interrupt";

    bios.ADC_Data_Process_swi.fxn = prog.extern("ADC_Data_Process");

    bios.ADC_Data_Process_swi.priority = 0x6;

    bios.ADC_Data_Process_swi.arg0 = prog.extern("the_analog_frontend");

    bios.send_nmea_packet_swi.fxn = prog.extern("SWI_send_nmea_packet");

    bios.send_nmea_packet_swi.arg0 = prog.extern("main_params");

    bios.fact_reset_swi.fxn = prog.extern("flash_set_factory_default");

    bios.fact_reset_swi.arg0 = prog.extern("sys_states_mem");

    bios.fact_reset_swi.arg1 = prog.extern("user_default_mem");

    bios.flash_set_region_swi.fxn = prog.extern("SWI_flash_set_region");

    bios.init_region_menu_swi.fxn = prog.extern("init_region_menu");

    bios.init_region_menu_swi.priority = 0x3;

    bios.I2C_PIC_receive_swi.comment = "must stay priority 0";

    bios.I2C_PIC_receive_swi.fxn = prog.extern("SWI_I2C_PIC_receive");

    bios.I2C_PIC_receive_swi.priority = 0;

    bios.I2C_PIC_send_swi.comment = "must stay priority 0";

    bios.I2C_PIC_send_swi.fxn = prog.extern("SWI_I2C_PIC_send");

    bios.I2C_PIC_send_swi.priority = 0;

    bios.run_I2C_func_swi.fxn = prog.extern("SWI_run_I2C_func");

    bios.run_I2C_func_swi.priority = 0x2;

    bios.send_data_packet_swi.fxn = prog.extern("SWI_Send_Data_Packet");

    bios.send_data_packet_swi.arg0 = prog.extern("my_lcd_control_params");

    bios.Terminal_Comm_swi.fxn = prog.extern("Terminal_Comm");

    bios.calculate_proximity_swi.fxn = prog.extern("SWI_calculate_proximity");

    bios.calculate_proximity_swi.priority = 0x4;

    bios.calculate_proximity_swi.mailbox = 0x3;

    bios.save_sys_benchmark_swi.fxn = prog.extern("SWI_save_sys_benchmark");

    bios.clear_adc_ovfl_int_swi.fxn = prog.extern("SWI_clear_adc_ovfl_int");

    bios.clear_adc_ovfl_int_swi.priority = 0x5;

    bios.DARAM.comment = "On chip dual access RAM, without space for  VECT and TESTMEM";

    bios.DARAM.base = 0x180;

    bios.DARAM.len = 0x7e80;

    bios.GBL.CLKOUT = 200.0000;
    bios.GBL.CLKOUT = 300.0000;
    // !GRAPHICAL_CONFIG_TOOL_SCRIPT_INSERT_POINT!

    if (config.hasReportedError == false) {
        prog.gen();
    }

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    3252.Locatortcf.txt

    .s55 file:

    ;; Do *not* directly modify this file. It was

    ;; generated by the Configuration Tool; any

    ;; changes risk being overwritten.

    ;; INPUT Locator.cdb

    ;; CONFIGURATION/VERSION INFORMATION

    .asg "Tue Feb 01 11:53:58 2011", VERS$DATE

    ;; PROLOGUE

    .include Locatorcfg.h55

    .copy confbeg.s55

    ;; TYPE HEADERS

    .include gbl.h55

    .include mem.h55

    .include obj.h55

    .include buf.h55

    .include clk.h55

    .include prd.h55

    .include rtdx.h55

    .include hst.h55

    .include hwi.h55

    .include swi.h55

    .include tsk.h55

    .include idl.h55

    .include isrc.h55

    .include log.h55

    .include pip.h55

    .include sem.h55

    .include mbx.h55

    .include que.h55

    .include lck.h55

    .include sio.h55

    .include sts.h55

    .include sys.h55

    .include gio.h55

    .include dev.h55

    .include udev.h55

    .include dgn.h55

    .include dhl.h55

    .include dpi.h55

    .include hook.h55

    .include dio.h55

    .include pwrm.h55

    ;; TYPE ATTRIBUTES

    MEM$NUMOF .set 4

    MEM$SETOF .set 00H

    OBJ$NUMOF .set 0

    OBJ$SETOF .set 00H

    BUF$NUMOF .set 18

    BUF$SETOF .set 00H

    CLK$NUMOF .set 0

    CLK$SETOF .set 00H

    PRD$NUMOF .set 6

    PRD$SETOF .set 00H

    RTDX$NUMOF .set 0

    RTDX$SETOF .set 00H

    HST$NUMOF .set 0

    HST$SETOF .set 00H

    HWI$NUMOF .set 32

    HWI$SETOF .set 0ffffH

    SWI$NUMOF .set 22

    SWI$SETOF .set 00H

    TSK$NUMOF .set 0

    TSK$SETOF .set 00H

    IDL$NUMOF .set 1

    IDL$SETOF .set 00H

    ISRC$NUMOF .set 0

    ISRC$SETOF .set 00H

    LOG$NUMOF .set 1

    LOG$SETOF .set 00H

    PIP$NUMOF .set 0

    PIP$SETOF .set 00H

    SEM$NUMOF .set 0

    SEM$SETOF .set 00H

    MBX$NUMOF .set 0

    MBX$SETOF .set 00H

    QUE$NUMOF .set 0

    QUE$SETOF .set 00H

    LCK$NUMOF .set 0

    LCK$SETOF .set 00H

    SIO$NUMOF .set 0

    SIO$SETOF .set 00H

    STS$NUMOF .set 0

    STS$SETOF .set 00H

    DEV$NUMOF .set 0

    DEV$SETOF .set 00H

    UDEV$NUMOF .set 0

    UDEV$SETOF .set 00H

    DGN$NUMOF .set 0

    DGN$SETOF .set 00H

    DHL$NUMOF .set 0

    DHL$SETOF .set 00H

    DPI$NUMOF .set 0

    DPI$SETOF .set 00H

    HOOK$NUMOF .set 0

    HOOK$SETOF .set 00H

    DIO$NUMOF .set 0

    DIO$SETOF .set 00H

    ;; module GBL (ROM, DSPSUBTYPE, MODIFYCLKMD, CLKMD, PLLM, PLLDIV0, USERINIT, USERINITFXN, ENABLEINST, LARGEMODEL, ENABLEICACHE, CACHETYPE, CACHEICRTAG1, CACHEICRTAG2, SUPPORTCSL, TRCMASKVALUE, CALLCSLCFGINIT, BIOS_BOOTFXN)

    .global GBL$ ; == 1

    .global GBL_ROM ; Locatorcfg.h55

    .global GBL_DSPSUBTYPE ; Locatorcfg.h55

    .global GBL_MODIFYCLKMD ; Locatorcfg.h55

    .global GBL_CLKMD ; Locatorcfg.h55

    .global GBL_PLLM ; Locatorcfg.h55

    .global GBL_PLLDIV0 ; Locatorcfg.h55

    .global GBL_USERINIT ; Locatorcfg.h55

    .global GBL_USERINITFXN ; Locatorcfg.cmd

    .global GBL_ENABLEINST ; Locatorcfg.h55

    .global GBL_LARGEMODEL ; Locatorcfg.h55

    .global GBL_ENABLEICACHE ; Locatorcfg.h55

    .global GBL_CACHETYPE ; Locatorcfg.h55

    .global GBL_CACHEICRTAG1 ; Locatorcfg.h55

    .global GBL_CACHEICRTAG2 ; Locatorcfg.h55

    .global GBL_SUPPORTCSL ; Locatorcfg.h55

    .global GBL_TRCMASKVALUE ; Locatorcfg.h55

    .global GBL_CALLCSLCFGINIT ; Locatorcfg.h55

    .global GBL_BIOS_BOOTFXN ; Locatorcfg.cmd

    ;; module MEM (gNumHeap, SEGZERO, MALLOCSEG)

    .global MEM$ ; == 1

    .global MEM_gNumHeap ; Locatorcfg.h55

    .global MEM_SEGZERO ; Locatorcfg.cmd

    .global MEM_MALLOCSEG ; Locatorcfg.cmd

    ;; module OBJ ()

    .global OBJ$ ; == 0

    ;; module BUF (ENABLED)

    .global BUF$ ; == 1

    .global BUF_ENABLED ; Locatorcfg.h55

    ;; module CLK (IMR0TINTMASK, IMR1TINTMASK, INTBIT, TIMERIMRMASK, REGS, TIMERIMR, TIMERIFR, TIMERNUM, USETIMER, MICROSECONDS, TCR, TDDR, TDDRHIGH, PRD, PRDHIGH, COUNTSPMS, COUNTSPMSHIGH, TIMEFXN, HOOKFXN)

    .global CLK$ ; == 1

    .global CLK_IMR0TINTMASK ; Locatorcfg.h55

    .global CLK_IMR1TINTMASK ; Locatorcfg.h55

    .global CLK_INTBIT ; Locatorcfg.h55

    .global CLK_TIMERIMRMASK ; Locatorcfg.h55

    .global CLK_REGS ; Locatorcfg.h55

    .global CLK_TIMERIMR ; Locatorcfg.h55

    .global CLK_TIMERIFR ; Locatorcfg.h55

    .global CLK_TIMERNUM ; Locatorcfg.h55

    .global CLK_USETIMER ; Locatorcfg.h55

    .global CLK_MICROSECONDS ; Locatorcfg.h55

    .global CLK_TCR ; Locatorcfg.h55

    .global CLK_TDDR ; Locatorcfg.h55

    .global CLK_TDDRHIGH ; Locatorcfg.h55

    .global CLK_PRD ; Locatorcfg.h55

    .global CLK_PRDHIGH ; Locatorcfg.h55

    .global CLK_COUNTSPMS ; Locatorcfg.h55

    .global CLK_COUNTSPMSHIGH ; Locatorcfg.h55

    .global CLK_TIMEFXN ; Locatorcfg.cmd

    .global CLK_HOOKFXN ; Locatorcfg.cmd

    ;; module PRD (SCALAR, THOOKFXN)

    .global PRD$ ; == 1

    .global PRD_SCALAR ; Locatorcfg.h55

    .global PRD_THOOKFXN ; Locatorcfg.cmd

    ;; module RTDX (USERTDX, USERTEXECUTION, DATAMEMSEG, BUFMEMSIZE)

    .global RTDX$ ; == 0

    .global RTDX_USERTDX ; Locatorcfg.h55

    .global RTDX_USERTEXECUTION ; Locatorcfg.h55

    .global RTDX_DATAMEMSEG ; Locatorcfg.cmd

    .global RTDX_BUFMEMSIZE ; Locatorcfg.h55

    ;; module HST (RTDX, DSM, NONE, MAXFRAMESET, MAXFRAMEALLOWED, DSMBUFSEG, DSMMEMSIZE)

    .global HST$ ; == 0

    .global HST_RTDX ; Locatorcfg.h55

    .global HST_DSM ; Locatorcfg.h55

    .global HST_NONE ; Locatorcfg.h55

    .global HST_MAXFRAMESET ; Locatorcfg.h55

    .global HST_MAXFRAMEALLOWED ; Locatorcfg.h55

    .global HST_DSMBUFSEG ; Locatorcfg.cmd

    .global HST_DSMMEMSIZE ; Locatorcfg.h55

    ;; module HWI (ZEROTAB, STACKMODEL)

    .global HWI$ ; == 1

    .global HWI_ZEROTAB ; Locatorcfg.h55

    .global HWI_STACKMODEL ; Locatorcfg.h55

    ;; module SWI (EHOOKFXN, IHOOKFXN, EXECFXN, RUNFXN)

    .global SWI$ ; == 1

    .global SWI_EHOOKFXN ; Locatorcfg.cmd

    .global SWI_IHOOKFXN ; Locatorcfg.cmd

    .global SWI_EXECFXN ; Locatorcfg.cmd

    .global SWI_RUNFXN ; Locatorcfg.cmd

    ;; module TSK (STACKSIZE, SYSTACKSIZE, STACKSEG, PRIORITY, VCREATEFXN, VDELETEFXN, VEXITFXN, SWITCHFXN, READYFXN, NUM_HOOKS)

    .global TSK$ ; == 0

    .global TSK_STACKSIZE ; Locatorcfg.h55

    .global TSK_SYSTACKSIZE ; Locatorcfg.h55

    .global TSK_STACKSEG ; Locatorcfg.cmd

    .global TSK_PRIORITY ; Locatorcfg.h55

    .global TSK_VCREATEFXN ; Locatorcfg.cmd

    .global TSK_VDELETEFXN ; Locatorcfg.cmd

    .global TSK_VEXITFXN ; Locatorcfg.cmd

    .global TSK_SWITCHFXN ; Locatorcfg.h55

    .global TSK_READYFXN ; Locatorcfg.h55

    .global TSK_NUM_HOOKS ; Locatorcfg.h55

    ;; module IDL (USECLKIDLTIME, CALIBRFXN)

    .global IDL$ ; == 1

    .global IDL_USECLKIDLTIME ; Locatorcfg.h55

    .global IDL_CALIBRFXN ; Locatorcfg.cmd

    ;; module ISRC ()

    .global ISRC$ ; == 1

    ;; module LOG (ENABLED)

    .global LOG$ ; == 1

    .global LOG_ENABLED ; Locatorcfg.h55

    ;; module PIP (gNumEmbed, gNextId)

    .global PIP$ ; == 0

    .global PIP_gNumEmbed ; Locatorcfg.h55

    .global PIP_gNextId ; Locatorcfg.h55

    ;; module SEM ()

    .global SEM$ ; == 0

    ;; module MBX ()

    .global MBX$ ; == 0

    ;; module QUE ()

    .global QUE$ ; == 1

    ;; module LCK ()

    .global LCK$ ; == 1

    ;; module SIO ()

    .global SIO$ ; == 0

    ;; module STS ()

    .global STS$ ; == 0

    ;; module SYS (ABORTFXN, ERRORFXN, EXITFXN, PUTCFXN)

    .global SYS$ ; == 1

    .global SYS_ABORTFXN ; Locatorcfg.cmd

    .global SYS_ERRORFXN ; Locatorcfg.cmd

    .global SYS_EXITFXN ; Locatorcfg.cmd

    .global SYS_PUTCFXN ; Locatorcfg.cmd

    ;; module GIO (CREATEFXN, DELETEFXN, PENDFXN, POSTFXN)

    .global GIO$ ; == 0

    .global GIO_CREATEFXN ; Locatorcfg.cmd

    .global GIO_DELETEFXN ; Locatorcfg.cmd

    .global GIO_PENDFXN ; Locatorcfg.cmd

    .global GIO_POSTFXN ; Locatorcfg.cmd

    ;; module DEV ()

    .global DEV$ ; == 0

    ;; module UDEV ()

    .global UDEV$ ; == 0

    ;; module DGN ()

    .global DGN$ ; == 0

    ;; module DHL (gChannelsAvailable)

    .global DHL$ ; == 0

    .global DHL_gChannelsAvailable ; Locatorcfg.h55

    ;; module DPI ()

    .global DPI$ ; == 0

    ;; module HOOK (KNLID)

    .global HOOK$ ; == 0

    .global HOOK_KNLID ; Locatorcfg.h55

    ;; module DIO (STATIC, NUMTSKBASE, NUMSWIBASE)

    .global DIO$ ; == 0

    .global DIO_STATIC ; Locatorcfg.h55

    .global DIO_NUMTSKBASE ; Locatorcfg.h55

    .global DIO_NUMSWIBASE ; Locatorcfg.h55

    ;; module PWRM (PWRM_ENABLE, PWRM_BOOTHOOKFXN, PWRM_ADAPTCLK, PWRM_IDLEMASK, PWRM_CAPSMASK, PWRM_SCALING, PWRM_INITSP, PWRM_INITVOLTS, PWRM_DS_IDLEMASK, PWRM_IER0, PWRM_IER1)

    .global PWRM$ ; == 1

    .global PWRM_PWRM_ENABLE ; Locatorcfg.h55

    .global PWRM_PWRM_BOOTHOOKFXN ; Locatorcfg.cmd

    .global PWRM_PWRM_ADAPTCLK ; Locatorcfg.h55

    .global PWRM_PWRM_IDLEMASK ; Locatorcfg.h55

    .global PWRM_PWRM_CAPSMASK ; Locatorcfg.h55

    .global PWRM_PWRM_SCALING ; Locatorcfg.h55

    .global PWRM_PWRM_INITSP ; Locatorcfg.h55

    .global PWRM_PWRM_INITVOLTS ; Locatorcfg.h55

    .global PWRM_PWRM_DS_IDLEMASK ; Locatorcfg.h55

    .global PWRM_PWRM_IER0 ; Locatorcfg.h55

    .global PWRM_PWRM_IER1 ; Locatorcfg.h55

    ;; MODULE CONFIGURATION

    ;; ======== GBL_config ========

    .asg 00H, _ROM

    .asg 0157eH, _DSPSUBTYPE

    .asg 01H, _MODIFYCLKMD

    .asg 01H, _CLKMD

    .asg 0aH, _PLLM

    .asg 08000H, _PLLDIV0

    .asg 00H, _USERINIT

    .asg _FXN_F_nop, _USERINITFXN

    .asg 00H, _ENABLEINST

    .asg 01H, _LARGEMODEL

    .asg 00H, _ENABLEICACHE

    .asg 02H, _CACHETYPE

    .asg 0f80000H, _CACHEICRTAG1

    .asg 0f81000H, _CACHEICRTAG2

    .asg 00H, _SUPPORTCSL

    .asg 04000H, _TRCMASKVALUE

    .asg 00H, _CALLCSLCFGINIT

    .asg GBL_F_biosbootfxn, _BIOS_BOOTFXN

    GBL_config _ROM, _DSPSUBTYPE, _MODIFYCLKMD, _CLKMD, _PLLM, _PLLDIV0, _USERINIT, _USERINITFXN, _ENABLEINST, _LARGEMODEL, _ENABLEICACHE, _CACHETYPE, _CACHEICRTAG1, _CACHEICRTAG2, _SUPPORTCSL, _TRCMASKVALUE, _CALLCSLCFGINIT, _BIOS_BOOTFXN

    ;; ======== MEM_config ========

    .asg 00H, _gNumHeap

    .asg MEM_NULL, _SEGZERO

    .asg MEM_NULL, _MALLOCSEG

    MEM_config _gNumHeap, _SEGZERO, _MALLOCSEG

    ;; ======== OBJ_config ========

    OBJ_config

    ;; ======== BUF_config ========

    .asg 01H, _ENABLED

    BUF_config _ENABLED

    ;; ======== CLK_config ========

    .asg 010H, _IMR0TINTMASK

    .asg 00H, _IMR1TINTMASK

    .asg 04H, _INTBIT

    .asg 010H, _TIMERIMRMASK

    .asg 01000H, _REGS

    .asg 00H, _TIMERIMR

    .asg 01H, _TIMERIFR

    .asg 00H, _TIMERNUM

    .asg 00H, _USETIMER

    .asg 1000.000000, _MICROSECONDS

    .asg 020H, _TCR

    .asg 00H, _TDDR

    .asg 00H, _TDDRHIGH

    .asg 093dfH, _PRD

    .asg 04H, _PRDHIGH

    .asg 093e0H, _COUNTSPMS

    .asg 04H, _COUNTSPMSHIGH

    .asg FXN_F_zero, _TIMEFXN

    .asg FXN_F_nop, _HOOKFXN

    CLK_config _IMR0TINTMASK, _IMR1TINTMASK, _INTBIT, _TIMERIMRMASK, _REGS, _TIMERIMR, _TIMERIFR, _TIMERNUM, _USETIMER, _MICROSECONDS, _TCR, _TDDR, _TDDRHIGH, _PRD, _PRDHIGH, _COUNTSPMS, _COUNTSPMSHIGH, _TIMEFXN, _HOOKFXN

  • (1)  Which version of DSP/BIOS are you using?

    (2) Which version of CCS and codegen are you using?

    (3)  There have been problems in the recent past with the macros in the generated .s55 file and the mnemonic assembler.  These macros support both the algebraic and mnemonic assemblers.   Can you try using the algebraic assembler to assemble the .s55 file?   You can enable this assembler with --algebraic switch.  See screenshot:

     

    Thanks,
    -Karl-

  • DSP/BIOS 5.41.07.24

    Code Composer Studio Version: 4.2.1.00004

    TMS320C55x Code Generation Tools Release Version 4.3.6

    Thanks

  • I am still getting errors with --algebraic set.  Also the other .asm files do not assemble with --algebraic set. 

    Examples:

    "Locatorcfg.s55", ERROR! at line 351: [E0000] parse error

    CLK_config _IMR0TINTMASK, _IMR1TINTMASK, _INTBIT, _TIMERIMRMASK, _REGS, _TIMERIMR, _TIMERIFR, _TIMERNUM, _USETIMER, _MICROSECONDS, _TCR, _TDDR, _TDDRHIGH, _PRD, _PRDHIGH, _COUNTSPMS, _COUNTSPMSHIGH, _TIMEFXN, _HOOKFXN

    ^

    "Locatorcfg.s55", ERROR! at line 759: [E0005] Operand missing

    :name:$ord .set :order:

  • Hi Sequoyah --

    I added your .tcf file to one of my local projects and built it and I get the following CLK_config macro (note the extra fields after _HOOKFXN)

        CLK_config  _IMR0TINTMASK, _IMR1TINTMASK, _INTBIT, _TIMERIMRMASK, _REGS, _TIMERIMR, _TIMERIFR, _TIMERNUM, _USETIMER, _ENABLEHTIME, _MICROSECS, _TCR, _TDDR, _TDDRHIGH, _PRD, _PRDHIGH, _COUNTSPMS, _COUNTSPMSHIGH, _TIMEFXN, _HOOKFXN, _CLKDIV, _CALDIV, _CALMULT, _HTIMEDIV, _HTIMEMULT, _LTIMEDIV, _LTIMEMULT, _HTIMEPERLTIME

    I think you are somehow pointing to an older BIOS and getting an older .cdb file.

    Can you please:

    (1)  clean your project and rebuild?

    (2)  verify that your CCS settings show that you are using 5.41.07?

    (3) zip up the .cdb file that's an artifact of the tconf step?   This file should be in the Debug folder in your project.   The top 3 lines are of most interest.  Mine have this version:

    //!
    //# c5502.cdb 5.25.28

     

    I suspect that yours says something different.   Now we need to figure out why.

     

    Regards,
    -Karl-