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.

Using math.h NAN builds clean, but causes diagnostic in Problems view

Other Parts Discussed in Thread: MSP430F5438A

I included <math.h>.
I changed the C Dialect option to Compile program in C99 mode. But I am getting a compile error Symbol NAN could not be resolved.
When I use ANSI C89 mode, I get a compile error Symbol '__NAN__' could not be resolved.
  • Hmm... MSP430 16.9.6.LTS does support the NAN macro in math.h, and does support the --c99 command-line option, so I'm not sure what could be the problem here. Are you absolutely sure you've included math.h in every file that uses the macro NAN? Please rebuild your project and post your complete build console window here.
  • It's weird. I am only using it in 1 file. I am not seeing any error indicator in the build console. But I am seeing an errorin the Problems window and a multiple marker at the line of code where I used NAN.

    **** Build of configuration Debug for project 259x_firmware ****

    "C:\\ti\\ccsv7\\utils\\bin\\gmake" -k -j 2 all -O
    'Building file: ../ASICport_driver.c'
    'Invoking: MSP430 Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/bin/cl430" -vmspx --data_model=restricted -Ooff --use_hw_mpy=F5 --include_path="C:/ti/ccsv7/ccs_base/msp430/include" --include_path="C:/Jeffrey/projects/Sandworm/Software/259x" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/include" --define=__MSP430F5438A__ -g --c99 --printf_support=minimal --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --preproc_with_compile --preproc_dependency="ASICport_driver.d" "../ASICport_driver.c"
    'Finished building: ../ASICport_driver.c'
    ' '
    'Building file: ../USB_serial_driver.c'
    'Invoking: MSP430 Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/bin/cl430" -vmspx --data_model=restricted -Ooff --use_hw_mpy=F5 --include_path="C:/ti/ccsv7/ccs_base/msp430/include" --include_path="C:/Jeffrey/projects/Sandworm/Software/259x" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/include" --define=__MSP430F5438A__ -g --c99 --printf_support=minimal --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --preproc_with_compile --preproc_dependency="USB_serial_driver.d" "../USB_serial_driver.c"
    'Finished building: ../USB_serial_driver.c'
    ' '
    'Building file: ../adc.c'
    'Invoking: MSP430 Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/bin/cl430" -vmspx --data_model=restricted -Ooff --use_hw_mpy=F5 --include_path="C:/ti/ccsv7/ccs_base/msp430/include" --include_path="C:/Jeffrey/projects/Sandworm/Software/259x" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/include" --define=__MSP430F5438A__ -g --c99 --printf_support=minimal --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --preproc_with_compile --preproc_dependency="adc.d" "../adc.c"
    'Finished building: ../adc.c'
    ' '
    'Building file: ../background.c'
    'Invoking: MSP430 Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/bin/cl430" -vmspx --data_model=restricted -Ooff --use_hw_mpy=F5 --include_path="C:/ti/ccsv7/ccs_base/msp430/include" --include_path="C:/Jeffrey/projects/Sandworm/Software/259x" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/include" --define=__MSP430F5438A__ -g --c99 --printf_support=minimal --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --preproc_with_compile --preproc_dependency="background.d" "../background.c"
    'Finished building: ../background.c'
    ' '
    'Building file: ../board.c'
    'Invoking: MSP430 Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/bin/cl430" -vmspx --data_model=restricted -Ooff --use_hw_mpy=F5 --include_path="C:/ti/ccsv7/ccs_base/msp430/include" --include_path="C:/Jeffrey/projects/Sandworm/Software/259x" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/include" --define=__MSP430F5438A__ -g --c99 --printf_support=minimal --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --preproc_with_compile --preproc_dependency="board.d" "../board.c"
    'Finished building: ../board.c'
    ' '
    'Building file: ../cal_user.c'
    'Invoking: MSP430 Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/bin/cl430" -vmspx --data_model=restricted -Ooff --use_hw_mpy=F5 --include_path="C:/ti/ccsv7/ccs_base/msp430/include" --include_path="C:/Jeffrey/projects/Sandworm/Software/259x" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/include" --define=__MSP430F5438A__ -g --c99 --printf_support=minimal --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --preproc_with_compile --preproc_dependency="cal_user.d" "../cal_user.c"
    'Finished building: ../cal_user.c'
    ' '
    'Building file: ../build_s3l_message.c'
    'Invoking: MSP430 Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/bin/cl430" -vmspx --data_model=restricted -Ooff --use_hw_mpy=F5 --include_path="C:/ti/ccsv7/ccs_base/msp430/include" --include_path="C:/Jeffrey/projects/Sandworm/Software/259x" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/include" --define=__MSP430F5438A__ -g --c99 --printf_support=minimal --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --preproc_with_compile --preproc_dependency="build_s3l_message.d" "../build_s3l_message.c"
    'Finished building: ../build_s3l_message.c'
    ' '
    'Building file: ../checksum.c'
    'Invoking: MSP430 Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/bin/cl430" -vmspx --data_model=restricted -Ooff --use_hw_mpy=F5 --include_path="C:/ti/ccsv7/ccs_base/msp430/include" --include_path="C:/Jeffrey/projects/Sandworm/Software/259x" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/include" --define=__MSP430F5438A__ -g --c99 --printf_support=minimal --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --preproc_with_compile --preproc_dependency="checksum.d" "../checksum.c"
    'Finished building: ../checksum.c'
    ' '
    'Building file: ../crc_16.c'
    'Invoking: MSP430 Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/bin/cl430" -vmspx --data_model=restricted -Ooff --use_hw_mpy=F5 --include_path="C:/ti/ccsv7/ccs_base/msp430/include" --include_path="C:/Jeffrey/projects/Sandworm/Software/259x" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/include" --define=__MSP430F5438A__ -g --c99 --printf_support=minimal --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --preproc_with_compile --preproc_dependency="crc_16.d" "../crc_16.c"
    'Finished building: ../crc_16.c'
    ' '
    'Building file: ../convert.c'
    'Invoking: MSP430 Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/bin/cl430" -vmspx --data_model=restricted -Ooff --use_hw_mpy=F5 --include_path="C:/ti/ccsv7/ccs_base/msp430/include" --include_path="C:/Jeffrey/projects/Sandworm/Software/259x" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/include" --define=__MSP430F5438A__ -g --c99 --printf_support=minimal --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --preproc_with_compile --preproc_dependency="convert.d" "../convert.c"
    'Finished building: ../convert.c'
    ' '
    'Building file: ../dbl_to_flt.c'
    'Invoking: MSP430 Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/bin/cl430" -vmspx --data_model=restricted -Ooff --use_hw_mpy=F5 --include_path="C:/ti/ccsv7/ccs_base/msp430/include" --include_path="C:/Jeffrey/projects/Sandworm/Software/259x" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/include" --define=__MSP430F5438A__ -g --c99 --printf_support=minimal --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --preproc_with_compile --preproc_dependency="dbl_to_flt.d" "../dbl_to_flt.c"
    'Finished building: ../dbl_to_flt.c'
    ' '
    'Building file: ../database.c'
    'Invoking: MSP430 Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/bin/cl430" -vmspx --data_model=restricted -Ooff --use_hw_mpy=F5 --include_path="C:/ti/ccsv7/ccs_base/msp430/include" --include_path="C:/Jeffrey/projects/Sandworm/Software/259x" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/include" --define=__MSP430F5438A__ -g --c99 --printf_support=minimal --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --preproc_with_compile --preproc_dependency="database.d" "../database.c"
    'Finished building: ../database.c'
    ' '
    'Building file: ../debug.c'
    'Invoking: MSP430 Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/bin/cl430" -vmspx --data_model=restricted -Ooff --use_hw_mpy=F5 --include_path="C:/ti/ccsv7/ccs_base/msp430/include" --include_path="C:/Jeffrey/projects/Sandworm/Software/259x" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/include" --define=__MSP430F5438A__ -g --c99 --printf_support=minimal --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --preproc_with_compile --preproc_dependency="debug.d" "../debug.c"
    'Finished building: ../debug.c'
    ' '
    'Building file: ../delay.c'
    'Invoking: MSP430 Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/bin/cl430" -vmspx --data_model=restricted -Ooff --use_hw_mpy=F5 --include_path="C:/ti/ccsv7/ccs_base/msp430/include" --include_path="C:/Jeffrey/projects/Sandworm/Software/259x" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/include" --define=__MSP430F5438A__ -g --c99 --printf_support=minimal --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --preproc_with_compile --preproc_dependency="delay.d" "../delay.c"
    'Finished building: ../delay.c'
    ' '
    'Building file: ../event.c'
    'Invoking: MSP430 Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/bin/cl430" -vmspx --data_model=restricted -Ooff --use_hw_mpy=F5 --include_path="C:/ti/ccsv7/ccs_base/msp430/include" --include_path="C:/Jeffrey/projects/Sandworm/Software/259x" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/include" --define=__MSP430F5438A__ -g --c99 --printf_support=minimal --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --preproc_with_compile --preproc_dependency="event.d" "../event.c"
    'Finished building: ../event.c'
    ' '
    'Building file: ../fram.c'
    'Invoking: MSP430 Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/bin/cl430" -vmspx --data_model=restricted -Ooff --use_hw_mpy=F5 --include_path="C:/ti/ccsv7/ccs_base/msp430/include" --include_path="C:/Jeffrey/projects/Sandworm/Software/259x" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/include" --define=__MSP430F5438A__ -g --c99 --printf_support=minimal --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --preproc_with_compile --preproc_dependency="fram.d" "../fram.c"
    'Finished building: ../fram.c'
    ' '
    'Building file: ../frequency_output.c'
    'Invoking: MSP430 Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/bin/cl430" -vmspx --data_model=restricted -Ooff --use_hw_mpy=F5 --include_path="C:/ti/ccsv7/ccs_base/msp430/include" --include_path="C:/Jeffrey/projects/Sandworm/Software/259x" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/include" --define=__MSP430F5438A__ -g --c99 --printf_support=minimal --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --preproc_with_compile --preproc_dependency="frequency_output.d" "../frequency_output.c"
    'Finished building: ../frequency_output.c'
    ' '
    'Building file: ../init.c'
    'Invoking: MSP430 Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/bin/cl430" -vmspx --data_model=restricted -Ooff --use_hw_mpy=F5 --include_path="C:/ti/ccsv7/ccs_base/msp430/include" --include_path="C:/Jeffrey/projects/Sandworm/Software/259x" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/include" --define=__MSP430F5438A__ -g --c99 --printf_support=minimal --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --preproc_with_compile --preproc_dependency="init.d" "../init.c"
    'Finished building: ../init.c'
    ' '
    'Building file: ../keys.c'
    'Invoking: MSP430 Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/bin/cl430" -vmspx --data_model=restricted -Ooff --use_hw_mpy=F5 --include_path="C:/ti/ccsv7/ccs_base/msp430/include" --include_path="C:/Jeffrey/projects/Sandworm/Software/259x" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/include" --define=__MSP430F5438A__ -g --c99 --printf_support=minimal --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --preproc_with_compile --preproc_dependency="keys.d" "../keys.c"
    'Finished building: ../keys.c'
    ' '
    'Building file: ../flow.c'
    'Invoking: MSP430 Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/bin/cl430" -vmspx --data_model=restricted -Ooff --use_hw_mpy=F5 --include_path="C:/ti/ccsv7/ccs_base/msp430/include" --include_path="C:/Jeffrey/projects/Sandworm/Software/259x" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/include" --define=__MSP430F5438A__ -g --c99 --printf_support=minimal --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --preproc_with_compile --preproc_dependency="flow.d" "../flow.c"
    'Finished building: ../flow.c'
    ' '
    'Building file: ../led_rgb.c'
    'Invoking: MSP430 Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/bin/cl430" -vmspx --data_model=restricted -Ooff --use_hw_mpy=F5 --include_path="C:/ti/ccsv7/ccs_base/msp430/include" --include_path="C:/Jeffrey/projects/Sandworm/Software/259x" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/include" --define=__MSP430F5438A__ -g --c99 --printf_support=minimal --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --preproc_with_compile --preproc_dependency="led_rgb.d" "../led_rgb.c"
    'Finished building: ../led_rgb.c'
    ' '
    'Building file: ../led_bar_graph.c'
    'Invoking: MSP430 Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/bin/cl430" -vmspx --data_model=restricted -Ooff --use_hw_mpy=F5 --include_path="C:/ti/ccsv7/ccs_base/msp430/include" --include_path="C:/Jeffrey/projects/Sandworm/Software/259x" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/include" --define=__MSP430F5438A__ -g --c99 --printf_support=minimal --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --preproc_with_compile --preproc_dependency="led_bar_graph.d" "../led_bar_graph.c"
    'Finished building: ../led_bar_graph.c'
    ' '
    'Building file: ../main.c'
    'Invoking: MSP430 Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/bin/cl430" -vmspx --data_model=restricted -Ooff --use_hw_mpy=F5 --include_path="C:/ti/ccsv7/ccs_base/msp430/include" --include_path="C:/Jeffrey/projects/Sandworm/Software/259x" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/include" --define=__MSP430F5438A__ -g --c99 --printf_support=minimal --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --preproc_with_compile --preproc_dependency="main.d" "../main.c"
    'Finished building: ../main.c'
    ' '
    'Building file: ../loop_current.c'
    'Invoking: MSP430 Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/bin/cl430" -vmspx --data_model=restricted -Ooff --use_hw_mpy=F5 --include_path="C:/ti/ccsv7/ccs_base/msp430/include" --include_path="C:/Jeffrey/projects/Sandworm/Software/259x" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/include" --define=__MSP430F5438A__ -g --c99 --printf_support=minimal --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --preproc_with_compile --preproc_dependency="loop_current.d" "../loop_current.c"
    'Finished building: ../loop_current.c'
    ' '
    'Building file: ../manufmode.c'
    'Invoking: MSP430 Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/bin/cl430" -vmspx --data_model=restricted -Ooff --use_hw_mpy=F5 --include_path="C:/ti/ccsv7/ccs_base/msp430/include" --include_path="C:/Jeffrey/projects/Sandworm/Software/259x" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/include" --define=__MSP430F5438A__ -g --c99 --printf_support=minimal --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --preproc_with_compile --preproc_dependency="manufmode.d" "../manufmode.c"
    'Finished building: ../manufmode.c'
    ' '
    'Building file: ../math_util.c'
    'Invoking: MSP430 Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/bin/cl430" -vmspx --data_model=restricted -Ooff --use_hw_mpy=F5 --include_path="C:/ti/ccsv7/ccs_base/msp430/include" --include_path="C:/Jeffrey/projects/Sandworm/Software/259x" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/include" --define=__MSP430F5438A__ -g --c99 --printf_support=minimal --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --preproc_with_compile --preproc_dependency="math_util.d" "../math_util.c"
    'Finished building: ../math_util.c'
    ' '
    'Building file: ../message_parity.c'
    'Invoking: MSP430 Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/bin/cl430" -vmspx --data_model=restricted -Ooff --use_hw_mpy=F5 --include_path="C:/ti/ccsv7/ccs_base/msp430/include" --include_path="C:/Jeffrey/projects/Sandworm/Software/259x" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/include" --define=__MSP430F5438A__ -g --c99 --printf_support=minimal --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --preproc_with_compile --preproc_dependency="message_parity.d" "../message_parity.c"
    'Finished building: ../message_parity.c'
    ' '
    'Building file: ../misc.c'
    'Invoking: MSP430 Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/bin/cl430" -vmspx --data_model=restricted -Ooff --use_hw_mpy=F5 --include_path="C:/ti/ccsv7/ccs_base/msp430/include" --include_path="C:/Jeffrey/projects/Sandworm/Software/259x" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/include" --define=__MSP430F5438A__ -g --c99 --printf_support=minimal --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --preproc_with_compile --preproc_dependency="misc.d" "../misc.c"
    'Finished building: ../misc.c'
    ' '
    'Building file: ../os_timer.c'
    'Invoking: MSP430 Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/bin/cl430" -vmspx --data_model=restricted -Ooff --use_hw_mpy=F5 --include_path="C:/ti/ccsv7/ccs_base/msp430/include" --include_path="C:/Jeffrey/projects/Sandworm/Software/259x" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/include" --define=__MSP430F5438A__ -g --c99 --printf_support=minimal --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --preproc_with_compile --preproc_dependency="os_timer.d" "../os_timer.c"
    'Finished building: ../os_timer.c'
    ' '
    'Building file: ../nv_data.c'
    'Invoking: MSP430 Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/bin/cl430" -vmspx --data_model=restricted -Ooff --use_hw_mpy=F5 --include_path="C:/ti/ccsv7/ccs_base/msp430/include" --include_path="C:/Jeffrey/projects/Sandworm/Software/259x" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/include" --define=__MSP430F5438A__ -g --c99 --printf_support=minimal --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --preproc_with_compile --preproc_dependency="nv_data.d" "../nv_data.c"
    'Finished building: ../nv_data.c'
    ' '
    'Building file: ../output.c'
    'Invoking: MSP430 Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/bin/cl430" -vmspx --data_model=restricted -Ooff --use_hw_mpy=F5 --include_path="C:/ti/ccsv7/ccs_base/msp430/include" --include_path="C:/Jeffrey/projects/Sandworm/Software/259x" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/include" --define=__MSP430F5438A__ -g --c99 --printf_support=minimal --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --preproc_with_compile --preproc_dependency="output.d" "../output.c"
    'Finished building: ../output.c'
    ' '
    'Building file: ../parameter.c'
    'Invoking: MSP430 Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/bin/cl430" -vmspx --data_model=restricted -Ooff --use_hw_mpy=F5 --include_path="C:/ti/ccsv7/ccs_base/msp430/include" --include_path="C:/Jeffrey/projects/Sandworm/Software/259x" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/include" --define=__MSP430F5438A__ -g --c99 --printf_support=minimal --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --preproc_with_compile --preproc_dependency="parameter.d" "../parameter.c"
    'Finished building: ../parameter.c'
    ' '
    'Building file: ../s3l_formatter.c'
    'Invoking: MSP430 Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/bin/cl430" -vmspx --data_model=restricted -Ooff --use_hw_mpy=F5 --include_path="C:/ti/ccsv7/ccs_base/msp430/include" --include_path="C:/Jeffrey/projects/Sandworm/Software/259x" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/include" --define=__MSP430F5438A__ -g --c99 --printf_support=minimal --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --preproc_with_compile --preproc_dependency="s3l_formatter.d" "../s3l_formatter.c"
    'Finished building: ../s3l_formatter.c'
    ' '
    'Building file: ../serial_driver.c'
    'Invoking: MSP430 Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/bin/cl430" -vmspx --data_model=restricted -Ooff --use_hw_mpy=F5 --include_path="C:/ti/ccsv7/ccs_base/msp430/include" --include_path="C:/Jeffrey/projects/Sandworm/Software/259x" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/include" --define=__MSP430F5438A__ -g --c99 --printf_support=minimal --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --preproc_with_compile --preproc_dependency="serial_driver.d" "../serial_driver.c"
    'Finished building: ../serial_driver.c'
    ' '
    'Building file: ../s3l_serial_driver.c'
    'Invoking: MSP430 Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/bin/cl430" -vmspx --data_model=restricted -Ooff --use_hw_mpy=F5 --include_path="C:/ti/ccsv7/ccs_base/msp430/include" --include_path="C:/Jeffrey/projects/Sandworm/Software/259x" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/include" --define=__MSP430F5438A__ -g --c99 --printf_support=minimal --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --preproc_with_compile --preproc_dependency="s3l_serial_driver.d" "../s3l_serial_driver.c"
    'Finished building: ../s3l_serial_driver.c'
    ' '
    'Building file: ../sim.c'
    'Invoking: MSP430 Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/bin/cl430" -vmspx --data_model=restricted -Ooff --use_hw_mpy=F5 --include_path="C:/ti/ccsv7/ccs_base/msp430/include" --include_path="C:/Jeffrey/projects/Sandworm/Software/259x" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/include" --define=__MSP430F5438A__ -g --c99 --printf_support=minimal --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --preproc_with_compile --preproc_dependency="sim.d" "../sim.c"
    'Finished building: ../sim.c'
    ' '
    'Building file: ../spi.c'
    'Invoking: MSP430 Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/bin/cl430" -vmspx --data_model=restricted -Ooff --use_hw_mpy=F5 --include_path="C:/ti/ccsv7/ccs_base/msp430/include" --include_path="C:/Jeffrey/projects/Sandworm/Software/259x" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/include" --define=__MSP430F5438A__ -g --c99 --printf_support=minimal --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --preproc_with_compile --preproc_dependency="spi.d" "../spi.c"
    'Finished building: ../spi.c'
    ' '
    'Building file: ../timer_tick.c'
    'Invoking: MSP430 Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/bin/cl430" -vmspx --data_model=restricted -Ooff --use_hw_mpy=F5 --include_path="C:/ti/ccsv7/ccs_base/msp430/include" --include_path="C:/Jeffrey/projects/Sandworm/Software/259x" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/include" --define=__MSP430F5438A__ -g --c99 --printf_support=minimal --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --preproc_with_compile --preproc_dependency="timer_tick.d" "../timer_tick.c"
    'Finished building: ../timer_tick.c'
    ' '
    'Building file: ../token.c'
    'Invoking: MSP430 Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/bin/cl430" -vmspx --data_model=restricted -Ooff --use_hw_mpy=F5 --include_path="C:/ti/ccsv7/ccs_base/msp430/include" --include_path="C:/Jeffrey/projects/Sandworm/Software/259x" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/include" --define=__MSP430F5438A__ -g --c99 --printf_support=minimal --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --preproc_with_compile --preproc_dependency="token.d" "../token.c"
    'Finished building: ../token.c'
    ' '
    'Building file: ../ui.c'
    'Invoking: MSP430 Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/bin/cl430" -vmspx --data_model=restricted -Ooff --use_hw_mpy=F5 --include_path="C:/ti/ccsv7/ccs_base/msp430/include" --include_path="C:/Jeffrey/projects/Sandworm/Software/259x" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/include" --define=__MSP430F5438A__ -g --c99 --printf_support=minimal --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --preproc_with_compile --preproc_dependency="ui.d" "../ui.c"
    'Finished building: ../ui.c'
    ' '
    'Building target: 259x_firmware.out'
    'Invoking: MSP430 Linker'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/bin/cl430" -vmspx --data_model=restricted -Ooff --use_hw_mpy=F5 --define=__MSP430F5438A__ -g --c99 --printf_support=minimal --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 -z -m"259x_firmware.map" --heap_size=160 --stack_size=160 --cinit_hold_wdt=on -i"C:/ti/ccsv7/ccs_base/msp430/include" -i"C:/ti/ccsv7/ccs_base/msp430/lib/5xx_6xx_FRxx" -i"C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/lib" -i"C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/include" --reread_libs --diag_wrap=off --display_error_number --warn_sections --xml_link_info="259x_firmware_linkInfo.xml" --use_hw_mpy=F5 --rom_model -o "259x_firmware.out" "./ASICport_driver.obj" "./USB_serial_driver.obj" "./adc.obj" "./background.obj" "./board.obj" "./build_s3l_message.obj" "./cal_user.obj" "./checksum.obj" "./convert.obj" "./crc_16.obj" "./database.obj" "./dbl_to_flt.obj" "./debug.obj" "./delay.obj" "./event.obj" "./flow.obj" "./fram.obj" "./frequency_output.obj" "./init.obj" "./keys.obj" "./led_bar_graph.obj" "./led_rgb.obj" "./loop_current.obj" "./main.obj" "./manufmode.obj" "./math_util.obj" "./message_parity.obj" "./misc.obj" "./nv_data.obj" "./os_timer.obj" "./output.obj" "./parameter.obj" "./s3l_formatter.obj" "./s3l_serial_driver.obj" "./serial_driver.obj" "./sim.obj" "./spi.obj" "./timer_tick.obj" "./token.obj" "./ui.obj" "../lnk_msp430f5438a.cmd" -llibmath.a -llibc.a
    <Linking>
    'Finished building target: 259x_firmware.out'
    ' '

    **** Build Finished ****
  • The build console contents you posted show a successful build, with no errors or warnings. Exactly what message do you get in the "Problems" window?
  • Symbol '__NAN__' could not be resolved
  • The error goes away when I comment out the NAN.
  • That message does not come from the linker, or from anywhere in the compiler, as far as I can tell. If the program builds and links properly, it is probably not a compiler issue. What happens when you run the executable?

    It must be some sort of static source code analysis tool. I'm not sure how it sees the post-preprocessing symbol __NAN__.
  • When I start the debugger, I get an Errors exist in required project(s) message. It runs okay though when I click on Proceed.
  • Please take a screen shot, and attach that to your next post.

    Thanks and regards,

    -George

  • Hi Jeffery,
    That error is a Codan error for Eclipse, not a build error from the build tools. Codan is Eclipse's static code analysis tool:
    help.eclipse.org/.../index.jsp

    Sometimes it has some false positives that does not impact the build. In those cases, the message can be ignored.

    However, I am unable to reproduce the issue on my end. Using NAN does not generate that error for me. Would it be possible to provide a test case? I just need a very simple stripped down project, as long as that particular issue can be reproduced.

    Thanks
    ki
  • I tried creating a new project. But I could not reproduce the issue. My NAN problem went away when I re-imported my project into CCS.
    Thanks.