I use assembly only , and assemblers ,recently I purchased launch pad MSP430 and so need to use the Assembler of CCS V5 , it seems heavily oriented to
C . in the MSP430 Assembly tools PDF it gives examples of setting variable address and length but these state ments as shown in that document all generate errors
I have assembly code running with no variables but of course that limits functionality to blinking LEDs
My question is then
How do I set up un initialised RAM variables in an Assembly routine written with CCS V5 , Byte size and named ?
How do I set up Data in program memory both HEX Byte , and HEX word values in an Assembly routine written with CCS V5. IE Data tables. ?
How do I set up Data sections named Variables and HEX WORD and BYTE values in EE Memory in an Assembly routine written with CCS V5?
I have been trying to figure this one out for days using TI documentation but every time I use the examples given I just get errors.
Many thanks
regards
Peter
Peter,
What is the specific error you see when building the assembly file in CCSv5?
Couple of things to note that may be causing your issues:
- when creating a new project in CCS, make sure to start with the template Empty Assembly-only Project, if the project contains only assembly source files and no C source files- when writing assembly code, make sure that only labels and comments begin the first column. Mnemonics cannot start in the first column as mentioned in section 3.6 of the Assembler Users Guide.
If these tips do not help, please copy and paste the output seen in the CCS build console which shows the full text of the errors.
If a post answers your question please mark it with the "Verify Answer" button
Search the wikis for common questions: CGT, BIOS, CCSv3, CCSv4Track a known bug with SDOWP. Enter the bug id in the "Find Record ID" box
Hi Peter,
I can not answer your question but would like to add to it. I also use assembly only and used Phyton's IDE and assembler for the last 8 years - creating and watching variables is simple and easy in that IDE. Unfortunately their developer passed away and the stopped developing for MSP430 and later discontinued the product.
Two questions related to CCS V5.2:-
- Can assembler variables by declared as a 'typed' variable in order to be warned if you for instance execute a byte operation on a word?
- How can you watch assembler variables when you debug your code?
Thank you
Rudi.
There is a deep presumption that MSP430 will be programmed from C. Among other things, this means documentation on assembly programming is thin.
I recommend you learn about assembly from the C compiler. Write a small example of what you want to do in C. Compile it, then look at the resulting assembly. When you build, use the --src_interlist (or -s for short) option to have the compiler insert comments in the assembly that show the C code next to the assembly. The output will be in a file with the extension .asm. All the directives used (like .global, .bss, etc.) are documented in the MSP430 assembly tools manual.
Hope this helps ...
-George
TI C/C++ Compiler Forum ModeratorPlease click Verify Answer on the best reply to your question.The Compiler Wiki answers most common questions.Track an issue with SDOWP. Enter your bug id in the "Find Record ID" box.