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.

Compiler/link issues??

I have been working on a program which had been working well, up to the point where I started adding the next functionality which is USB communications.  The function Int enc_ent_num was woking properly.  I have not looked at this function for some time until I needed it for the use of the USB section.  Now as I start using it again, it locks up the system.

Attached files are the map of the link and a screen shot from the emulation.

After running emulation - the disassembly of the code show multiplications in setting variables to 0 and after passing these steps you can see that the values set to the variables are not 0.  Any ideas of what might going on?

 

******************************************************************************
               TMS320C6x Linker PC v6.1.17                     
******************************************************************************
>> Linked Fri Dec 03 15:58:25 2010

OUTPUT FILE NAME:   <./Debug/DSP.out>
ENTRY POINT SYMBOL: "_c_int00"  address: 1001b880


MEMORY CONFIGURATION

         name            origin    length      used     unused   attr    fill
----------------------  --------  ---------  --------  --------  ----  --------
  IROM_BOOT             00000000   00020000  00000000  00020000  RWIX
  IROM_DSPLIB           00020000   0000c000  00000000  0000c000  RWIX
  IROM_FASTRTS          0002c000   00004000  00000000  00004000  RWIX
  IROM_BIOS             00030000   00030000  00000000  00030000  RWIX
  IRAM_BOOT             10000000   00001000  000001a0  00000e60  RWIX
  IRAM_STACK            10001000   00000800  00000800  00000000  RWIX
  VECT                  10001800   00000200  00000200  00000000  RWIX
  IRAM                  10001a00   0003e600  00021740  0001cec0  RWIX
  BOOTSRAM              90000000   00012000  00000000  00012000  RWIX
  STATICRAM             90040000   00020000  00000000  00020000  RWIX


SECTION ALLOCATION MAP

 output                                  attributes/
section   page    origin      length       input sections
--------  ----  ----------  ----------   ----------------
.TIBootStrap 
*          0    10000000    000001a0     
                  10000000    00000020     --HOLE-- [fill = 0]
                  10000020    00000120     TISecondaryBoot.obj (.TIBootStrap:_TISecondaryBoot_bootstart)
                  10000140    00000060     TISecondaryBoot.obj (.TIBootStrap:_TISecondaryBoot_fetchAis)

.stack     0    10001000    00000800     UNINITIALIZED
                  10001000    00000008     rts6700.lib : boot.obj (.stack)
                  10001008    000007f8     --HOLE--

VECTORS    0    10001800    00000200     
                  10001800    00000200     Vectors.obj (VECTORS)

.TIBoot    0    10001a00    00000f88     
                  10001a00    00000920     TISecondaryBoot.obj (.TIBoot:_TISecondaryBoot_parseAisStream)
                  10002320    00000260     TISecondaryBoot.obj (.TIBoot:_TISecondaryBoot_updateCRC)
                  10002580    00000220     bootdancfg.obj (.TIBoot:_TIBootPllCfg)
                  100027a0    000000e0     TISecondaryBoot.obj (.TIBoot:_TISecondaryBoot_setReg)
                  10002880    00000060     bootdancfg.obj (.TIBoot:_TIBootSetup)
                  100028e0    00000040     bootdancfg.obj (.TIBoot:_TIBootAsyncRamCfg)
                  10002920    00000040     TISecondaryBoot.obj (.TIBoot:_TISecondaryBoot_abort)
                  10002960    00000028     TISecondaryBoot.obj (.switch)

.pinit     0    10002988    00000008     
                  10002988    00000004     applySystemPatch.obj (.pinit)
                  1000298c    00000004     --HOLE-- [fill = 0]

.bss       0    10002a00    00011580     UNINITIALIZED
                  10002a00    00011198     FFT.obj (.bss)
                  10013b98    00000068     --HOLE--
                  10013c00    00000380     TISecondaryBoot.obj (.bss:tiSbootBss)

