Cannot compile to hex, error code 1

A collection of posts and articles on getting started in Flowcode v6

Moderator: Benj

Post Reply
skquah
Posts: 39
Joined: Fri Dec 12, 2014 3:57 pm
Has thanked: 26 times
Been thanked: 10 times
Contact:

Cannot compile to hex, error code 1

Post by skquah »

1) Hello, I am new and just starting to learn about this v6 flow code. I have download the 30 days free trial from the matrix website a few days ago. I have program a simple project and tested successfully compiled into c code, but I am unsuccessful to
compile into hex code and the error code 1 always appears. The error code cautious me to check for any using of c-code in this programming, anyway I did not used any c-code and it ask me to seek technical support .
Now I do not know how to go about it. I need help in order to get further. I intend to buy a licensed v6 pro. once I have learn how to used it efficiently .
2)For your info. My computer is of older version of microsoft window XP professional version 2002, loaded with dot net framework 2.0 , service pack 2, using AMD Athlon XP2000+
I am not sure this computer software still can fit into your v6 product download. Pls advise me what to do next.
I am very interested in this flow code learning. Thank you in advance .

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

Re: Cannot compile to hex, error code 1

Post by medelec35 »

Hi skquah,
Welcome to the forums.

Can you post your flowchart and upload the compiler messages.
You may find it easier just to use Build menu then Compiler messages.
Copy the contents then post in a code window.
Or you can attach a file called Name of your flowchart.msg

I will then see if your flowchart compiles for me ok.

Martin
Martin

skquah
Posts: 39
Joined: Fri Dec 12, 2014 3:57 pm
Has thanked: 26 times
Been thanked: 10 times
Contact:

Re: Cannot compile to hex, error code 1

Post by skquah »

Hello, Martin
Thanks for your help , and I appreciated your fast response

Below is the error code that cannot compiled into hex . and I have attached the flow code file for your
checking .
Target folder: C:\DOCUME~1\Quah\Desktop
Source name: C:\Documents and Settings\Quah\Desktop\1)16F628A, AirConFan.fcfx
Title:
Description:
Device: PIC.16F.16F628A
Generated by: Flowcode v6.1.0.0
Date: Saturday, December 13, 2014 09:24:18
Users: 0
Registered to: 73826825
Licence key: EV28XH
NOT FOR COMMERCIAL USE
http://www.matrixtsl.com
Launching the compiler...
C:\Program Files\Flowcode 6\compilers\pic\boostc\boostc_16F.exe -v -t PIC16F628A "1)16F628A, AirConFan.c"
Launching BoostC...
...
Completed BoostC compilation, return = 1

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


FINISHED
Attachments
1)16F628A, AirConFan.msg.txt
Error message code 1
(678 Bytes) Downloaded 326 times
1)16F628A, AirConFan.fcfx
Flow code file : I have problem to open up this file, it gives error of flowcode fcfx is not a valid win32. I need to open this file after launching the v6 then using existing files. Need your advise of how to overcome this problem.
(40.17 KiB) Downloaded 338 times

User avatar
QMESAR
Valued Contributor
Valued Contributor
Posts: 1287
Joined: Sun Oct 05, 2014 3:20 pm
Location: Russia
Has thanked: 384 times
Been thanked: 614 times
Contact:

Re: Cannot compile to hex, error code 1

Post by QMESAR »

Hi
It does not compile with me for the P16F628 ,I removed all code except the while loop and error 1 is still reported
Attachments
13.12.jpg
13.12.jpg (16.58 KiB) Viewed 15298 times

User avatar
QMESAR
Valued Contributor
Valued Contributor
Posts: 1287
Joined: Sun Oct 05, 2014 3:20 pm
Location: Russia
Has thanked: 384 times
Been thanked: 614 times
Contact:

Re: Cannot compile to hex, error code 1

Post by QMESAR »

Please try to compile this project as it runs 100% with me
Attachments
22.jpg
(290 KiB) Downloaded 2816 times
23.jpg
23.jpg (9.61 KiB) Viewed 15297 times
Test P16F628A.zip
(152.83 KiB) Downloaded 395 times

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

Re: Cannot compile to hex, error code 1

