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.

Debug Assertion Failed - CCSv6

Other Parts Discussed in Thread: TM4C123AH6PM

This started to happen and I can't recall what did I change that would be relevant:

"Microsoft Visual C++ Debug Library" error message

Debug Assertion Failed

Program: c:\ti\ccsv6\tools\compiler\arm_5.1.10\bin\armcl.exe

File: isctype.c

Line: 68

Expression: (unsigned)(c+1) <= 256

I have no clue where does that come from, please help. It happens even right after you start CCS. As a blind attempt, I changed the compiler option on the project down to 5.1.8, and the same error happens with the replaced compiler.

CCS is 6.0.1.00040 in Windows 7 64-bits

  • This has previously been asked a few times on the forums. A quick search on the forums yields this thread that points to the root  cause of the error (usually a non-ASCII character in a filename). 

    http://e2e.ti.com/support/development_tools/compiler/f/343/t/244013

  • Aartig, thanks for the reply.

    First, as a spinoff to this subject, I had searched for "Debug Assertion Failed" and got no proper results. Some 30 posts appeared as the search result, and looking at each of them, none seemed to be what I needed. Interesting, the topic you suggested has that very exact title, but it does not show up on my results! Further, I noticed that the TI site layout has changed recently, and I no longer have something like "Search on the Forums", but rather only the general top bar "Search through millions of questions and answers". Could there be something wrong on the search engine of the site?

    Back to the matter, in fact the reply makes sense. The arm compiler command shows on the console as having â€œC:/ti/TivaWare_C_Series-2.1.0.12573â€?.

    "c:/ti/ccsv6/tools/compiler/arm_5.1.10/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me --include_path="c:/ti/ccsv6/tools/compiler/arm_5.1.10/include" --include_path="“C:/ti/TivaWare_C_Series-2.1.0.12573â€?" -g --gcc --define=ccs="ccs" --define=PART_TM4C123AH6PM --display_error_number --diag_warning=225 --diag_wrap=off --preproc_with_compile --preproc_dependency="tm4c123ah6pm_startup_ccs.pp"  "../tm4c123ah6pm_startup_ccs.c"

    However, I looked upon the include path settings a few times, and the dirty characters are not there. I erased the include paths and retyped, to no results... Any suggestions?

    Cheers,

  • WOW, this one was beyond my beliefs!!!

    I had documented all my settings on a text editor. When I created a new project, I copied/pasted the include paths from such document.

    Well, these editors tend to replace regular quotes (") for nice looking oriented quotes. When you paste these nice quotes into the settings, because of the basic font used inside the properties window, all you see is a regular quote - which was actually stored as a non-ascii character!!!

    This seems to be very specific, but if the CCS programmers could take this as a suggestions, verify the paths on the properties settings, and clearly warn for bad ones if found!

    Regards!
  • Bruno,

    First, I am glad you were able to identify the location and reason for the non-ASCII characters and fix the problem.

    Second, I agree that searching effectively on the forums can sometimes be a challenge and I wanted to provide some suggestions in that regard.

    Bruno Saraiva said:
    First, as a spinoff to this subject, I had searched for "Debug Assertion Failed" and got no proper results. Some 30 posts appeared as the search result, and looking at each of them, none seemed to be what I needed. Interesting, the topic you suggested has that very exact title, but it does not show up on my results! Further, I noticed that the TI site layout has changed recently, and I no longer have something like "Search on the Forums", but rather only the general top bar "Search through millions of questions and answers". Could there be something wrong on the search engine of the site?

    When you are within a forum, say Code Composer Forum, and you type something to search in the "Search through millions of questions and answers" search box and DO NOT hit Enter, the search is only performed within that forum. In this particular case, the error being a compiler error, the related threads on this topic were actually in the Compiler Forum and not in the Code Composer Forum, which is likely the reason you did not find them. If you instead type your search terms in the top box and hit ENTER, it searches all E2E forums. Once the results are displayed, you can further narrow your search through additional filters found on the right side of the page, so you can view only threads from a specific forum etc. In fact, this is exactly how I found the related thread that I sent in my response. I hope this will be somewhat helpful in your future searches.

    Bruno Saraiva said:
    This seems to be very specific, but if the CCS programmers could take this as a suggestions, verify the paths on the properties settings, and clearly warn for bad ones if found!

    I'm not sure if anything can be done in the tools to detect and warn about this, as the error could come from many different places, like environment variables, name of the PC etc.