.text      0    10013f80    0000c6e0     
                  10013f80    00000680     Functions0764.obj (.text:_enc_ent_num)
                  10014600    00000680     appmain.obj (.text:_getcalinfo)
                  10014c80    00000580     Functions0764.obj (.text:_usb_send_measure)
                  10015200    00000580     dsp67x.lib : DSPF_dp_cfftr2.obj (.text)
                  10015780    000004e0     appmain.obj (.text:_getBP)
                  10015c60    00000440     Functions0764.obj (.text:_disp_num_dp)
                  100160a0    000003c0     Functions0764.obj (.text:_FFT_PP_dp)
                  10016460    000003a0     appmain.obj (.text:_write_EEPROMCALDAT)
                  10016800    00000380     appmain.obj (.text:_Timer1_ISR)
                  10016b80    00000360     Functions0764.obj (.text:_genppfact)
                  10016ee0    00000340     Functions0764.obj (.text:_processpol)
                  10017220    00000340     Functions0764.obj (.text:_setadd13_19)
                  10017560    00000340     Functions0764.obj (.text:_usb_send_block)
                  100178a0    00000320     fastmath67x.lib : logdp.obj (.text)
                  10017bc0    00000300     c672xSystemPatchV2_00_00.lib : patch.obj (.text)
                  10017ec0    00000300     fastmath67x.lib : atan2dp.obj (.text)
                  100181c0    000002a0     Functions0764.obj (.text:_usb_get_block)
                  10018460    00000280     appmain.obj (.text:_Process_FFT)
                  100186e0    00000260     Functions0764.obj (.text:_decode_enc)
                  10018940    00000260     Functions0764.obj (.text:_disp_text_str_EEPROM)
                  10018ba0    00000240     Functions0764.obj (.text:_ad9832)
                  10018de0    00000240     rts6700.lib : memcpy62.obj (.text:_memcpy)
                  10019020    00000240     Functions0764.obj (.text:_setprogosc)
                  10019260    00000220     appmain.obj (.text:_Revert)
                  10019480    00000200     Functions0764.obj (.text:_bit_rev_dp)
                  10019680    000001e0     Functions0764.obj (.text:_flattop)
                  10019860    000001e0     Functions0764.obj (.text:_gen_w_r2_dp)
                  10019a40    000001e0     Functions0764.obj (.text:_usb_link)
                  10019c20    000001e0     fastmath67x.lib : expdp.obj (.text)
                  10019e00    000001a0                     : expsp.obj (.text)
                  10019fa0    000001a0                     : logsp.obj (.text)
                  1001a140    000001a0                     : powdp.obj (.text)
                  1001a2e0    00000180                     : sindp.obj (.text)
                  1001a460    00000160     Functions0764.obj (.text:_setdac)
                  1001a5c0    00000160     Functions0764.obj (.text:_write_EEPROMDAT)
                  1001a720    00000160     Functions0764.obj (.text:_write_disp)
                  1001a880    00000160     fastmath67x.lib : powsp.obj (.text)
                  1001a9e0    00000140     rts6700.lib : strasg.obj (.text:__strasgi)
                  1001ab20    00000120     Functions0764.obj (.text:_CalcFreqBin_SetOsc)
                  1001ac40    00000120     rts6700.lib : autoinit.obj (.text:__auto_init)
                  1001ad60    00000120                 : divi.obj (.text:__divi)
                  1001ae80    00000120     Functions0764.obj (.text:_delay)
                  1001afa0    00000120     rts6700.lib : exit.obj (.text:_exit)
                  1001b0c0    00000120     fastmath67x.lib : sinsp.obj (.text)
                  1001b1e0    00000100     Functions0764.obj (.text:_readadc)
                  1001b2e0    000000e0     fastmath67x.lib : sqrtdp.obj (.text)
                  1001b3c0    000000c0     rts6700.lib : divu.obj (.text:__divu)
                  1001b480    000000c0     Functions0764.obj (.text:_memsw)
                  1001b540    000000c0     Functions0764.obj (.text:_wait_enc_val)
                  1001b600    000000a0     rts6700.lib : fixfu.obj (.text:__fixfu)
                  1001b6a0    000000a0     Functions0764.obj (.text:_setpga)
                  1001b740    000000a0     fastmath67x.lib : recipdp.obj (.text)
                  1001b7e0    000000a0                     : sqrtsp.obj (.text)
                  1001b880    00000080     rts6700.lib : boot.obj (.text:_c_int00)
                  1001b900    00000080     Functions0764.obj (.text:_disp_text_char)
                  1001b980    00000080     Functions0764.obj (.text:_memsr)
                  1001ba00    00000080     Functions0764.obj (.text:_rfi)
                  1001ba80    00000080     Functions0764.obj (.text:_setdisppos)
                  1001bb00    00000080     fastmath67x.lib : divdp.obj (.text)
                  1001bb80    00000060                     : divsp.obj (.text)
                  1001bbe0    00000040     rts6700.lib : args_main.obj (.text:__args_main)
                  1001bc20    00000020                 : _lock.obj (.text:__nop)
                  1001bc40    00000020                 : exit.obj (.text:_abort)
                  1001bc60    00004a00     appmain.obj (apptext:_main)

