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.

faxlib on C6657 as a SYS/BIOS task

Other Parts Discussed in Thread: SYSBIOS

I use SYS/BIOS Typical CCS project as template, put faxlib loopback example from

faxlib_C66_2_0_1_2\examples\ccsProjects\test_rel_ce66le_CE66LE_LE_ELF

as a task inside SYS/BIOS.

But when calling fiuOpen(), I get exception:

B23=0x4
B24=0xa B25=0xb6e24102
B26=0x4b4d2234 B27=0x8152b112
B28=0xa2651300 B29=0x48539398
B30=0x1 B31=0x8034a0
NTSR=0x1000f
ITSR=0xe
IRP=0x803628
SSR=0x0
AMR=0x0
RILC=0x0
ILC=0x0
Exception at 0x0
EFR=0x2 NRP=0x0
Internal exception: IERR=0x1
Instruction fetch exception
ti.sysbios.family.c64p.Exception: line 255: E_exceptionMin: pc = 0x00000000, sp = 0x0082ae08.
To see more exception detail, use ROV or set 'ti.sysbios.family.c64p.Exception.enablePrint = true;'
xdc.runtime.Error.raise: terminating execution

Anything wrong?

There is no problem when running the example without SYS/BIOS.

  • NRP is at 0x0.  There's no valid memory at 0x0 so the code jumped to an invalid space.  This could be do to several reasons.  It could be uninitialized data, bad linker command file (allocating memory sections where there isn't memory), stack overflow causing corruption of pointers, etc.

    Pulling up a dissassebly window and capturing at least 10 lines before and after the address that's held in B3.  This is your return pointer, and is where the code would have jumped from when it jumped to 0x0.

    Also, look at B15, what's it pointing to?  This is your Stack Pointer, is it still within the allocated stack space?

    Best Regards,

    Chad

  • Since it looks like a stack overflow, first thing I tried is to enlarge the stack size but seems does not help.

    Now the dump exception messages are:

    -----------------------------------------------------------------------------------------------------------

    x3840 B23=0x4
    B24=0xa B25=0xb6a24002
    B26=0x4a4d2234 B27=0x8142b112
    B28=0xa2651300 B29=0x40469300
    B30=0x1 B31=0x84bc20
    NTSR=0x1000f
    ITSR=0x0
    IRP=0x0
    SSR=0x0
    AMR=0x0
    RILC=0x0
    ILC=0x0
    Exception at 0x0
    EFR=0x2 NRP=0x0
    Internal exception: IERR=0x1
    Instruction fetch exception
    ti.sysbios.family.c64p.Exception: line 255: E_exceptionMin: pc = 0x00000000, sp = 0x00807e88.
    To see more exception detail, use ROV or set 'ti.sysbios.family.c64p.Exception.enablePrint = true;'
    xdc.runtime.Error.raise: terminating execution
    --------------------------------------------------------------------------------------------------------------------

    The last instruction before jump to 0x00000000 is at 0x008544d8:

    (using ctrl-shift-f5, before step to 0x00000000)

    ---------------------------------------------------------------------------------------------------------------------

    0085449c:   E0C20000            .fphead       n, l, W, HU, nobr, nosat, 0000110b
    008544a0:   030043E8            MVKH.S1       0x870000,A6
    008544a4:   00180264            LDW.D1T1      *+A6[0],A0
    008544a8:   00BD02D6            STH.D2T2      B1,*+B15[8]
    008544ac:   4727                MVK.L2        2,B6
    008544ae:   2C6E                NOP           2
    008544b0:   102A9C13            CALLP.S2      __call_stub (PC+87264 = 0x00869980),B3
    008544b4:   FC47     ||         MV.L2X        A0,B31
              $C$RL11:
    008544b6:   1247                MV.L2X        A4,B0
    008544b8:   8740     ||         ADD.L1        A6,4,A4
    008544ba:   000C                LDW.D1T1      *A4[0],A0
    008544bc:   ED000800            .fphead       n, l, W, BU, nobr, nosat, 1101000b
    008544c0:   021C0204            LDHU.D1T1     *+A7[0],A4
    008544c4:   140004FC            ADDAW.D1X     B15,4,A8
    008544c8:   003D22D6            STH.D2T2      B0,*+B15[9]
    008544cc:   03101FD8            MV.L1X        B4,A6
    008544d0:   00001362            B.S2X         A0
    008544d4:   0200A35A            MVK.L2        0,B4
    008544d8:   01876162            ADDKPC.S2     $C$RL10 (PC+28 = 0x008544dc),B3,3
              $C$L15, $C$RL10:
    008544dc:   01BD12E6            LDW.D2T2      *++B15[8],B3
    008544e0:   6C6E                NOP           4
    008544e2:   A1EF                BNOP.S2       B3,5
              faxOverlayBufInit:
    008544e4:   102E9810            CALLP.S1      __push_rts (PC+95424 = 0x0086b9a0),A3
              $C$RL14:
    008544e8:   00132204            LDHU.D1T1     *+A4[25],A0
    008544ec:   4646                MV.L1         A4,A10
    008544ee:   4C6E                NOP           3
    008544f0:   A6BA         [!A0]  BNOP.S1       $C$L16 (PC+52 = 0x00854514),5
    008544f2:   784C                LDW.D1T2      *A4[11],B4
    008544f4:   03130205            LDHU.D1T1     *+A4[24],A6
    008544f8:   F21B     ||         CALLP.S2      faxBufferAdd (PC-224 = 0x00854400),B3
              $C$RL12:
    008544fa:   8506                MV.L1         A10,A4

    ------------------------------------------------------------------------------------------------------------------------

    where the core registers are:

    -------------------------------------------------------------------------------------------------------------------------

    521177 102
    R PC 0x0000000B 0x008544D8
    R CLK 0x0000000B 0x00000000
    R SP 0x0000000B 0x00807E88
    R FP 0x0000000B 0x00807E88
    R A0 0x0000000B 0x00000000
    R A1 0x0000000B 0x00002A00
    R A2 0x0000000B 0x00000000
    R A3 0x0000000B 0x00000000
    R A4 0x0000000B 0x00000201
    R A5 0x0000000B 0x00809390
    R A6 0x0000000B 0x00000080
    R A7 0x0000000B 0x008091E0
    R A8 0x0000000B 0x00807E98
    R A9 0x0000000B 0x00000004
    R A10 0x0000000B 0x00000000
    R A11 0x0000000B 0x00000000
    R A12 0x0000000B 0x00000000
    R A13 0x0000000B 0x00000000
    R A14 0x0000000B 0x00000000
    R A15 0x0000000B 0x00000000
    R A16 0x0000000B 0x00809258
    R A17 0x0000000B 0x00000000
    R A18 0x0000000B 0x00809214
    R A19 0x0000000B 0x00000040
    R A20 0x0000000B 0x4AC10039
    R A21 0x0000000B 0x602B0886
    R A22 0x0000000B 0x55698DA6
    R A23 0x0000000B 0x002C0206
    R A24 0x0000000B 0x1398F052
    R A25 0x0000000B 0xC02D2B5C
    R A26 0x0000000B 0x41390024
    R A27 0x0000000B 0x00218E93
    R A28 0x0000000B 0x181C7D0A
    R A29 0x0000000B 0x30278203
    R A30 0x0000000B 0xC3A8134C
    R A31 0x0000000B 0x000017D0
    R B0 0x0000000B 0x00000000
    R B1 0x0000000B 0x00000004
    R B2 0x0000000B 0x0000000C
    R B3 0x0000000B 0x008544B6
    R B4 0x0000000B 0x00000000
    R B5 0x0000000B 0x00000088
    R B6 0x0000000B 0x00000002
    R B7 0x0000000B 0x00851194
    R B8 0x0000000B 0x00027100
    R B9 0x0000000B 0x000249F0
    R B10 0x0000000B 0x00000028
    R B11 0x0000000B 0x00000000
    R B12 0x0000000B 0x00000000
    R B13 0x0000000B 0x00000000
    R B14 0x0000000B 0x0087B2A0
    R B15 0x0000000B 0x00807E88
    R B16 0x0000000B 0x008567D0
    R B17 0x0000000B 0x00856774
    R B18 0x0000000B 0x00808188
    R B19 0x0000000B 0x0086A340
    R B20 0x0000000B 0x00030D40
    R B21 0x0000000B 0x00000002
    R B22 0x0000000B 0x00003840
    R B23 0x0000000B 0x00000004
    R B24 0x0000000B 0x0000000A
    R B25 0x0000000B 0xB6A24002
    R B26 0x0000000B 0x5A4D0234
    R B27 0x0000000B 0x8142B112
    R B28 0x0000000B 0xA2651300
    R B29 0x0000000B 0x40479390
    R B30 0x0000000B 0x00000001
    R B31 0x0000000B 0x0084BC20
    R ERP 0x0000000B 0x00000000
    R ARP 0x0000000B 0x00000000
    R DIER 0x0000000B 0x00000000
    R ETSR 0x0000000B 0x0001000F

    -----------------------------------------------------------------------------------------------------------

    The stack (SP=0x807E88) looks like:

    0x807E80    0087AC0C    008091E0    00000000    00000088    00000201    00851194    00000004    00000800
    0x807EA0    00809260    00807EF4    008527F2    0087AA90    BEBEBEBE    0087AA90    00869998    15000101
    0x807EC0    00000002    00850F0E    00809440    00000003    000001D4    000008FC    00000201    00851194
    0x807EE0    00809214    008091E0    00807EF4    00807FD4    00000000    00870201    008091E0    1500000A
    0x807F00    00003840    00000004    000249F0    00027100    000008FC    0001D4C0    00030000    00000000
    0x807F20    00808000    00809214    00020028    00030D40    00856774    00809440    0086A340    00808188
    0x807F40    008567D0    00809440    00851194    008091E0    00000000    00000000    00000000    00000000
    0x807F60    00000000    00000000    00000000    00000000    00869998    00000008    00000010    0085D366
    0x807F80    00000000    00000000    00000000    00808004    00808030    00000000    00000010    0084C9C0
    0x807FA0    00000000    00000000    00000000    00000000    00000000    00000000    00000000    00000000
    0x807FC0    00000000    00000000    0087B2A0    00800001    00000000    0000000A    00003840    00000002
    0x807FE0    00000000    00010014    00000003    00000002    001E012C    00030D40    00840000    0084C5C0
    0x808000    00848408    0086A340    00808188    0084BC28    00848408    0001D4C0    00000000    0087A608
    0x808020    00000004    000249F0    00027100    000008FC    00000003    00000000    00848408    00848408
    0x808040    0084CBB8    00877CB0    00808058    00010001    00862F70    008779F0    0086BA60    00000000
    0x808060    00000000    00862F50    0085C980    BEBEBEBE    00000000    00037F90    00808078    00000104
    0x808080    00000000    00000188    00808188    00000000    000000C8    00808318    00000000    00000050

    ---------------------------------------------------------------------------------------------------------------------------------------

    After 4 times click ctrl-shift-F5, it jumps to 0x00000000, registers are:

    R PC 0x0000000B 0x00000000
    R CLK 0x0000000B 0x00000000
    R SP 0x0000000B 0x00807E88
    R FP 0x0000000B 0x00807E88
    R A0 0x0000000B 0x00000000
    R A1 0x0000000B 0x00002A00
    R A2 0x0000000B 0x00000000
    R A3 0x0000000B 0x00000000
    R A4 0x0000000B 0x00000201
    R A5 0x0000000B 0x00809390
    R A6 0x0000000B 0x00000080
    R A7 0x0000000B 0x008091E0
    R A8 0x0000000B 0x00807E98
    R A9 0x0000000B 0x00000004
    R A10 0x0000000B 0x00000000
    R A11 0x0000000B 0x00000000
    R A12 0x0000000B 0x00000000
    R A13 0x0000000B 0x00000000
    R A14 0x0000000B 0x00000000
    R A15 0x0000000B 0x00000000
    R A16 0x0000000B 0x00809258
    R A17 0x0000000B 0x00000000
    R A18 0x0000000B 0x00809214
    R A19 0x0000000B 0x00000040
    R A20 0x0000000B 0x4AC10019
    R A21 0x0000000B 0x606B0086
    R A22 0x0000000B 0x55698CA6
    R A23 0x0000000B 0x002C0206
    R A24 0x0000000B 0x1198F013
    R A25 0x0000000B 0xD02D2B5C
    R A26 0x0000000B 0x41380224
    R A27 0x0000000B 0x00218E93
    R A28 0x0000000B 0x181C7D48
    R A29 0x0000000B 0x30278203
    R A30 0x0000000B 0xC3A8134C
    R A31 0x0000000B 0x000017D0
    R B0 0x0000000B 0x00000000
    R B1 0x0000000B 0x00000004
    R B2 0x0000000B 0x0000000C
    R B3 0x0000000B 0x008544DC
    R B4 0x0000000B 0x00000000
    R B5 0x0000000B 0x00000088
    R B6 0x0000000B 0x00000002
    R B7 0x0000000B 0x00851194
    R B8 0x0000000B 0x00027100
    R B9 0x0000000B 0x000249F0
    R B10 0x0000000B 0x00000028
    R B11 0x0000000B 0x00000000
    R B12 0x0000000B 0x00000000
    R B13 0x0000000B 0x00000000
    R B14 0x0000000B 0x0087B2A0
    R B15 0x0000000B 0x00807E88
    R B16 0x0000000B 0x008567D0
    R B17 0x0000000B 0x00856774
    R B18 0x0000000B 0x00808188
    R B19 0x0000000B 0x0086A340
    R B20 0x0000000B 0x00030D40
    R B21 0x0000000B 0x00000002
    R B22 0x0000000B 0x00003840
    R B23 0x0000000B 0x00000004
    R B24 0x0000000B 0x0000000A
    R B25 0x0000000B 0xB6A24002
    R B26 0x0000000B 0x4B4D2234
    R B27 0x0000000B 0x8142B102
    R B28 0x0000000B 0xA2651300
    R B29 0x0000000B 0x40579390
    R B30 0x0000000B 0x00000001
    R B31 0x0000000B 0x0084BC20
    R ERP 0x0000000B 0x00000000
    R ARP 0x0000000B 0x00000000
    R DIER 0x0000000B 0x00000000
    R ETSR 0x0000000B 0x00000000

    ----------------------------------------------------------------------------------------------------------

    The map file and RTSC config file are attached.

    Thanks a lot!

    app.cfg
  • Here is the map file attachment.

  • It looks like a possible uninitialized variable.

    Note the code

    008544d0:   00001362            B.S2X         A0
    008544d4:   0200A35A            MVK.L2        0,B4
    008544d8:   01876162            ADDKPC.S2     $C$RL10 (PC+28 = 0x008544dc),B3,3
              $C$L15, $C$RL10:
    008544dc:   01BD12E6            LDW.D2T2      *++B15[8],B3

    It attempts to branch to A0 - That occures at 0x008544DC (and thus why you have that location in B3.)  If you look before this you see that that A0 is loaded from A4 address - The A4 pointer has already been overwritten at that point.

    I'd suggest putting a breakpoint at 0x008544BA (where A0 is loaded from A4 address) and grab what the A4 address is at this point.

    Also, what is particular routine?  When you compiled the code did you receive any warnings for uninitialized variables?

    Best Regards,

    Chad

  • I just took at look at your .map file.  Your stack pointer is pointing to the .far memory allocation instead of .stack.

    This is strange.  Besides the request above, can you also load up the code and only go to main, and provide the value of the stack pointer (B15)?

    Best Regards,

    Chad

  • When put a break point at 0x008544BA, the A4 is point to 0x00879010: (stack pointer is: 0x00807E88)

    0x00878FB0  00000000 00030000 00000FA0 00000000 00030000 00000000 00000000 00000000
    0x00878FD0 ti_sysbios_knl_Swi_Object__table__V
    0x00878FD0  00878FD0 00878FD0 00858640 00000000
    0x00878FE0  00000000 0000000F 00008000 00000000 00000000 00000000 00878CE8 00000000
    0x00879000 fiuContext
    0x00879000  00000000 00000000 00000000 0084BC20
    0x00879010  00000000 0084C640 0084C644
    0x0087901C fmContext
    0x0087901C  00000000 0084BC20 00000000
    0x00879028 iobuf
    0x00879028  0C000000 11800000

    --------------------------------------------------------------------------------------------------------------------------------

    When just get into main(), the stack pointer (B15) is: 0x00875270

    When goes into the Task, the stakc pointer (B15) is: 0x00808050

    ---------------------------------------------------------------------------------------------------------------------------------

    There is no warning of variable not initialed during build.

    But there are some strange warnings:

    warning #77-D: argument to macro is empty

    Where point to empty line inside the source file.

    ----------------------------------------------------------------------------------------------------------------------------------

    **** Build of configuration Debug for project testh ****

    "C:\\Program Files\\Texas Instruments\\ccsv5\\utils\\bin\\gmake" -k all
    'Building file: ../app.cfg'
    'Invoking: XDCtools'
    "C:/Program Files/Texas Instruments/xdctools_3_25_00_48/xs" --xdcpath="C:/Program Files/Texas Instruments/bios_6_35_01_29/packages;C:/Program Files/Texas Instruments/xdais_7_23_00_06/packages;C:/Program Files/Texas Instruments/xdais_7_23_00_06/examples;C:/Program Files/Texas Instruments/faxlib_C66_2_0_1_2/packages;C:/Program Files/Texas Instruments/ccsv5/ccs_base;C:/Works/workspace/testh;" xdc.tools.configuro -o configPkg -t ti.targets.elf.C66 -p ti.platforms.evm6657 -r debug -b "C:/Works/workspace/testh/evm6657/config.bld" -c "C:/Program Files/Texas Instruments/ccsv5/tools/compiler/c6000_7.4.4" --compileOptions "-g --optimize_with_debug" "../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 ...
    cygwin warning:
      MS-DOS style path detected: C:/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      Preferred POSIX equivalent is: /cygdrive/c/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      CYGWIN environment variable option "nodosfilewarning" turns off this warning.
      Consult the user's guide for more details about POSIX paths:
        http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
    making C:/Works/workspace/testh/src/sysbios.ae66 ...
    cygwin warning:
      MS-DOS style path detected: C:/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      Preferred POSIX equivalent is: /cygdrive/c/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      CYGWIN environment variable option "nodosfilewarning" turns off this warning.
      Consult the user's guide for more details about POSIX paths:
        http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
    cygwin warning:
      MS-DOS style path detected: C:/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      Preferred POSIX equivalent is: /cygdrive/c/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      CYGWIN environment variable option "nodosfilewarning" turns off this warning.
      Consult the user's guide for more details about POSIX paths:
        http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
    cle66 C:/PROGRA~1/TEXASI~1/bios_6_35_01_29/packages/ti/sysbios/BIOS.c ...
    cygwin warning:
      MS-DOS style path detected: C:/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      Preferred POSIX equivalent is: /cygdrive/c/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      CYGWIN environment variable option "nodosfilewarning" turns off this warning.
      Consult the user's guide for more details about POSIX paths:
        http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
    cygwin warning:
      MS-DOS style path detected: C:/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      Preferred POSIX equivalent is: /cygdrive/c/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      CYGWIN environment variable option "nodosfilewarning" turns off this warning.
      Consult the user's guide for more details about POSIX paths:
        http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
    cygwin warning:
      MS-DOS style path detected: C:/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      Preferred POSIX equivalent is: /cygdrive/c/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      CYGWIN environment variable option "nodosfilewarning" turns off this warning.
      Consult the user's guide for more details about POSIX paths:
        http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
    asme66 C:/PROGRA~1/TEXASI~1/bios_6_35_01_29/packages/ti/sysbios/family/c64p/Hwi_disp_always.s64P ...
    cygwin warning:
      MS-DOS style path detected: C:/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      Preferred POSIX equivalent is: /cygdrive/c/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      CYGWIN environment variable option "nodosfilewarning" turns off this warning.
      Consult the user's guide for more details about POSIX paths:
        http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
    cygwin warning:
      MS-DOS style path detected: C:/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      Preferred POSIX equivalent is: /cygdrive/c/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      CYGWIN environment variable option "nodosfilewarning" turns off this warning.
      Consult the user's guide for more details about POSIX paths:
        http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
    cygwin warning:
      MS-DOS style path detected: C:/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      Preferred POSIX equivalent is: /cygdrive/c/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      CYGWIN environment variable option "nodosfilewarning" turns off this warning.
      Consult the user's guide for more details about POSIX paths:
        http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
    asme66 C:/PROGRA~1/TEXASI~1/bios_6_35_01_29/packages/ti/sysbios/family/c64p/Hwi_asm.s62 ...
    cygwin warning:
      MS-DOS style path detected: C:/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      Preferred POSIX equivalent is: /cygdrive/c/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      CYGWIN environment variable option "nodosfilewarning" turns off this warning.
      Consult the user's guide for more details about POSIX paths:
        http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
    cygwin warning:
      MS-DOS style path detected: C:/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      Preferred POSIX equivalent is: /cygdrive/c/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      CYGWIN environment variable option "nodosfilewarning" turns off this warning.
      Consult the user's guide for more details about POSIX paths:
        http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
    cygwin warning:
      MS-DOS style path detected: C:/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      Preferred POSIX equivalent is: /cygdrive/c/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      CYGWIN environment variable option "nodosfilewarning" turns off this warning.
      Consult the user's guide for more details about POSIX paths:
        http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
    asme66 C:/PROGRA~1/TEXASI~1/bios_6_35_01_29/packages/ti/sysbios/family/c64p/Hwi_asm_switch.s62 ...
    cygwin warning:
      MS-DOS style path detected: C:/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      Preferred POSIX equivalent is: /cygdrive/c/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      CYGWIN environment variable option "nodosfilewarning" turns off this warning.
      Consult the user's guide for more details about POSIX paths:
        http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
    cygwin warning:
      MS-DOS style path detected: C:/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      Preferred POSIX equivalent is: /cygdrive/c/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      CYGWIN environment variable option "nodosfilewarning" turns off this warning.
      Consult the user's guide for more details about POSIX paths:
        http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
    cygwin warning:
      MS-DOS style path detected: C:/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      Preferred POSIX equivalent is: /cygdrive/c/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      CYGWIN environment variable option "nodosfilewarning" turns off this warning.
      Consult the user's guide for more details about POSIX paths:
        http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
    asme66 C:/PROGRA~1/TEXASI~1/bios_6_35_01_29/packages/ti/sysbios/family/c64p/Clobber_asm.s62 ...
    cygwin warning:
      MS-DOS style path detected: C:/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      Preferred POSIX equivalent is: /cygdrive/c/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      CYGWIN environment variable option "nodosfilewarning" turns off this warning.
      Consult the user's guide for more details about POSIX paths:
        http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
    cygwin warning:
      MS-DOS style path detected: C:/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      Preferred POSIX equivalent is: /cygdrive/c/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      CYGWIN environment variable option "nodosfilewarning" turns off this warning.
      Consult the user's guide for more details about POSIX paths:
        http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
    cygwin warning:
      MS-DOS style path detected: C:/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      Preferred POSIX equivalent is: /cygdrive/c/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      CYGWIN environment variable option "nodosfilewarning" turns off this warning.
      Consult the user's guide for more details about POSIX paths:
        http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
    asme66 C:/PROGRA~1/TEXASI~1/bios_6_35_01_29/packages/ti/sysbios/family/c64p/Exception_asm.s64P ...
    cygwin warning:
      MS-DOS style path detected: C:/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      Preferred POSIX equivalent is: /cygdrive/c/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      CYGWIN environment variable option "nodosfilewarning" turns off this warning.
      Consult the user's guide for more details about POSIX paths:
        http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
    cygwin warning:
      MS-DOS style path detected: C:/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      Preferred POSIX equivalent is: /cygdrive/c/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      CYGWIN environment variable option "nodosfilewarning" turns off this warning.
      Consult the user's guide for more details about POSIX paths:
        http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
    cygwin warning:
      MS-DOS style path detected: C:/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      Preferred POSIX equivalent is: /cygdrive/c/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      CYGWIN environment variable option "nodosfilewarning" turns off this warning.
      Consult the user's guide for more details about POSIX paths:
        http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
    asme66 C:/PROGRA~1/TEXASI~1/bios_6_35_01_29/packages/ti/sysbios/family/c64p/MemoryProtect_asm.s64P ...
    cygwin warning:
      MS-DOS style path detected: C:/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      Preferred POSIX equivalent is: /cygdrive/c/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      CYGWIN environment variable option "nodosfilewarning" turns off this warning.
      Consult the user's guide for more details about POSIX paths:
        http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
    cygwin warning:
      MS-DOS style path detected: C:/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      Preferred POSIX equivalent is: /cygdrive/c/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      CYGWIN environment variable option "nodosfilewarning" turns off this warning.
      Consult the user's guide for more details about POSIX paths:
        http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
    cygwin warning:
      MS-DOS style path detected: C:/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      Preferred POSIX equivalent is: /cygdrive/c/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      CYGWIN environment variable option "nodosfilewarning" turns off this warning.
      Consult the user's guide for more details about POSIX paths:
        http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
    asme66 C:/PROGRA~1/TEXASI~1/bios_6_35_01_29/packages/ti/sysbios/family/c62/TaskSupport_asm.s62 ...
    cygwin warning:
      MS-DOS style path detected: C:/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      Preferred POSIX equivalent is: /cygdrive/c/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      CYGWIN environment variable option "nodosfilewarning" turns off this warning.
      Consult the user's guide for more details about POSIX paths:
        http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
    cygwin warning:
      MS-DOS style path detected: C:/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      Preferred POSIX equivalent is: /cygdrive/c/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      CYGWIN environment variable option "nodosfilewarning" turns off this warning.
      Consult the user's guide for more details about POSIX paths:
        http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
    cygwin warning:
      MS-DOS style path detected: C:/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      Preferred POSIX equivalent is: /cygdrive/c/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      CYGWIN environment variable option "nodosfilewarning" turns off this warning.
    asme66 C:/PROGRA~1/TEXASI~1/bios_6_35_01_29/packages/ti/sysbios/timers/timer64/Timer_asm.s64P ...
      Consult the user's guide for more details about POSIX paths:
        http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
    cygwin warning:
      MS-DOS style path detected: C:/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      Preferred POSIX equivalent is: /cygdrive/c/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      CYGWIN environment variable option "nodosfilewarning" turns off this warning.
      Consult the user's guide for more details about POSIX paths:
        http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
    cygwin warning:
      MS-DOS style path detected: C:/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      Preferred POSIX equivalent is: /cygdrive/c/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      CYGWIN environment variable option "nodosfilewarning" turns off this warning.
      Consult the user's guide for more details about POSIX paths:
        http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
    cygwin warning:
      MS-DOS style path detected: C:/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      Preferred POSIX equivalent is: /cygdrive/c/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      CYGWIN environment variable option "nodosfilewarning" turns off this warning.
      Consult the user's guide for more details about POSIX paths:
        http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
    asme66 C:/PROGRA~1/TEXASI~1/bios_6_35_01_29/packages/ti/sysbios/timers/dmtimer/Timer_asm.s64P ...
    cygwin warning:
      MS-DOS style path detected: C:/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      Preferred POSIX equivalent is: /cygdrive/c/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      CYGWIN environment variable option "nodosfilewarning" turns off this warning.
      Consult the user's guide for more details about POSIX paths:
        http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
    cygwin warning:
      MS-DOS style path detected: C:/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      Preferred POSIX equivalent is: /cygdrive/c/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      CYGWIN environment variable option "nodosfilewarning" turns off this warning.
      Consult the user's guide for more details about POSIX paths:
        http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
    cygwin warning:
      MS-DOS style path detected: C:/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      Preferred POSIX equivalent is: /cygdrive/c/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      CYGWIN environment variable option "nodosfilewarning" turns off this warning.
      Consult the user's guide for more details about POSIX paths:
        http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
    asme66 C:/PROGRA~1/TEXASI~1/bios_6_35_01_29/packages/ti/sysbios/../sk/sk_cwrap.asm ...
    cygwin warning:
      MS-DOS style path detected: C:/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      Preferred POSIX equivalent is: /cygdrive/c/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      CYGWIN environment variable option "nodosfilewarning" turns off this warning.
      Consult the user's guide for more details about POSIX paths:
        http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
    cygwin warning:
      MS-DOS style path detected: C:/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      Preferred POSIX equivalent is: /cygdrive/c/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      CYGWIN environment variable option "nodosfilewarning" turns off this warning.
      Consult the user's guide for more details about POSIX paths:
        http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
    cygwin warning:
      MS-DOS style path detected: C:/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      Preferred POSIX equivalent is: /cygdrive/c/PROGRA~1/TEXASI~1/xdctools_3_25_00_48/bin/pwd
      CYGWIN environment variable option "nodosfilewarning" turns off this warning.
      Consult the user's guide for more details about POSIX paths:
        http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
    are66 BIOS.obj c64p_Hwi_disp_always.obj c64p_Hwi_asm.obj c64p_Hwi_asm_switch.obj c64p_Clobber_asm.obj c64p_Exception_asm.obj c64p_MemoryProtect_asm.obj c62_TaskSupport_asm.obj timer64_Timer_asm.obj dmtimer_Timer_asm.obj sk_sk_cwrap.obj ...
    Build of libraries done.
    cle66 package/cfg/app_pe66.c ...
    'Finished building: ../app.cfg'
    ' '
            1 file(s) copied.
    making ../src/sysbios.ae66 ...
    gmake[1]: Nothing to be done for `all'.
    'Building file: ../faxsim.c'
    'Invoking: C6000 Compiler'
    "C:/Program Files/Texas Instruments/ccsv5/tools/compiler/c6000_7.4.4/bin/cl6x" -mv6600 --abi=eabi -g --include_path="C:/Program Files/Texas Instruments/ccsv5/tools/compiler/c6000_7.4.4/include" --define=ti_targets_elf_C66 --display_error_number --diag_warning=225 --diag_wrap=off --preproc_with_compile --preproc_dependency="faxsim.pp" --cmd_file="./configPkg/compiler.opt"  "../faxsim.c"
    "C:/PROGRA~1/TEXASI~1/faxlib_C66_2_0_1_2/packages/ti/mas/util/src/c64/utilNumPort.h", line 89: warning #77-D: argument to macro is empty
    "C:/PROGRA~1/TEXASI~1/faxlib_C66_2_0_1_2/packages/ti/mas/util/src/c64/utilNumPort.h", line 89: warning #77-D: argument to macro is empty
    "C:/PROGRA~1/TEXASI~1/faxlib_C66_2_0_1_2/packages/ti/mas/util/src/c64/utilNumPort.h", line 89: warning #77-D: argument to macro is empty
    "C:/PROGRA~1/TEXASI~1/faxlib_C66_2_0_1_2/packages/ti/mas/util/src/c64/utilNumPort.h", line 89: warning #77-D: argument to macro is empty
    "C:/PROGRA~1/TEXASI~1/faxlib_C66_2_0_1_2/packages/ti/mas/util/src/c64/utilNumPort.h", line 171: warning #77-D: argument to macro is empty
    "C:/PROGRA~1/TEXASI~1/faxlib_C66_2_0_1_2/packages/ti/mas/util/src/c64/utilNumPort.h", line 171: warning #77-D: argument to macro is empty
    "C:/PROGRA~1/TEXASI~1/faxlib_C66_2_0_1_2/packages/ti/mas/util/utl.h", line 402: warning #77-D: argument to macro is empty
    "C:/PROGRA~1/TEXASI~1/faxlib_C66_2_0_1_2/packages/ti/mas/util/utl.h", line 402: warning #77-D: argument to macro is empty
    "C:/PROGRA~1/TEXASI~1/faxlib_C66_2_0_1_2/packages/ti/mas/util/utl.h", line 402: warning #77-D: argument to macro is empty
    "C:/PROGRA~1/TEXASI~1/faxlib_C66_2_0_1_2/packages/ti/mas/util/utl.h", line 402: warning #77-D: argument to macro is empty
    'Finished building: ../faxsim.c'
    ' '
    'Building file: ../fiuDebugTraceParser.c'
    'Invoking: C6000 Compiler'
    "C:/Program Files/Texas Instruments/ccsv5/tools/compiler/c6000_7.4.4/bin/cl6x" -mv6600 --abi=eabi -g --include_path="C:/Program Files/Texas Instruments/ccsv5/tools/compiler/c6000_7.4.4/include" --define=ti_targets_elf_C66 --display_error_number --diag_warning=225 --diag_wrap=off --preproc_with_compile --preproc_dependency="fiuDebugTraceParser.pp" --cmd_file="./configPkg/compiler.opt"  "../fiuDebugTraceParser.c"
    "C:/PROGRA~1/TEXASI~1/faxlib_C66_2_0_1_2/packages/ti/mas/util/src/c64/utilNumPort.h", line 89: warning #77-D: argument to macro is empty
    "C:/PROGRA~1/TEXASI~1/faxlib_C66_2_0_1_2/packages/ti/mas/util/src/c64/utilNumPort.h", line 89: warning #77-D: argument to macro is empty
    "C:/PROGRA~1/TEXASI~1/faxlib_C66_2_0_1_2/packages/ti/mas/util/src/c64/utilNumPort.h", line 89: warning #77-D: argument to macro is empty
    "C:/PROGRA~1/TEXASI~1/faxlib_C66_2_0_1_2/packages/ti/mas/util/src/c64/utilNumPort.h", line 89: warning #77-D: argument to macro is empty
    "C:/PROGRA~1/TEXASI~1/faxlib_C66_2_0_1_2/packages/ti/mas/util/src/c64/utilNumPort.h", line 171: warning #77-D: argument to macro is empty
    "C:/PROGRA~1/TEXASI~1/faxlib_C66_2_0_1_2/packages/ti/mas/util/src/c64/utilNumPort.h", line 171: warning #77-D: argument to macro is empty
    "C:/PROGRA~1/TEXASI~1/faxlib_C66_2_0_1_2/packages/ti/mas/util/utl.h", line 402: warning #77-D: argument to macro is empty
    "C:/PROGRA~1/TEXASI~1/faxlib_C66_2_0_1_2/packages/ti/mas/util/utl.h", line 402: warning #77-D: argument to macro is empty
    "C:/PROGRA~1/TEXASI~1/faxlib_C66_2_0_1_2/packages/ti/mas/util/utl.h", line 402: warning #77-D: argument to macro is empty
    "C:/PROGRA~1/TEXASI~1/faxlib_C66_2_0_1_2/packages/ti/mas/util/utl.h", line 402: warning #77-D: argument to macro is empty
    'Finished building: ../fiuDebugTraceParser.c'
    ' '
    'Building file: ../fmDebugTraceParser.c'
    'Invoking: C6000 Compiler'
    "C:/Program Files/Texas Instruments/ccsv5/tools/compiler/c6000_7.4.4/bin/cl6x" -mv6600 --abi=eabi -g --include_path="C:/Program Files/Texas Instruments/ccsv5/tools/compiler/c6000_7.4.4/include" --define=ti_targets_elf_C66 --display_error_number --diag_warning=225 --diag_wrap=off --preproc_with_compile --preproc_dependency="fmDebugTraceParser.pp" --cmd_file="./configPkg/compiler.opt"  "../fmDebugTraceParser.c"
    'Finished building: ../fmDebugTraceParser.c'
    ' '
    'Building file: ../main.c'
    'Invoking: C6000 Compiler'
    "C:/Program Files/Texas Instruments/ccsv5/tools/compiler/c6000_7.4.4/bin/cl6x" -mv6600 --abi=eabi -g --include_path="C:/Program Files/Texas Instruments/ccsv5/tools/compiler/c6000_7.4.4/include" --define=ti_targets_elf_C66 --display_error_number --diag_warning=225 --diag_wrap=off --preproc_with_compile --preproc_dependency="main.pp" --cmd_file="./configPkg/compiler.opt"  "../main.c"
    'Finished building: ../main.c'
    ' '
    'Building file: ../evm6657/package/package_evm6657.c'
    'Invoking: C6000 Compiler'
    "C:/Program Files/Texas Instruments/ccsv5/tools/compiler/c6000_7.4.4/bin/cl6x" -mv6600 --abi=eabi -g --include_path="C:/Program Files/Texas Instruments/ccsv5/tools/compiler/c6000_7.4.4/include" --define=ti_targets_elf_C66 --display_error_number --diag_warning=225 --diag_wrap=off --preproc_with_compile --preproc_dependency="evm6657/package/package_evm6657.pp" --obj_directory="evm6657/package" --cmd_file="./configPkg/compiler.opt"  "../evm6657/package/package_evm6657.c"
    'Finished building: ../evm6657/package/package_evm6657.c'
    ' '
    'Building target: testh.out'
    'Invoking: C6000 Linker'
    "C:/Program Files/Texas Instruments/ccsv5/tools/compiler/c6000_7.4.4/bin/cl6x" -mv6600 --abi=eabi -g --define=ti_targets_elf_C66 --display_error_number --diag_warning=225 --diag_wrap=off -z -m"testh.map" -i"C:/Program Files/Texas Instruments/ccsv5/tools/compiler/c6000_7.4.4/lib" -i"C:/Program Files/Texas Instruments/ccsv5/tools/compiler/c6000_7.4.4/include" --reread_libs --warn_sections --display_error_number --diag_wrap=off --xml_link_info="testh_linkInfo.xml" --rom_model -o "testh.out" -l"./configPkg/linker.cmd"  "./evm6657/package/package_evm6657.obj" "./main.obj" "./fmDebugTraceParser.obj" "./fiuDebugTraceParser.obj" "./faxsim.obj" -l"libc.a"
    <Linking>
    warning #10247-D: creating output section "dpuc1RelocatableTables" without a SECTIONS specification
    warning #10247-D: creating output section "dputrecRelocatableTable" without a SECTIONS specification
    warning #10247-D: creating output section "dpuv17RelocatableTables" without a SECTIONS specification
    warning #10247-D: creating output section "dpuv27RelocatableTables" without a SECTIONS specification
    warning #10247-D: creating output section "dpuv29RelocatableTables" without a SECTIONS specification
    'Finished building target: testh.out'
    ' '

    **** Build Finished ****

    ------------------------------------------------------------------------------------------------------------------------------------------------

    Attachment are the whole zip of the projects, the purpose is run the loop back test for TI's faxlib.

    The project testfax runs no problem without SYS/BIOS.

    The project testh runs the same test as a SYS/BIOS task, the exception occurs inside the faxlib binary.

    test.zip
  • I'm not sure if BIOS relocates the stack to .far memory or not.  I'm not a BIOS expert.  I'm going to ask a colleague to look at and comment on this further.

    Best Regards,

    Chad

  • Hi Chad,

    I found the problem.

    It is be cause one call back function was assigned to NULL by mistake.

    The version without SYS/BIOS somehow can give the correct output but slower.

    Thank you very much.

    Ying

  • I'm glad to hear that it's resolved.

    Best Regards,

    Chad