Error Message when Assigning Return Variable

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 6.

Moderator: Benj

Post Reply
User avatar
Jordy101091
Posts: 519
Joined: Sat Jan 08, 2011 4:02 pm
Location: The Netherlands
Has thanked: 25 times
Been thanked: 188 times
Contact:

Error Message when Assigning Return Variable

Post by Jordy101091 »

Hi all, Im struggling to get the following to work properly.

I have made a macro to calculate the file size, the outcome of this calculation is a string like "880 Bytes".
What I want to do is to is that this macro returns this string so the user can use in his program, only when I assign this string to the '.Return' variable of this macro I get the following error message.

Code: Select all

Target folder: W:\DOCU~CAH\FLOW~5UX\Test\VDIP1
Source name:   W:\Documenten\Flowcode Projects\Test\VDIP1\VDIP1.fcfx
Title:         
Description:   
Device:        PIC.16F.16F877A
Generated by:  Flowcode v6.0.6.0
Date:          Monday, April 07, 2014 19:24:50
Users:         1
Registered to: jordy101091
Licence key:   Z8TNY6
   NOT FOR COMMERCIAL USE
http://www.matrixltd.com
Launching the compiler...
C:\Program Files (x86)\Flowcode 6\compilers\pic\boostc\boostc_16F.exe  -v -t PIC16F877A "VDIP1.c"
Launching BoostC...
BoostC Optimizing C Compiler Version 7.20 (for PIC16 architecture)
http://www.sourceboost.com
Copyright(C) 2004-2013 Pavel Baranov
Copyright(C) 2004-2013 David Hobday

Licensed to FlowCode User under Single user Pro License for 1 node(s)
Limitations: PIC12,PIC16 max code size:Unlimited, max RAM banks:Unlimited


VDIP1.c
Starting preprocessor: "C:\Program Files (x86)\Flowcode 6\compilers\pic\boostc\pp.exe" VDIP1.c -i "C:\Program Files (x86)\Flowcode 6\compilers\pic\boostc\include" -d _PIC16F877A -la -c2 -o VDIP1.pp -v -d _BOOSTC -d _PIC16 -d _CHAR_INDEX 

...................
VDIP1.c(1715:25): error: unknown identifier 'FCR_RETVAL'
VDIP1.c(1715:11): error: arguments of 'FCI_SCOPY' don't match the parameters of call
VDIP1.c(1715:2): error: failed to generate expression
VDIP1.c(2608:14): error: arguments of 'FCM_FileSize' don't match the parameters of call
VDIP1.c(2608:2): error: failed to generate expression
VDIP1.c success

failure
..
Completed BoostC compilation, return = 1

C:\Program Files (x86)\Flowcode 6\compilers\pic\boostc\boostc_16F.exe reported error code 1


FINISHED
I hope this means something, If you need to component source code, give me a PM.
the will to learn, should not be stopped by any price

User avatar
SteveM
Posts: 55
Joined: Tue Mar 25, 2014 2:09 pm
Has thanked: 28 times
Been thanked: 65 times
Contact:

Re: Error Message when Assigning Return Variable

Post by SteveM »

Hi Jordy,
There's a chance it could be related to this bug that was found earlier in the week - if your '.Return' assignment uses an expression that joins sub-strings, it could be failing in exactly the same way. Can you post your flowchart please - I think it would be useful for us to compare with the earlier report.
In the mean-time, it may be worth having a tinker with your String expressions, joining them together in stages, as shown in the link.

Best Regards
Steve.

Post Reply