.const     0    10020660    00001f74     
                  10020660    00000f9c     c672xSystemPatchV2_00_00.lib : pdspFirmware_p0.pdsp.obj (.const)
                  100215fc    00000f9c                                  : pdspFirmware_p1.pdsp.obj (.const)
                  10022598    00000020     DSPMAP.obj (.const)
                  100225b8    0000001c     Functions0764.obj (.const:_$P$T0$1$0)

.cinit     0    100225d8    000006c4     
                  100225d8    00000659     DSPMAP.obj (.cinit)
                  10022c31    00000007     --HOLE-- [fill = 0]
                  10022c38    0000002c     rts6700.lib : exit.obj (.cinit)
                  10022c64    00000004     --HOLE-- [fill = 0]
                  10022c68    0000001c                 : _lock.obj (.cinit)
                  10022c84    00000004     --HOLE-- [fill = 0]
                  10022c88    0000000c                 : errno.obj (.cinit)
                  10022c94    00000004     --HOLE-- [fill = 0]
                  10022c98    00000004     (.pad.cinit) [fill = 0]

.data      0    10022ca0    000002a8     
                  10022ca0    000000b8     fastmath67x.lib : expdp.obj (.data)
                  10022d58    00000080                     : atan2dp.obj (.data)
                  10022dd8    00000078                     : logdp.obj (.data)
                  10022e50    00000060                     : sindp.obj (.data)
                  10022eb0    0000005c                     : expsp.obj (.data)
                  10022f0c    00000004     --HOLE-- [fill = 0]
                  10022f10    00000038                     : logsp.obj (.data)

.far       0    10022f48    00000270     UNINITIALIZED
                  10022f48    00000191     DSPMAP.obj (.far)
                  100230d9    00000003     --HOLE--
                  100230dc    000000b8     appmain.obj (.far)
                  10023194    0000000c     rts6700.lib : exit.obj (.far)
                  100231a0    00000009     TISecondaryBoot.obj (.far)
                  100231a9    00000003     --HOLE--
                  100231ac    00000008     rts6700.lib : _lock.obj (.far)
                  100231b4    00000004                 : errno.obj (.far)


GLOBAL SYMBOLS: SORTED ALPHABETICALLY BY Name 

