Compiler error

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Post Reply
oerving
Posts: 4
Joined: Wed Feb 27, 2013 6:39 pm
Has thanked: 2 times
Contact:

Compiler error

Post by oerving »

Hi there

I am new to Flowcode but I have a problem when compiling to HEX.

When starting the compiler, the messages in the compiler window says that the Preprocessor goes OK. Next starts the linker/assembler but then I get an error:
Error: Failed to open:libc.lib16.lib

failure
Return code = -2
Flowcode was not able to assemble the ASM file due to the following reason:
(empty)

The libc.lib16.lib file is in the BoostC/lib directory and the reason field is empty so I have no indication what is missing.

I hope you have some ideas.

Best

Erik

User avatar
Enamul
Posts: 1772
Joined: Mon Mar 05, 2012 11:34 pm
Location: Nottingham, UK
Has thanked: 271 times
Been thanked: 814 times
Contact:

Re: Compiler error

Post by Enamul »

Hi
You can have a look at the following FAQ link...
http://www.matrixmultimedia.com/support ... f=22&t=683
Enamul
University of Nottingham
enamul4mm@gmail.com

kalim007
Posts: 67
Joined: Mon Jan 28, 2013 6:00 am
Has thanked: 20 times
Been thanked: 4 times
Contact:

Re: Compiler error

Post by kalim007 »

Hi,
I am using flowcode 5 and I am getting a different error message. My error message is as follows:

failure
Return code = 1
flowcode was unable to compile the flowchart's C code due to the following errors:
If your flowchart contains C code, please review carefully. If your flowcode contains no C code, or you have thorolly reviewed the code, contact technical support.

In simulation everything works. I am attaching the file here.

Please help you can.
Attachments
Test-Robot.fcf
(14.18 KiB) Downloaded 257 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: Compiler error

Post by medelec35 »

Hi kalim007,
Issue is with PWM 2 is not set up correctly.

First What you need to do is on your control panel select Ext properties (right click on the component) of the top PWM component(PWM Channel 1) and make sure all the settings are correct to produce correct PWM frequency.
Make a note of Period register and Prescaler divide as your need these settings again
Now select Ext properties of PWM 2
Change the properties so PWM Channel is 2.
Change Period register and Prescaler divide to match settings with the other PWM component (PWM 1), the correct PWM frequency should also be shown for PWM 2 which should also match with PWM 1

If the two pwm properties don't match then you will get a preprocessing error.

Martin
Martin

kalim007
Posts: 67
Joined: Mon Jan 28, 2013 6:00 am
Has thanked: 20 times
Been thanked: 4 times
Contact:

Re: Compiler error

Post by kalim007 »

Martin,
Thank you very much. Problem is solved.

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: Compiler error

Post by medelec35 »

Your welcome kalim007.
Thanks for letting us know.

Since you using non free version of Flowcode V5
It would be beneficial to you if registered to use V5 section.
If not registered for V5 then if you post a question relating to a microcontroller that's not in the free edition, you may not get answered (except for "Can you please register for V5 section" etc.

To register take a look here:
http://www.matrixmultimedia.com/mmforum ... =46&t=9958

Martin
Martin

kalim007
Posts: 67
Joined: Mon Jan 28, 2013 6:00 am
Has thanked: 20 times
Been thanked: 4 times
Contact:

Re: Compiler error

Post by kalim007 »

Martin,
I have registered in V5 user. Is there anything else, I need to do in order to get help from this forum.

User avatar
Enamul
Posts: 1772
Joined: Mon Mar 05, 2012 11:34 pm
Location: Nottingham, UK
Has thanked: 271 times
Been thanked: 814 times
Contact:

Re: Compiler error

Post by Enamul »

No. You have now full access to the forum and we all try to support you with our maximum capability.

Welcome to the V5 forum :D
Enamul
University of Nottingham
enamul4mm@gmail.com

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: Compiler error

Post by medelec35 »

We try and give registered uses priority over non registered users, so registering is the best way to get help.

Now your sorted, welcome from me as well.
Martin

kalim007
Posts: 67
Joined: Mon Jan 28, 2013 6:00 am
Has thanked: 20 times
Been thanked: 4 times
Contact:

Re: Compiler error

Post by kalim007 »

Enamul & Martin; thanks for all information. :D

kalim007
Posts: 67
Joined: Mon Jan 28, 2013 6:00 am
Has thanked: 20 times
Been thanked: 4 times
Contact:

Re: Compiler error

Post by kalim007 »

Hi,
I just like to share the following link:

http://youtu.be/XQKLZOtjA9E

Thanks for your help.

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: Compiler error

Post by medelec35 »

That's great!
Its always nice to see someone else's project working. :)

Thanks for sharing.
Martin

dazz
Posts: 1314
Joined: Sun Jan 15, 2012 3:15 pm
Has thanked: 474 times
Been thanked: 458 times
Contact:

Re: Compiler error

Post by dazz »

nice first project

Regards
Dazz
To sign up to the V5 forum follow this link http://www.matrixmultimedia.com/forum_upgrades.php

Post Reply