Page 1 of 1

PIC16F1824 PWM

Posted: Sun Aug 27, 2017 5:35 pm
by Osta
Error Code

Re: PIC16F1824 PWM

Posted: Sun Aug 27, 2017 5:41 pm
by Osta
Does not compile

Re: PIC16F1824 PWM

Posted: Sun Aug 27, 2017 8:42 pm
by medelec35
I Have moved topic from Fixed bugs to Bug reports.
Compiles for me ok:

Code: Select all

Device:        PIC.16F.16F1824
Generated by:  Flowcode v7.2.1.4
Date:          Sunday, August 27, 2017 20:20:51
Users:         1
Registered to: Martin
Licence key:   BA48R5
http://www.matrixtsl.com
Launching the compiler...
C:\Program Files (x86)\Flowcode 7\compilers\pic\bin\xc8.exe  --chip=16F1824 "TX.c" --MSGDISABLE=359,1273,1388
Microchip MPLAB XC8 C Compiler (Free Mode) V1.41
Build date: Jan 24 2017
Part Support Version: 1.41
Copyright (C) 2017 Microchip Technology Inc.
License type: Node Configuration

. . . . . .

TX.c: 191: (1257) local variable "_FCR_RETVAL" is used but never given a value (warning)

Memory Summary:
    Program space        used    BFh (   191) of  1000h words   (  4.7%)
    Data space           used    24h (    36) of   100h bytes   ( 14.1%)
    EEPROM space         used     0h (     0) of   100h bytes   (  0.0%)
    Data stack space     used     0h (     0) of    DBh bytes   (  0.0%)
    Configuration bits   used     2h (     2) of     2h words   (100.0%)
    ID Location space    used     0h (     0) of     4h bytes   (  0.0%)


You have compiled in FREE mode.
Using Omniscient Code Generation that is available in PRO mode,
you could have produced up to 60% smaller and 400% faster code.
See http://www.microchip.com/MPLABXCcompilers for more information.


Launching the linker/assembler...
C:\Program Files (x86)\Flowcode 7\tools\DoNothing\DoNothing.exe  


FINISHED


As a complete guess, Perhaps it is something to do with language settings?
Have you tried changing to English and seeing it it will compile for you?

Re: PIC16F1824 PWM

Posted: Sun Aug 27, 2017 9:37 pm
by Osta
If I remove the delay, then everything is fine ...

Re: PIC16F1824 PWM

Posted: Sun Aug 27, 2017 9:42 pm
by Osta
It appeared with the latest update

Re: PIC16F1824 PWM

Posted: Sun Aug 27, 2017 10:20 pm
by medelec35
Take a look at how much program space your flowchart is using when you compiled it (99.7%) compared to when I compiled it (4.7%) and that was with the delay!

The Reason your first flowchart did not compile was due to using too much program space.
Not sure how such a small flowchart can use up lots of rom when you try to compile, but not when I compile it?

Re: PIC16F1824 PWM

Posted: Mon Aug 28, 2017 12:58 am
by Osta
Yes, I noticed it!
But I can not understand why.
EDIT:
Rearranged the program.
And checked with every update.
That's what happened ....
And with it does not compile and there is a point on PWM
And with it does not compile and there is a point on PWM
Flowcode_7_Latest_240817.jpg (26.48 KiB) Viewed 11588 times
This compiles
This compiles
Flowcode_7_Latest_170717.jpg (92.86 KiB) Viewed 11588 times
EDIT2:
It turns out that the last update introduces an error in the compiler.

Re: PIC16F1824 PWM

Posted: Tue Aug 29, 2017 9:28 am
by LeighM
Thanks for the report.
Seems that simulation code is erroneously getting created as part of the download code.
We will investigate.

Re: PIC16F1824 PWM

Posted: Mon Sep 04, 2017 4:17 pm
by LeighM
Updated PWM component attached,
to go into Flowcode7\components directory.
This should reduce the download code size

Re: PIC16F1824 PWM

Posted: Tue Sep 05, 2017 8:07 am
by Osta
Thanks for the correction!
Yes, the code has become smaller.
But the simulation indicator remained.

Re: PIC16F1824 PWM

Posted: Tue Sep 05, 2017 9:11 am
by LeighM
But the simulation indicator remained.
That is a new feature that indicates when the PWM is enabled.
Do you have a problem with it?

Re: PIC16F1824 PWM

Posted: Tue Sep 05, 2017 10:26 am
by Osta
Hi LeighM !!
I did not know about it.
I apologize.
Everything else works !!!
Thank you!!!!!!!!

Re: PIC16F1824 PWM

Posted: Tue Sep 05, 2017 10:29 am
by LeighM
Ah, good then :D

Re: PIC16F1824 PWM

Posted: Tue Sep 05, 2017 10:45 am
by Osta
I am very sorry !!!
Please see what I'm doing wrong ...
Or is it a compiler error?
Thank you!!! :?