473,805 Members | 2,017 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to automate Build with Code Composer?

11 New Member
Hello, I am new at Python, approximately 2 weeks of experience, could someone help me please.

I am trying to Automate build in Code Composer c5000 version 2.21. I am able to open a project and Build it. But the problem is that I can't specify the configuration. I presently have 3 different configuration for my project: Debug, Release and Simulation. Since the first configuration for the project is Debug, It is by default set to Debug. But I need to specify the Release Configuration Option. So in resume, I need to build a projects with in the Release configuration

There is no documentation on OLE COM for Code Composer. The only documentation available is for RTDX Com object which is useless for me.

My Python implementation for opening a projects and build it is the following.

import win32com.client as w32c

ObjCode = w32c.Dispatch(" CodeComposer.Pr ojcoll")
Projects = ObjCode.OpenPro ject("D:/Automation/Test/Project.pjt")
Projects.Build( True)

I tried to access the build options with the BuildTools parameter but it doesn't seem to be instantiated. And if I try using it in a function accepting a BuildTool, it gives me an error:
>>> Projects.GetBui ldOptions(ObjCo de.BuildTools)
Traceback (most recent call last):
File "<interacti ve input>", line 1, in ?
File "<COMObject OpenProject>", line 3, in GetBuildOptions
com_error: (-2147352567, 'Exception occurred.', (0, None, None, None, 0, -2147467263), None)


I don't know if I am on the right track, if someone could help me, it would really be helpfull. And thanks in advance.
Feb 27 '07 #1
4 3126
bartonc
6,596 Recognized Expert Expert
Hello, I am new at Python, approximately 2 weeks of experience, could someone help me please.

I am trying to Automate build in Code Composer c5000 version 2.21. I am able to open a project and Build it. But the problem is that I can't specify the configuration. I presently have 3 different configuration for my project: Debug, Release and Simulation. Since the first configuration for the project is Debug, It is by default set to Debug. But I need to specify the Release Configuration Option. So in resume, I need to build a projects with in the Release configuration

There is no documentation on OLE COM for Code Composer. The only documentation available is for RTDX Com object which is useless for me.

My Python implementation for opening a projects and build it is the following.

import win32com.client as w32c

ObjCode = w32c.Dispatch(" CodeComposer.Pr ojcoll")
Projects = ObjCode.OpenPro ject("D:/Automation/Test/Project.pjt")
Projects.Build( True)

I tried to access the build options with the BuildTools parameter but it doesn't seem to be instantiated. And if I try using it in a function accepting a BuildTool, it gives me an error:
>>> Projects.GetBui ldOptions(ObjCo de.BuildTools)
Traceback (most recent call last):
File "<interacti ve input>", line 1, in ?
File "<COMObject OpenProject>", line 3, in GetBuildOptions
com_error: (-2147352567, 'Exception occurred.', (0, None, None, None, 0, -2147467263), None)


I don't know if I am on the right track, if someone could help me, it would really be helpfull. And thanks in advance.
Have you tried:
ObjCode .Build(True)
Also you may need to use a raw string like this:
Projects = ObjCode.OpenPro ject(r"D:/Automation/Test/Project.pjt")
In most languages the '\' is a special character. Using raw strings treats it as a normal character and is the way to make sure that Windows path names work properly. You can also use unicode strings on windows: u"C:\this\is\a\ path".
Feb 27 '07 #2
slalande50
11 New Member
After several hours of experiencing how to automate build in code composer, I finally found a special Make, the timake. Which you pass the project as an parameter. So I basically use the os.system command to execute it.

Thanks for the advise.
Mar 12 '07 #3
bartonc
6,596 Recognized Expert Expert
After several hours of experiencing how to automate build in code composer, I finally found a special Make, the timake. Which you pass the project as an parameter. So I basically use the os.system command to execute it.

Thanks for the advise.
Thanks for the update. I'm sure that this will turn out to be useful info for our members in the near future. Example code would be really helpful.
Mar 13 '07 #4
slalande50
11 New Member
Here is a sample of code.

#TiDirectory is the Ti directory of code composer when installing the application
os.popen(TiDire ctory + "/cc/bin/timake" + " Project.pjt " + "Release")

You may learn more on this timake on google.

Hope this helps a lot
Mar 13 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

3
474
by: Brad Burke | last post by:
From a windows .Net app, I need to 1) check if MSAccess is already open to a certain Access application. If so, then open a form and find a certain record. 2) If not open, then open MSAccess and open a secured Access application and then open a form and find a record. (The Access App is secured not with a database password but with full user name and password security.) I can open the form and find the record OK. I am having problems...
3
1977
by: Ed J | last post by:
I'm trying to port some C++ code from MS Visual Studio 6.0 to a version of Code Composer Studio for an embedded application. This code compiles under Visual Studio, and lets the program reference x, y, and z. Under a Code Composer Studio compiler, the compiler warns: "this declaration doesn't declare anything", then gives errors for all subsequent references to x, y, and z. union{ struct{
13
3820
by: Ronald Fischer | last post by:
When I create a new page using Netscape Composer, it always includes a meta tag <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"> in the header. I would like to have it charset=us-ascii instead. How can I do this? An alternative would be to tell Netscape to leave out the charset attribute altogether, because this would then mean "us-ascii" by default, but I don't know how to do it either.
9
3406
by: Bob Alston | last post by:
In 2002, "GrayJay" posted the following code: I did this in a jazz record catalogue to find composers - On a form "frmComposers" Create a text box - txtFindComposer, and add the following sub Private Sub txtFindComposer_Change() Requery Me!.SetFocus
5
1255
by: JIM.H. | last post by:
private void DownloadFile(string fName) { string msg="download done"; /* System.IO.fInfo fInfo = new System.IO.fInfo(fName); Response.Clear(); Response.AddHeader("Content-Disposition", "attachment; filename=" + fInfo.Name); Response.AddHeader("Content-Length", fInfo.Length.ToString());
1
1975
by: Ronald S. Cook | last post by:
We have a Win app that we publish via built-in ClickOnce. However, we have 10 different locations to which we deploy the app. Each time we have a new build to publish, we have to change the IP in a setting and also in the URL to where we want it to publish. Last night, we caused a problem as published the wrong connection string to one of our locations. Its also tedious doing this 10 times. Is there anyway to more automate this?
6
4806
by: bjornms | last post by:
The application i build in C#.net is crashing once a month. I can't reproduce the crash. Is there a way to track down where the program crashes, without putting logging everywhere in the code? Is there a way to get a stack trace of the crashing program (by the way, i'm new to C#.net, i have experience in (unmanaged) C++). Thanks in advance.
9
9313
by: Ots | last post by:
I'm using SQL 2000, which is integrated with a VB.NET 2003 app. I have an Audit trigger that logs changes to tables. I want to apply this trigger to many different tables. It's the same trigger, with the exception of the table name. I could manually change the table name in the trigger and create it, over and over, but I'd like to automate this - by iterating through the collection of tables and passing the tablename to something that...
6
4196
by: rcook349 | last post by:
I'm looking for a very simple walkthough on how to automatically build and publish a Visual Studio 2008 Windows app. E.g. 1. Create a Windows App named "HelloWorld" 2. Create a virtual directory named "HelloWorld" 3. ... 4. ... 5. ...
0
9596
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10607
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10364
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10104
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9182
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6875
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5541
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5677
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3007
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.