Post by medelec35 »

Hi skquah,
The issue is not with your flowchart but it could be because of compiler settings or your PC operating system.

First within Flowcode select Help, index.
Then in the new window that opens, enter:
compiler options

Then scroll down and select
selecting compiler options (PICmicro)

Make sure that your compiler settings match for your 32 bit operating system.

Are you running any antivirus or firewall that can interfere with the compiler?

Perhaps yo can go in to compiler options and export and post your compiler settings?
You can do this by Build, compiler options. select the pic default, then select export.

Another thing to try is saving flowchart in a newly created folder, then recompile.

Unfortunately I have not got windows xp, so cant see if Flowcode 6.1 is compatible or not?
I believe it is compatible.
Martin

skquah
Posts: 39
Joined: Fri Dec 12, 2014 3:57 pm
Has thanked: 26 times
Been thanked: 10 times
Contact:

Re: Cannot compile to hex, error code 1

Post by skquah »

1) Hi, QMESAR
I have download your test file and it is successfully compiled into hex code without any error.
Thank you to see your test file that can work with my PC software, but where does it go wrong ? I am sure
you have the answer to my problem. Pls advise me what to do next !!
Thanks in advance .

2) Hi, Medelec
i) I have tried to go to flow code select help, index but there is no new window that's open up and I could not see
CODE: SELECT ALL function, so I could not select compiler option PICmicro . Pls advise me where I am wrong
not able to access to this feature. I need further help on this.
ii) FYI. I am not using any antivirus and firewall in my PC .
iii) I have tried to re-saved it to another folder , then re-compiled . I still faced the same previous error .
iv) I will attached file of the compiler setting for your verification and assistance .
Thanks in advance .
3) Sorry, I am very new in this forum and I am not able to use the full feature of all the posting tools yet .
Pls educate me as it goes .
Attachments
compiler setting.FCS
Here is the compiler setting from build option
(807 Bytes) Downloaded 403 times

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

Re: Cannot compile to hex, error code 1

Post by medelec35 »

Hi skquah,
The other thing I was going to suggest was to just save your flowchart as just a basic name, using a to z, A to Z or 0 to 9
skquah wrote: I could not see
CODE: SELECT ALL
I have edited my post to clear confusion,
The CODE: SELECT ALL is automatically placed when the Code icon is selected that is just above the reply message text box.
Its only the wording in green that is taken any notice off.

I will take a look at the settings and let you know.

Martin
Martin

User avatar
QMESAR
Valued Contributor
Valued Contributor
Posts: 1287
Joined: Sun Oct 05, 2014 3:20 pm
Location: Russia
Has thanked: 384 times
Been thanked: 614 times
Contact:

Re: Cannot compile to hex, error code 1

Post by QMESAR »

skquah wrote: I have download your test file and it is successfully compiled into hex code without any error.
Thank you to see your test file that can work with my PC software, but where does it go wrong ?
Hi
I really have no answer to why your project does not compile,as said it does not compile with me as well

I would expect that there is nothing wrong with your FC installation when it compiles my test project correctly
what I would do in your position

(1) I would save this test project with a new name
(2) compile it to see if it still compiles correctly
(3) then slowly add your code block by block and compile at a new block which does not compile then you have to investigate why this block does not compile
(4) Check my Project setting against yours

Hope this help happy to know that my project compiles with you it is something you can build on

User avatar
QMESAR
Valued Contributor
Valued Contributor
Posts: 1287
Joined: Sun Oct 05, 2014 3:20 pm
Location: Russia
Has thanked: 384 times
Been thanked: 614 times
Contact:

Re: Cannot compile to hex, error code 1

Post by QMESAR »

Martin sorry I do not want to hijack the post :D with my limited experience with FC I only advise the things I would do to locate the problem

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

Re: Cannot compile to hex, error code 1

Post by medelec35 »

Hi QMESAR,
QMESAR wrote:Martin sorry I do not want to hijack the post
No your not hijacking post, since objective of your posts have the intention to helping skquah to solve his issue.
Anyone can answer if they think it may help in solving problem.
In my eyes you would be hijacking post if only asking about issue with your flwochart that is unrelated to original posters issue.