address    name
--------   ----
10002a00   $bss
10002a00   .bss
10022ca0   .data
10013f80   .text
1001bc40   C$$EXIT
10022f10   Logtable_asm
10022cc8   OneE2
10022d58   Vatndp
1000da08   _Ai
1000ba08   _Ar
10011a08   _Bi
1000fa08   _Br
100225b4   _Cal_Data
1001ab20   _CalcFreqBin_SetOsc
10015200   _DSPF_dp_cfftr2
10013b89   _EEdat
10022f50   _EMIF_A1CR
10022f48   _EMIF_ACCR
10022f4c   _EMIF_SDCR
10009a08   _FFT_BIN
10007a08   _FFT_BUF
100160a0   _FFT_PP_dp
10022e50   _HPisdp
100230a0   _MC0_PDCLR
10023098   _MC0_PDIN
10023090   _MC0_PDIR
10023094   _MC0_PDOUT
1002309c   _MC0_PDSET
1002308c   _MC0_PFUNC
100230b8   _MC1_PDCLR
100230b0   _MC1_PDIN
100230a8   _MC1_PDIR
100230ac   _MC1_PDOUT
100230b4   _MC1_PDSET
100230a4   _MC1_PFUNC
10018460   _Process_FFT
10004a00   _RAW_BUF
100230d8   _REF
10022f6c   _RTI_CAFRC0
10022f80   _RTI_CAFRC1
10022f58   _RTI_CAPCTRL
10022f70   _RTI_CAUC0
10022f84   _RTI_CAUC1
10022fac   _RTI_CLRINT
10022f88   _RTI_COMP0
10022f90   _RTI_COMP1
10022f98   _RTI_COMP2
10022fa0   _RTI_COMP3
10022f5c   _RTI_COMPCTRL
10022f68   _RTI_CPUC0
10022f7c   _RTI_CPUC1
10022fc4   _RTI_DWDCNTR
10022fb4   _RTI_DWDCTRL
10022fb8   _RTI_DWDPRLD
10022f60   _RTI_FRC0
10022f74   _RTI_FRC1
10022f54   _RTI_GCTRL
10022fb0   _RTI_INTFLAG
10022fa8   _RTI_SETINT
10022f64   _RTI_UC0
10022f78   _RTI_UC1
10022f8c   _RTI_UDCP0
10022f94   _RTI_UDCP1
10022f9c   _RTI_UDCP2
10022fa4   _RTI_UDCP3
10022fc0   _RTI_WDKEY
10022fbc   _RTI_WDSTATUS
10019260   _Revert
100230c4   _SIP
10022ffc   _SPI0_BUF
10023000   _SPI0_BUFs
10022ff4   _SPI0_DAT0
10022ff8   _SPI0_DAT1
1002300c   _SPI0_DEF
10023008   _SPI0_DELAY
10023004   _SPI0_EMU
10022fd8   _SPI0_FLG
10023010   _SPI0_FMT0
10023014   _SPI0_FMT1
10023018   _SPI0_FMT2
1002301c   _SPI0_FMT3
10022fc8   _SPI0_GCR0
10022fcc   _SPI0_GCR1
10022fd0   _SPI0_INT0
10022fd4   _SPI0_LVL
10022fdc   _SPI0_PC0
10022fe0   _SPI0_PC1
10022fe4   _SPI0_PC2
10022fe8   _SPI0_PC3
10022fec   _SPI0_PC4
10022ff0   _SPI0_PC5
10023020   _SPI0_TGINTVECT0
10023024   _SPI0_TGINTVECT1
10023064   _SPI1_BUF
10023054   _SPI1_DAT0
10023058   _SPI1_DAT1
10023060   _SPI1_DAT1LW
1002305c   _SPI1_DAT1UW
10023070   _SPI1_DEF
1002306c   _SPI1_DELAY
10023068   _SPI1_EMU
10023038   _SPI1_FLG
10023074   _SPI1_FMT0
10023078   _SPI1_FMT1
1002307c   _SPI1_FMT2
10023080   _SPI1_FMT3
10023028   _SPI1_GCR0
1002302c   _SPI1_GCR1
10023030   _SPI1_INT0
10023034   _SPI1_LVL
1002303c   _SPI1_PC0
10023040   _SPI1_PC1
10023044   _SPI1_PC2
10023048   _SPI1_PC3
1002304c   _SPI1_PC4
10023050   _SPI1_PC5
10023084   _SPI1_TGINTVECT0
10023088   _SPI1_TGINTVECT1
10020660   _SarPdspFirmware0
100215fc   _SarPdspFirmware1
10001a00   _TIBOOT_SEC_RUN_ADDR
00000f88   _TIBOOT_SEC_SIZE
100028e0   _TIBootAsyncRamCfg
10002580   _TIBootPllCfg
10002880   _TIBootSetup
10013e80   _TISecondaryBootStack
00000100   _TISecondaryBootStack_Size
10013c00   _TISecondaryBootStatus
10002920   _TISecondaryBoot_abort
10000020   _TISecondaryBoot_bootstart
10000140   _TISecondaryBoot_fetchAis
10001a00   _TISecondaryBoot_parseAisStream
100027a0   _TISecondaryBoot_setReg
10002320   _TISecondaryBoot_updateCRC
100231a8   _TISecondaryBootbootChar
100231a4   _TISecondaryBootbootPage
10002a00   _TWIDDLE
10016800   _Timer1_ISR
00000800   __STACK_SIZE
1002319c   ___TI_enable_exit_profile_output
ffffffff   ___TI_pprof_out_hndl
ffffffff   ___TI_prof_data_size
ffffffff   ___TI_prof_data_start
ffffffff   ___binit__
10002a00   ___bss__
ffffffff   ___c_args__
100225d8   ___cinit__
10022ca0   ___data__
10022f48   ___edata__
10013f80   ___end__
10020660   ___etext__
10002988   ___pinit__
10013f80   ___text__
1001bbe0   __args_main
1001ac40   __auto_init
10023194   __cleanup_ptr
1001bb00   __divd
1001bb80   __divf
1001ad60   __divi
1001b3c0   __divu
10023198   __dtors_ptr
1001b600   __fixfu
100231ac   __lock
1001bc20   __nop
10001000   __stack
1001a9e0   __strasgi
100231b0   __unlock
1001bc40   _abort
10018ba0   _ad9832
100225a0   _analogch
10017bc0   _applySystemPatch
10017ec0   _atan
100180c4   _atan2
100180c4   _atan2dp
10017ec0   _atandp
10019480   _bit_rev_dp
1001b880   _c_int00
100230dc   _calinfo
1001a2e0   _cos
1001a2e0   _cosdp
1001b0c0   _cosf
1001b0c0   _cossp
100186e0   _decode_enc
1001ae80   _delay
10015c60   _disp_num_dp
1001b900   _disp_text_char
10018940   _disp_text_str_EEPROM
10022598   _dispdat
1001bb00   _divdp
1001bb80   _divsp
1002259c   _dspgpio
10013f80   _enc_ent_num
100231b4   _errno
1001afa0   _exit
10019c60   _exp
10019c44   _exp10
10019c44   _exp10dp
10019e30   _exp10f
10019e30   _exp10sp
10019c20   _exp2
10019c20   _exp2dp
10019e00   _exp2f
10019e00   _exp2sp
10019c60   _expdp
10019e60   _expf
10019e60   _expsp
10019680   _flattop
100230cc   _freqbin
10019860   _gen_w_r2_dp
10016b80   _genppfact
10015780   _getBP
100230c8   _getbin
10014600   _getcalinfo
100230d6   _gpo
100225b0   _keyenc
100179e0   _log
10017940   _log10
10017940   _log10dp
10019fc0   _log10f
10019fc0   _log10sp
100178a0   _log2
100178a0   _log2dp
10019fa0   _log2f
10019fa0   _log2sp
100179e0   _logdp
10019fe0   _logf
10019fe0   _logsp
1001bc60   _main
10018de0   _memcpy
1001b980   _memsr
1001b480   _memsw
10022dd8   _nmnL2
100225a4   _pga_fs_disp
100230c0   _pgadat
10013a08   _poldat
1001a150   _pow
1001a150   _powdp
1001a880   _powf
1001a880   _powsp
10016ee0   _processpol
1001b1e0   _readadc
1001b740   _recip
1001b740   _recipdp
1001ba00   _rfi
10017220   _setadd13_19
1001a460   _setdac
1001ba80   _setdisppos
1001b6a0   _setpga
10019020   _setprogosc
100230d0   _sf
1001a2fc   _sin
1001a2fc   _sindp
1001b0d4   _sinf
1001b0d4   _sinsp
1001b2e0   _sqrt
1001b2e0   _sqrtdp
1001b7e0   _sqrtf
1001b7e0   _sqrtsp
100230bc   _t51us
100181c0   _usb_get_block
10019a40   _usb_link
10017560   _usb_send_block
10014c80   _usb_send_measure
100225a8   _usbdat
100225ac   _usbstrb
1001b540   _wait_enc_val
10016460   _write_EEPROMCALDAT
1001a5c0   _write_EEPROMDAT
1001a720   _write_disp
100230d4   _xmitf
ffffffff   binit
100225d8   cinit
10022f48   edata
10013f80   end
10020660   etext
10022ee8   exp_ctable
10022eb0   exp_ktable
10002988   pinit


