cancel
Showing results for 
Search instead for 
Did you mean: 

Migrating USB demo to IAR V5.0

cosmapa
Associate II
Posted on September 17, 2007 at 08:17

Migrating USB demo to IAR V5.0

2 REPLIES 2
cosmapa
Associate II
Posted on September 15, 2007 at 07:09

I have opened the vitual com port .eww project file that is included in the ST's USB kit. When building the application, I am getting two errors:

in init.s: Error [109] Expression is too complex. The offending instructions are (there are 6 like it)

ldr sp,=SFE(CSTACK) & 0xFFFFFFF8 ; End of CSTACK(user)

in vect.s: Error[40] Bad instruction. The instruction is ''COMMON'', in

COMMON INTVEC:CODE(2)

The IAR migration manual says that ''Too complex'' instructions must be rewritent. The do now say how.

IAR also says that COMMON has been removed. They do not say what it must be replaced with.

Can someone please make a suggestion. Thanks

cosmapa
Associate II
Posted on September 16, 2007 at 05:46

I worked around the problem by installing and using the IAR 4.42 workbench. The project builds OK without modfication.

However, the Virtual Com port program doesnt run. It hangs, waiting forever in the Virtual_Com_Port_init function, at the line

while (pInformation->Current_Configuration == 0) NOP_Process();

I tried another demo including in the USB kit. The Joystick Mouse demo programs works: the program will also stop at that line, but continues when the USB cable is pluged and the device recongnized by Window.

Has anyone successfully managed to run the Virtual Com demo?