Command Line Interface ImageCraft

Discussion and support of the compiler from ImageCraft for the M8C.

Moderator: richard@imagecraft.com

Command Line Interface ImageCraft

Postby Borstenhorst » Mon Apr 01, 2013 3:21 pm

Sorry for being such a noop..

I want to use the Imagecraft Compiler via Command Line Interface, so that I can generate .hex files with another Apllication.
I read the C-Language Compiler Guide from Cypress but unfortunately I still dont know how to compile the hex file.

The arguments dont give me too much information.

Is there any good documentation for that or could you tell me how to use it.
Its nothing special. Just a very basic project but the main.c is changing.

Thanks!
Thomas
Borstenhorst
Bite-Size Cheese
Bite-Size Cheese
 
Posts: 13
Joined: Fri Oct 19, 2012 8:24 am

Re: Command Line Interface ImageCraft

Postby EricS » Mon Apr 01, 2013 3:54 pm

Check this document: http://www.cypress.com/?id=4&rID=51770

Regards
EricS
Bite-Size Cheese
Bite-Size Cheese
 
Posts: 20
Joined: Tue May 10, 2011 7:25 am

Re: Command Line Interface ImageCraft

Postby Borstenhorst » Tue Apr 02, 2013 7:38 am

hey!
thanks a lot, but unfortunately it crashes when I try to use it :shock: !
Debugger Message:
Unhandled Exception:
The COM Class-Factory for the Component with CLSID {8D3808A3-B32B-422C-A605-AB7EDAAF9F88} could not be cales because of the following error: 80040154.


I then Clean, generate, and build the project within PSoC Designer and it worked, so it wasn the Project File.

PSoC Designer 5.3 @ Win7 64Bit

Someone said that you can use the iccm8c.exe (aka Imagecraft Compiler) directly but I was wondering how it would get the project files since it only accepts one file as argument .

It dont need to be a CLI. Any other API that I can use within C# will also work :)
Borstenhorst
Bite-Size Cheese
Bite-Size Cheese
 
Posts: 13
Joined: Fri Oct 19, 2012 8:24 am

Re: Command Line Interface ImageCraft

Postby Borstenhorst » Mon Apr 08, 2013 9:11 am

Ok it seems like PDCLI having troubles with x64 machines.

If you have any ideas how to fix it, please let me know. I will contact Cypress and will aks them what to do.
Borstenhorst
Bite-Size Cheese
Bite-Size Cheese
 
Posts: 13
Joined: Fri Oct 19, 2012 8:24 am

Re: Command Line Interface ImageCraft

Postby EricS » Mon Apr 08, 2013 3:35 pm

I'm having the same issue as you. You will need to create a case on the Cypress Website.

Regards
EricS
Bite-Size Cheese
Bite-Size Cheese
 
Posts: 20
Joined: Tue May 10, 2011 7:25 am

Re: Command Line Interface ImageCraft

Postby Borstenhorst » Tue Apr 09, 2013 5:17 am

I already did.
They also have this exception.

I will keep you up to date


Regards
Borstenhorst
Bite-Size Cheese
Bite-Size Cheese
 
Posts: 13
Joined: Fri Oct 19, 2012 8:24 am

Re: Command Line Interface ImageCraft

Postby nan358 » Sat Apr 13, 2013 2:15 am

The problem occurs because of bitness incompatibility between PDCLI.EXE and backend COM component.

PDCLI.EXE itself is a pure .NET application and can run either 32-bit mode and 64-bit mode, and is marked as "universal" (runs in either bitness).
This marking will let it run in 64-bit mode on 64-bit Windows environment. On the othet hand, the backend COM component is written in 32-bit code and can only be called from 32-bit mode application.

In order for PDCLI.EXE to be always compatible with 32-bit COM component, PDCLI.EXE must be marked as "run 32-bit only".
Corflags.exe, which is part of Microsoft .NET Development Tools, can alter this flag in .NET application.

If you have installed Visual Studio or Microsoft .NET SDK in your environment, probably you already have .NET Tools installed in your environment.
Otherwise, open http://www.microsoft.com/en-us/download ... px?id=8279 (Download Microsoft Windows SDK 7.1 from Official Microsoft Download Center), run installer, and install .NET Development Tools. (You don't need other components.)

Next, use corflags.exe to alter flag in PDCLI.EXE.
Code: Select all
your\.NET\Tools\path\corflags your\PSoCDeveloper\path\PDCLI.EXE /32bit+

This will make PDCLI.EXE always run in 32-bit mode regardless of OS bitness.

Note: your user account may not have sufficient access right to alter PDCLI.EXE. In case your access should be denied, start command prompt again as administrator and run corflags.exe again.

--
Nobu
nan358
The Big Cheese
The Big Cheese
 
Posts: 728
Joined: Mon Jul 02, 2007 8:12 am


Return to “%s” ImageCraft ICCv7 for M8C Compiler

Who is online

Users browsing this forum: No registered users and 1 guest

cron