GLOBAL SYMBOLS: SORTED BY Symbol Address 

address    name
--------   ----
00000100   _TISecondaryBootStack_Size
00000800   __STACK_SIZE
00000f88   _TIBOOT_SEC_SIZE
10000020   _TISecondaryBoot_bootstart
10000140   _TISecondaryBoot_fetchAis
10001000   __stack
10001a00   _TIBOOT_SEC_RUN_ADDR
10001a00   _TISecondaryBoot_parseAisStream
10002320   _TISecondaryBoot_updateCRC
10002580   _TIBootPllCfg
100027a0   _TISecondaryBoot_setReg
10002880   _TIBootSetup
100028e0   _TIBootAsyncRamCfg
10002920   _TISecondaryBoot_abort
10002988   ___pinit__
10002988   pinit
10002a00   $bss
10002a00   .bss
10002a00   _TWIDDLE
10002a00   ___bss__
10004a00   _RAW_BUF
10007a08   _FFT_BUF
10009a08   _FFT_BIN
1000ba08   _Ar
1000da08   _Ai
1000fa08   _Br
10011a08   _Bi
10013a08   _poldat
10013b89   _EEdat
10013c00   _TISecondaryBootStatus
10013e80   _TISecondaryBootStack
10013f80   .text
10013f80   ___end__
10013f80   ___text__
10013f80   _enc_ent_num
10013f80   end
10014600   _getcalinfo
10014c80   _usb_send_measure
10015200   _DSPF_dp_cfftr2
10015780   _getBP
10015c60   _disp_num_dp
100160a0   _FFT_PP_dp
10016460   _write_EEPROMCALDAT
10016800   _Timer1_ISR
10016b80   _genppfact
10016ee0   _processpol
10017220   _setadd13_19
10017560   _usb_send_block
100178a0   _log2
100178a0   _log2dp
10017940   _log10
10017940   _log10dp
100179e0   _log
100179e0   _logdp
10017bc0   _applySystemPatch
10017ec0   _atan
10017ec0   _atandp
100180c4   _atan2
100180c4   _atan2dp
100181c0   _usb_get_block
10018460   _Process_FFT
100186e0   _decode_enc
10018940   _disp_text_str_EEPROM
10018ba0   _ad9832
10018de0   _memcpy
10019020   _setprogosc
10019260   _Revert
10019480   _bit_rev_dp
10019680   _flattop
10019860   _gen_w_r2_dp
10019a40   _usb_link
10019c20   _exp2
10019c20   _exp2dp
10019c44   _exp10
10019c44   _exp10dp
10019c60   _exp
10019c60   _expdp
10019e00   _exp2f
10019e00   _exp2sp
10019e30   _exp10f
10019e30   _exp10sp
10019e60   _expf
10019e60   _expsp
10019fa0   _log2f
10019fa0   _log2sp
10019fc0   _log10f
10019fc0   _log10sp
10019fe0   _logf
10019fe0   _logsp
1001a150   _pow
1001a150   _powdp
1001a2e0   _cos
1001a2e0   _cosdp
1001a2fc   _sin
1001a2fc   _sindp
1001a460   _setdac
1001a5c0   _write_EEPROMDAT
1001a720   _write_disp
1001a880   _powf
1001a880   _powsp
1001a9e0   __strasgi
1001ab20   _CalcFreqBin_SetOsc
1001ac40   __auto_init
1001ad60   __divi
1001ae80   _delay
1001afa0   _exit
1001b0c0   _cosf
1001b0c0   _cossp
1001b0d4   _sinf
1001b0d4   _sinsp
1001b1e0   _readadc
1001b2e0   _sqrt
1001b2e0   _sqrtdp
1001b3c0   __divu
1001b480   _memsw
1001b540   _wait_enc_val
1001b600   __fixfu
1001b6a0   _setpga
1001b740   _recip
1001b740   _recipdp
1001b7e0   _sqrtf
1001b7e0   _sqrtsp
1001b880   _c_int00
1001b900   _disp_text_char
1001b980   _memsr
1001ba00   _rfi
1001ba80   _setdisppos
1001bb00   __divd
1001bb00   _divdp
1001bb80   __divf
1001bb80   _divsp
1001bbe0   __args_main
1001bc20   __nop
1001bc40   C$$EXIT
1001bc40   _abort
1001bc60   _main
10020660   _SarPdspFirmware0
10020660   ___etext__
10020660   etext
100215fc   _SarPdspFirmware1
10022598   _dispdat
1002259c   _dspgpio
100225a0   _analogch
100225a4   _pga_fs_disp
100225a8   _usbdat
100225ac   _usbstrb
100225b0   _keyenc
100225b4   _Cal_Data
100225d8   ___cinit__
100225d8   cinit
10022ca0   .data
10022ca0   ___data__
10022cc8   OneE2
10022d58   Vatndp
10022dd8   _nmnL2
10022e50   _HPisdp
10022eb0   exp_ktable
10022ee8   exp_ctable
10022f10   Logtable_asm
10022f48   _EMIF_ACCR
10022f48   ___edata__
10022f48   edata
10022f4c   _EMIF_SDCR
10022f50   _EMIF_A1CR
10022f54   _RTI_GCTRL
10022f58   _RTI_CAPCTRL
10022f5c   _RTI_COMPCTRL
10022f60   _RTI_FRC0
10022f64   _RTI_UC0
10022f68   _RTI_CPUC0
10022f6c   _RTI_CAFRC0
10022f70   _RTI_CAUC0
10022f74   _RTI_FRC1
10022f78   _RTI_UC1
10022f7c   _RTI_CPUC1
10022f80   _RTI_CAFRC1
10022f84   _RTI_CAUC1
10022f88   _RTI_COMP0
10022f8c   _RTI_UDCP0
10022f90   _RTI_COMP1
10022f94   _RTI_UDCP1
10022f98   _RTI_COMP2
10022f9c   _RTI_UDCP2
10022fa0   _RTI_COMP3
10022fa4   _RTI_UDCP3
10022fa8   _RTI_SETINT
10022fac   _RTI_CLRINT
10022fb0   _RTI_INTFLAG
10022fb4   _RTI_DWDCTRL
10022fb8   _RTI_DWDPRLD
10022fbc   _RTI_WDSTATUS
10022fc0   _RTI_WDKEY
10022fc4   _RTI_DWDCNTR
10022fc8   _SPI0_GCR0
10022fcc   _SPI0_GCR1
10022fd0   _SPI0_INT0
10022fd4   _SPI0_LVL
10022fd8   _SPI0_FLG
10022fdc   _SPI0_PC0
10022fe0   _SPI0_PC1
10022fe4   _SPI0_PC2
10022fe8   _SPI0_PC3
10022fec   _SPI0_PC4
10022ff0   _SPI0_PC5
10022ff4   _SPI0_DAT0
10022ff8   _SPI0_DAT1
10022ffc   _SPI0_BUF
10023000   _SPI0_BUFs
10023004   _SPI0_EMU
10023008   _SPI0_DELAY
1002300c   _SPI0_DEF
10023010   _SPI0_FMT0
10023014   _SPI0_FMT1
10023018   _SPI0_FMT2
1002301c   _SPI0_FMT3
10023020   _SPI0_TGINTVECT0
10023024   _SPI0_TGINTVECT1
10023028   _SPI1_GCR0
1002302c   _SPI1_GCR1
10023030   _SPI1_INT0
10023034   _SPI1_LVL
10023038   _SPI1_FLG
1002303c   _SPI1_PC0
10023040   _SPI1_PC1
10023044   _SPI1_PC2
10023048   _SPI1_PC3
1002304c   _SPI1_PC4
10023050   _SPI1_PC5
10023054   _SPI1_DAT0
10023058   _SPI1_DAT1
1002305c   _SPI1_DAT1UW
10023060   _SPI1_DAT1LW
10023064   _SPI1_BUF
10023068   _SPI1_EMU
1002306c   _SPI1_DELAY
10023070   _SPI1_DEF
10023074   _SPI1_FMT0
10023078   _SPI1_FMT1
1002307c   _SPI1_FMT2
10023080   _SPI1_FMT3
10023084   _SPI1_TGINTVECT0
10023088   _SPI1_TGINTVECT1
1002308c   _MC0_PFUNC
10023090   _MC0_PDIR
10023094   _MC0_PDOUT
10023098   _MC0_PDIN
1002309c   _MC0_PDSET
100230a0   _MC0_PDCLR
100230a4   _MC1_PFUNC
100230a8   _MC1_PDIR
100230ac   _MC1_PDOUT
100230b0   _MC1_PDIN
100230b4   _MC1_PDSET
100230b8   _MC1_PDCLR
100230bc   _t51us
100230c0   _pgadat
100230c4   _SIP
100230c8   _getbin
100230cc   _freqbin
100230d0   _sf
100230d4   _xmitf
100230d6   _gpo
100230d8   _REF
100230dc   _calinfo
10023194   __cleanup_ptr
10023198   __dtors_ptr
1002319c   ___TI_enable_exit_profile_output
100231a4   _TISecondaryBootbootPage
100231a8   _TISecondaryBootbootChar
100231ac   __lock
100231b0   __unlock
100231b4   _errno
ffffffff   ___TI_pprof_out_hndl
ffffffff   ___TI_prof_data_size
ffffffff   ___TI_prof_data_start
ffffffff   ___binit__
ffffffff   ___c_args__
ffffffff   binit

