Skip to main content
cosmapa
Associate III
September 17, 2007
Question

Migrating USB demo to IAR V5.0

  • September 17, 2007
  • 2 replies
  • 611 views
Posted on September 17, 2007 at 08:17

Migrating USB demo to IAR V5.0

This topic has been closed for replies.

2 replies

cosmapa
cosmapaAuthor
Associate III
September 15, 2007
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
cosmapaAuthor
Associate III
September 16, 2007
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?