for help

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
nnnnff
Posts: 107
Joined: Tue Oct 04, 2011 8:55 am
Has thanked: 3 times
Been thanked: 6 times
Contact:

for help

Post by nnnnff »

When V4 software choose language as "Chinese simplified", if the application in appeared "connection" figure operator program, the compiler will not pass, must fail!!!!! This is a very deadly bug in Chinese schools for the students to use.
Attachments
Problem figure
Problem figure
Problem figure.JPG (40.01 KiB) Viewed 5083 times

medelec35
Matrix Staff
Posts: 9521
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: for help

Post by medelec35 »

hi nnnnff,
Have you tried on a PC that't set to Chinese?

This is only a complete guess so I could be wrong and maybe a bug? :P

I believe what's happening is:

If trying an a PC which has not got Chinese fonts but only displaying English, then when compiling to hex the word Main (but in Chinese) is not recognised since fonts used can't create the word main in Chinese.

If you have access to a pc that's set to Chinese language then would you mind testing my theory please?

Martin
Martin

nnnnff
Posts: 107
Joined: Tue Oct 04, 2011 8:55 am
Has thanked: 3 times
Been thanked: 6 times
Contact:

Re: for help

Post by nnnnff »

I'm a Chinese university teachers, using the PC is the Chinese system, so find the deadly bug. Please help me. Thank you!

allpicproject
Flowcode V4 User
Posts: 36
Joined: Thu Sep 01, 2011 11:10 am
Has thanked: 17 times
Been thanked: 1 time
Contact:

Re: for help

Post by allpicproject »

nnnnff wrote:I'm a Chinese university teachers, using the PC is the Chinese system, so find the deadly bug. Please help me. Thank you!
Hi,

Can you upload the file if you don't mind ? Let me try.

Tq.

nnnnff
Posts: 107
Joined: Tue Oct 04, 2011 8:55 am
Has thanked: 3 times
Been thanked: 6 times
Contact:

Re: for help

Post by nnnnff »

An example problem
Attachments
Flowcode1.fcf
An example problem
(3.5 KiB) Downloaded 201 times

allpicproject
Flowcode V4 User
Posts: 36
Joined: Thu Sep 01, 2011 11:10 am
Has thanked: 17 times
Been thanked: 1 time
Contact:

Re: for help

Post by allpicproject »

Hi,

I'm not sure if it's flowcode bug or something else. I'm not use chinese version window.

Base on C file , suspect there something wrong within the main() function .

Code: Select all

void main()
{
	
	//Initialisation
	ansel = 0;
	cmcon = 0x07;


	//Interrupt initialisation code
	option_reg = 0xC0;


	//???
	//Connection Point: [A]: A
FCC_???_A:
;


	//??
	//Output: 1 -> A0
	trisa = trisa & 0xfe;
	if (1)
		porta = (porta & 0xfe) | 0x01;
	else
		porta = porta & 0xfe;


	//????
	//Goto Connection Point: [A]: A
	goto FCC_???_A;


	mainendloop: goto mainendloop;
}

void MX_INTERRUPT_MACRO(void)
{
}
I tried some alternative ( make a new makro ) and it no problem ( using english window version ) and compiled perfectly.

Code: Select all

Launching the linker/assembler...
c:\program files\matrix multimedia\flowcode v4\boostc\boostlink_pic.exe -ld "C:\Program Files\Matrix Multimedia\Flowcode V4\BoostC\lib" libc.pic16.lib flowcode.pic16.lib rand.pic16.lib float.pic16.lib "Flowcode1-zuki.obj" -t PIC16F88 -d "C:\Users\zuki\Downloads" -p "Flowcode1-zuki"
BoostLink Optimizing Linker Version 7.03
http://www.sourceboost.com
Copyright(C) 2004-2011 Pavel Baranov
Copyright(C) 2004-2011 David Hobday


Warning unreferenced functions removed:
	 FCI_FLOAT_TO_STRING	 in: C:\Program Files\Matrix Multimedia\Flowcode V4\FCD\internals.h
	 FCI_NUMBER_TO_HEX	 in: C:\Program Files\Matrix Multimedia\Flowcode V4\FCD\internals.h
	 FCI_STRING_TO_INT	 in: C:\Program Files\Matrix Multimedia\Flowcode V4\FCD\internals.h
	 FCI_STRING_TO_FLOAT	 in: C:\Program Files\Matrix Multimedia\Flowcode V4\FCD\internals.h
	 Wdt_Delay_S	 in: C:\Program Files\Matrix Multimedia\Flowcode V4\FCD\internals.h
	 Wdt_Delay_Ms	 in: C:\Program Files\Matrix Multimedia\Flowcode V4\FCD\internals.h
	 isinf	 in: C:\Program Files\Matrix Multimedia\Flowcode V4\FCD\internals.h

Warning: function never returns: 'FCM_Test2'
Building CASM file
Memory Usage Report
===================
RAM available:368 bytes, used:36 bytes (9.8%), free:332 bytes (90.2%), 
Heap size:332 bytes, Heap max single alloc:110 bytes
ROM available:4096 words, used:89 words (2.2%), free:4007 words (97.8%)



success

Return code = 0

FINISHED
Attachments
Flowcode1-zuki.fcf
(4 KiB) Downloaded 221 times

nnnnff
Posts: 107
Joined: Tue Oct 04, 2011 8:55 am
Has thanked: 3 times
Been thanked: 6 times
Contact:

Re: for help

Post by nnnnff »

Choose English, compiled without problems.
Just in the choice of Chinese have compiled.
Ask for help. thank you

User avatar
Steve
Matrix Staff
Posts: 3427
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times
Contact:

Re: for help

Post by Steve »

This is a known problem with the Chinese version of Flowcode v4. Basically, using a "connection point" in the "Main" flowchart will cause this problem.

This will be fixed in Flowcode V5. For a workaround, you can use the attached file. Unzip the attachment and copy it into your Flowcode directory. You may want to make a copy of the original FlowZHCN.dll file as a backup.
Attachments
FlowZHCN.zip
(966.22 KiB) Downloaded 1475 times

nnnnff
Posts: 107
Joined: Tue Oct 04, 2011 8:55 am
Has thanked: 3 times
Been thanked: 6 times
Contact:

Re: for help

Post by nnnnff »

Steve wrote:This is a known problem with the Chinese version of Flowcode v4. Basically, using a "connection point" in the "Main" flowchart will cause this problem.

This will be fixed in Flowcode V5. For a workaround, you can use the attached file. Unzip the attachment and copy it into your Flowcode directory. You may want to make a copy of the original FlowZHCN.dll file as a backup.
Steve
Thank you very much. I hope to have the opportunity to meet you. I wish you a happy happy!

Post Reply