All,
Please could someone help me setup a pure ARM assembly language project in CCS using the MCU TM4C129X Connected Development Kit? I can't find a definitive source on how to do this properly. Also, how do I debug the image using CCS?
lag
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.
All,
Please could someone help me setup a pure ARM assembly language project in CCS using the MCU TM4C129X Connected Development Kit? I can't find a definitive source on how to do this properly. Also, how do I debug the image using CCS?
lag
cb1- said:for an entire project - seems inefficient at best - wasteful of your resource at worst.
Here's the (real) quote. Only you have claimed (improperly) that, "waste" targeted your post. (your - and other's - "time/effort" are (very) likely sacrificed at the altar of "ASM and ASM's Only" unrelenting demand.
And (still) the requirement for ASM (only) sits unexplained/unjustified - how does that motivate skilled persons to respond? (i.e. you've displayed little effort to "sell" your post - which likely encourages the best response...)
As always - the unnecessary & excessively narrow "demands" upon first one - and now two forums - appears not to be a concern of this poster...
lag said:but all I am asking is for someone to point me to some definitive source where I can setup CCS correctly for ARM assembly programming for the MCU TM4C129X Connected Development Kit. Is that so hard to do? Isn't this what this community forum is for?
Lag,
I believe I have already addressed this question in my first reply to your post. In addition, there are several threads on this same topic in the CCS E2E as I also made reference too. Please let me know if you have attempted and not been able to get a project setup and running. Note, follow all of the normal procedures regarding include files/dependencies if you are going to utilize multiple asm files.
Chuck,
Thanks for all the help in this matter! I have found the solution to my request " How to setup an ARM assembly project in Code Composer Studio using an TM4C129X". I came by this a last July, and I decided to post it now since this issue has not been addressed completely, etc..
It took me awhile to find it, and I am posting it here for others who have this requirement for doing ARM assembly only code in CCS.
This solution comes by a blog post by R. Angeli: "How to Create an Assembly-Only Project for TIVA Launchpad in Code Composer" 3/4/2015, "h_t_t_p://rawelec.blogspot.com/2015/03/how-to-create-assembly-only-project-for.html".
The solution is the following:
System Requirements:
1. Code Composer Studio (I am using version 6.1.3)
2. Code Composer ARM compiler 15.1.2.4.LTS.
To create a ARM assembly only project that compiles and runs:
1. New->CCS Project
2. CCS Project->Target: Tiva TM4C1294NCPDT
3.CCS Project->Connection: Stellaris In-Circuit Debug Interface
4.CCS Project->Project Name: "Name of your project"
5. CCS Project->Compiler version: T1 v15.12.4.LTS (I believe TI v5.1.10 works too)
6. CCS Project->Project template and examples->Empty Project (with main.c) ... yes this is correct ... do not use "Empty Assembly-only Project" ... Its counter intuitive but this is critical in the setup of your assembly program to compile and work!
7. CCS Project->click "Finish."
8. Project Explorer->Select "Name of your project"-> delete "main.c" file from project folder.
9. Project Explorer-> right click on the "Name of your project" and select new->File.
10. New File-> Filename: name the file "main.asm."
11. New File-> click "Finish."
12. add the following to your "main.asm" file
.global main ; makes main accessible from outside this file.
.thumb ; use thumb, duh
.data ; set memory location to SRAM
; put your variables here
.text ; set memory location to flash
main:
; code goes here
13. And that's it.
14. Also, see the following document for TI's assembly language reference and compiler commands etc.
ARM Assembly Language Tools
v15.12.0.LTS
User's Guide
Document Number: SPNU1180
15. All the credit for this solution goes to R. Angeli (see above)
16. On R. Angeli" site is a complete assembly program called BlinkyASM for the TM4C1294NCPDT that compiles and runs on the MCU using this method above!
-Cheers
LAG
Three things here deserve note:
Poster's "id/handle" appears (very) well chosen - does it not?
Your time/effort invested in this (long) investigation IS appreciated - may well prove of value - I hereby thank you for that.
Still - the comments of both poster Robert & myself - emphasizing the "quite predictable" RARITY of such (minority) focused resource - have been very well proven - have they not?