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.Projcoll")
Projects = ObjCode.OpenProject("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.GetBuildOptions(ObjCode.BuildTools)
Traceback (most recent call last):
File "<interactive 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.
4 3106
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.Projcoll")
Projects = ObjCode.OpenProject("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.GetBuildOptions(ObjCode.BuildTools)
Traceback (most recent call last):
File "<interactive 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.OpenProject(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".
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.
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.
Here is a sample of code.
#TiDirectory is the Ti directory of code composer when installing the application
os.popen(TiDirectory + "/cc/bin/timake" + " Project.pjt " + "Release")
You may learn more on this timake on google.
Hope this helps a lot
Sign in to post your reply or Sign up for a free account.
Similar topics
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...
|
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...
|
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...
|
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...
|
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",...
|
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...
|
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?...
|
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,...
|
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...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
| |