[278 symbols]

4201.issue.TIF

  • Dan,

    Which DSP are you using? You do not mention this in your text, but the heading of your CCSv3 screen shot says C6720. That may be generic, but if you are using the C6720 then the address range of your enc_ent_num function is outside the valid range of internal RAM, since it only has 64KB from 0x10000000-0x1000FFFF.

    I am impressed at your use of the DIsassembly window to get more information. This is helpful for the point above, and also because the instruction code looks suspiciously corrupted and the instruction mnemonics do not look like compiled C code. It would be very unusual for the compiler to use MPY to put a 0 in a register. This is not valid program memory content being displayed at these addresses.

    If this is a valid memory range for your processor, take a look at this function as soon as you load it to see what values are there, before running to main() if possible.

    Regards,
    RandyP

     

    If this answers your question, please click the  Verify Answer  button below. If not, please reply back with more information.

  • The processor used is the 6726 with 256K RAM, so I should be within the memory limits.

    I think I have found the issue.  I looked for the disassembly in emulator at load and found proper code.  As I forwarded through the program slowly, I found that the memory values had been overwritten when I collecting a chunck of data to memory.  I was able to page up in the memory view and found the variable which was causing this problem.  Turns out I did not allocate enough memory for this new variable.

  • Glad to hear you found the problem.

    I clicked Verify Answer on your post so future readers and answerers will know you have the answer, and what it was. If this is wrong, please reject it and we can continue the thread.

    Regards,
    RandyP