Martin
Martin

skquah
Posts: 39
Joined: Fri Dec 12, 2014 3:57 pm
Has thanked: 26 times
Been thanked: 10 times
Contact:

Re: Cannot compile to hex, error code 1

Post by skquah »

Hi, Martin and QMESAR
I have successfully compiled the hex code after re-open up new file and write the previous flow code to try again .
I am so happy today, after listening to both of your careful advise and every items I have to try it out .

I realize my mistake is that I used to saved as on the previous flow code program which reported cannot compiled hex code
to another file folder . And right now I try to re-open up new file and re-do a new flow code program and saved as in a
new file name and now it's work .
I really appreciate and a big thank you to both of you .

By the way, my next step is to load the hex code to the chip PIC 16F628A . I would like to know is that , can I used
the Cytron usb icsp pic programmer as a third party programmer?

User avatar
QMESAR
Valued Contributor
Valued Contributor
Posts: 1287
Joined: Sun Oct 05, 2014 3:20 pm
Location: Russia
Has thanked: 384 times
Been thanked: 614 times
Contact:

Re: Cannot compile to hex, error code 1

Post by QMESAR »

Happy that it is working for you now :D

I do not know this programmer however it should program the hex file to your chip ,I would only advise you to make sure that you have set the Configuration fuses correctly such things as the OSC type and speed setting
under project settings tab , if not the hardware will not run even with good code or hex file

I would advise you to save up a bit of money and purchase a FC license and and EB006V9 programmer which you can program and debug your flowCode then you are setup properly to work the easiest way :D
Good luck
Last edited by QMESAR on Sun Dec 14, 2014 3:37 pm, edited 1 time in total.

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

Re: Cannot compile to hex, error code 1

Post by medelec35 »

Glad your all sorted now.
skquah wrote: I would like to know is that , can I used
the Cytron usb icsp pic programmer as a third party programmer?
Yes you can load the hex file generated by flowcode into your programmer and program chip.

You will need to connect via ICSP connections of your chip.
I following the diagram in the Pickit2 and it works for me:
ISCP.png
(31.67 KiB) Downloaded 8494 times
Perhaps if you can post a circuit diagram, I can help you will all your connections.
QMESAR wrote: I would only advise you to make sure that you have set the Configuration fuses correctly such things as the OSC type and speed setting
under project settings tab , if not the hardware will not run even with good code or hex file
That is so true. I posted information on this here
For example start off with watchdog timer and low voltage programming disabled etc.
Martin

skquah
Posts: 39
Joined: Fri Dec 12, 2014 3:57 pm
Has thanked: 26 times
Been thanked: 10 times
Contact:

Re: Cannot compile to hex, error code 1

Post by skquah »

Hi, QMESAR
Your proposal to have EB006V9 programmer is definitely in my wish list once I am more experience
in writing more complex flow code . At this mean time I will try out the cheaper version usb icsp
programmer . I am definitely interested in buying a license in v6 flowcode . How much is it cost for the
professional version with discount ? My purpose of interest is to design a consumer and industrial product
to sell into the market and factory , also if matrix could help me in learning knowledge, I would be able to
expand it to the college student .
Hi, Martin
Thanks for your icsp circuit connection in the posting. It is great to have this helpful info. to get into the
next step of loading into the chip . I have not got a icsp programmer yet , but I will buy one by
tomorrow and start learning how to download to the chip 16f628A.
Actually, I have fabricated my prototype pcb circuit with 16f628A and its application circuit waiting to be download .
I only need to learn how to use v6 fc and to load it into the this chip . Thanks again for so willingly to help me
further in the icsp connection . I definetely will use this forum to learn and share with others once I have
complete this project in the next few weeks . I am a retired hobbist .

bala
Posts: 1
Joined: Thu Oct 17, 2019 3:05 pm
Contact:

Re: Cannot compile to hex, error code 1

Post by bala »

please help immediately.can't able to convert hex file target arduino nano
Attachments
arun.fcfx
CAN'T ABLE TO CONVERT INTO HEX FILE MARTIN PLEASE HELP
(31.42 KiB) Downloaded 145 times

Post Reply