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.

INTERNAL ERROR

Other Parts Discussed in Thread: MSP430F5638

7824.enc28j60.pp.rar
Hi all,

I got this error when build my project:

**** Build of configuration Debug for project uip_test_msp430f5638 ****

"c:\\ti\\ccsv6\\utils\\bin\\gmake" -k all

'Building file: ../ethernet/enc28j60.c'

'Invoking: MSP430 Compiler'

"c:/ti/ccsv6/tools/compiler/msp430_4.3.4/bin/cl430" -vmspx --abi=eabi --data_model=restricted --include_path="c:/ti/ccsv6/ccs_base/msp430/include" --include_path="C:/Users/Tra Quang Kieu/workspace_v6_0/uip_test_msp430f5638/uip/uip" --include_path="C:/Users/Tra Quang Kieu/workspace_v6_0/uip_test_msp430f5638/ethernet" --include_path="C:/Users/Tra Quang Kieu/workspace_v6_0/uip_test_msp430f5638" --include_path="C:/Users/Tra Quang Kieu/workspace_v6_0/uip_test_msp430f5638/uip/apps/dhcpc" --include_path="c:/ti/ccsv6/tools/compiler/msp430_4.3.4/include" --include_path="C:/Users/Tra Quang Kieu/workspace_v6_0/uip_test_msp430f5638/MSP430F5xx_6xx" --advice:power="all" -g --define=__MSP430F5638__ --diag_warning=225 --display_error_number --diag_wrap=off --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU40 --printf_support=full --preproc_with_compile --preproc_dependency="ethernet/enc28j60.pp" --obj_directory="ethernet" "../ethernet/enc28j60.c"

"../ethernet/enc28j60.c", line 117: remark #1528-D: (ULP 3.1) Detected flag polling using MISTAT_BUSY. Recommend using an interrupt combined with enter LPMx and ISR

INTERNAL ERROR: c:\ti\ccsv6\tools\compiler\msp430_4.3.4\bin\acpia430.exe experienced a segmentation fault

while processing function (unknown or file scope) file ../ethernet/enc28j60.c line 120

This is caused by a defect in the compiler itself. TI Customer

Support may be able to suggest a workaround to avoid this.

Upgrading to the newest version of the compiler may fix this problem.

 

>> Compilation failure

Contact TI in the E2E support forums at http://e2e.ti.com under

"Development Tools", "TI C/C++ Compiler". See the link titled

"Submitting an issue". Include this ENTIRE error message and a

copy of the .pp file created when option --preproc_with_comment

(-ppc) is used.

gmake: *** [ethernet/enc28j60.obj] Error 1

gmake: Target `all' not remade because of errors.

**** Build Finished ****

My project is written in c language. MSP430 compiler version: TI v4.3.4

Can anyone help me.

Thanks.

  • Thank you for sending in a .pp file.  Unfortunately, you sent the wrong one.  By default CCS creates some .pp files that are used, under the covers, during the build.  These .pp files appear not in the project directory, but in a sub-directory named after the current build configuration (usually Debug, but it can be anything).  When you use the option --preproc_with_comment as described here, the .pp file appears in the same directory as the corresponding source file (usually the project directory).

    Another way to check is to inspect the .pp file you intend to send.  You should not see something like this ...

    hello.obj: ../hello.c
    hello.obj: C:/ti_ccs60/ccsv6/tools/compiler/arm_5.1.6/include/stdint.h
    
    ../hello.c: 
    C:/ti_ccs60/ccsv6/tools/compiler/arm_5.1.6/include/stdint.h: 

    Instead, you should see something that is obviously C code, but has no lines that start with #.

    Thanks and regards,

    -George

  • Thank for your reply, George.

    For some reasons, I can't send all .pp files in my project to you. I only attached one file that compiler stuck in.

    4061.enc28j60.pp.zip

    I've used IAR EW instead and it worked fine. IAR EW is not easy to use, but it's worked, that all I need. I hope this issue is resolved in short time.

    My English was not good, so please tell me if you see the mistake :D

    Best Regards.

    Kieu

  • Briefly, it's crashing because --advice:power=all expects intrinsic __delay_cycles to have an integer constant argument, and you're passing it an expression.  It's not legal to pass an expression to __delay_cycles, but it is still a bug that it crashed the compiler.  I've submitted SDSCM00050893 to track this issue.

    [ Edit: apparently __delay_cycles does require an integer constant argument -- Archaeologist ]

  • Thank you Archaeologist,

    In previous MSP430 compiler (I don't remember the version) it has a warning about argument of __delay_cycles function. IAR EW has the same warning too, so I replace it with soft delay. This is my fault, I did not check it carefully.

    Thanks and regards,

    Kieu