85 views
in System Integration by

Hello,

i'm getting EMWI ERROR: code: 445 when  calling :

EwInvokeCopy( UpdateUartCharProc,RxBuf, Size);

to process the string:

WRITE:PROG:1:1:20/100,60,70,150,200,300,10,20,30,10,20,30,1,400,1,0,1,0,0,1;

What can be a solution? enlarge the queue? some sort segmentation?

 Thanks.

1 Answer

0 votes
by
 
Best answer

Hello Riccardo,

the error informs that "The amount of data to copy to the invocation queue passed to the function EwInvokeCopy() is larger than the queue itself. It will never fit inside the queue even if the queue were empty.".

You will need to enlarge the invocation queue. For this purpose look for the file ewconfig.h. Within the file search for the macro EW_INVOCATION_QUEUE_SIZE. Probably the macro is initialized with the value 64. That means 64 bytes.

Configure the macro with a value at least as large as the longest string you plan to add to the queue plus 16 bytes needed internally. If you have sufficient memory available, I would recommend to calculate with additional reserve for the case of multiple invocations you want to be queued at the same time. See also Caches and Buffers Configuration.

I hope it helps you further.

Best regards

Paul Banach

by
if I enlarge the queue lets say to 128, i get in to [HardFaultHandler].

instead leaving it to 64 returns the error i mentioned before.

EDIT: found a bug :')   solved

Ask Embedded Wizard

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint

...