I am update my CCSv4 to CCSv5 but CCSv4 project give me some error
like " No source available for "0xa866" " and show "view Disassembly ''
what this problem plz tell me and how to avoid and also my delay routine not consider but when seprate made header and C file it take in to code
The problems you are facing are most likely caused by the now standard "on" optimizations in the new code generation tools.
The compiler will now produce code with optimization level 0, even if no optimization level is selected in the project properties.
To turn off the optimizations go to: Project -> Properties -> Build -> MSP430 Compiler -> Advanced Options -> Advanced Optimization
There check the box with "Disable all high level optimizations"
The optimization will perform several changes, the most famous pitfall is that delay loops don't work anymore. That is because the delay loop is doing nothing useful (from the compiler point of view) and thus will be removed to optimize the code.
That is why everyone should use the _delay_cycles() intrinsic to get a defined delay even when optimizations are turned to maximum.
The second thing you are seeing is "No source available for 0xABCD", this happens when the debugger can't align the current location to a source code line. This also happens often due to optimizations as code will get rearranged to get more speed or reduce the size of the code. Somewhere in that process the assignment between position and source code gets lost.
--------------------------------------------------------------------------------------Use the verify answer button to mark your questions as solved.
Hi,
Friend Bernhard Weller
When i I am trying to clik on this box below
Give the following error
What I do then my CCSv4 project run without error exactly same in CCSv5,
Plz give give me suggestion
It seems like your .out file is not found by the CCSv5.1. I don't know why it shouldn't find it's own generated file. The thing I can think of is maybe that there were compilation errors and no out file was created. But then there should have been an error message before.
Maybe it's best to ask over at the Code Composer Studio, as the TI support there will most likely be better able to help you with that.
I have run into the same "no source code for foo_bar at 0xABCD" error with CCS v 5.2.1.00018 and TI compiler v4.1.1. Dis assembly sure shows foo_bar, but in a different location (generally < 0xABCD). Program build and loading happens without any problem, but the main is not called.
Regarding the above solution, I have searched through the Project->Properties->.. but did not find any option to disable all optimizations. The compiler document mentions about "--no_high_level_opt" option, but I am not able to find the same.
Please let me know where the option is found/ if it has been removed or renamed.
Thanks,
-Venkat.