PIC12F509 Compile Error

For general Flowcode discussion that does not belong in the other sections.
Post Reply
Alan_37
Posts: 173
http://meble-kuchenne.info.pl
Joined: Thu Dec 03, 2020 7:23 pm
Has thanked: 52 times
Been thanked: 25 times

PIC12F509 Compile Error

Post by Alan_37 »

Hello

Trying to Compile a simple flowchart it compiles to C ok but Not to HEX.
Maybe doing something wrong cos long time not using Pic MCU's

Here I Include Fcfx and Error message files

Thanks
Attachments
pic12f509.zip
(24.98 KiB) Downloaded 199 times

medelec35
Matrix Staff
Posts: 1624
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 576 times
Been thanked: 543 times

Re: PIC12F509 Compile Error

Post by medelec35 »

Hi Alan
I would not recommend using 12F509 as the memory is too low to do anything with.
The error is just stating the target device has run out of memory.
For example, if you change the target device to 12F1840, not only will it run a lot faster, but there will also be much more memory available.
Martin

chipfryer27
Valued Contributor
Posts: 1320
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 321 times
Been thanked: 462 times

Re: PIC12F509 Compile Error

Post by chipfryer27 »

Hi Martin

I thought that too but also noticed another strange thing. If you add in IntOsc Helper it informs that there isn't an option for such despite it being a feature of that chip.

Regards

PS
Agree that it would be better to use a newer chip if available

Alan_37
Posts: 173
Joined: Thu Dec 03, 2020 7:23 pm
Has thanked: 52 times
Been thanked: 25 times

Re: PIC12F509 Compile Error

Post by Alan_37 »

Hi ,

I will be using Pic12F683 for this but until they arrive I wanted to experiment with the
509 since I have a couple in stock .

The Pic12F509 has 1.5Kb of memory it should be more then enough for what I want to accomplish
the error is present even if I place just an 1 output in the code .

Is maybe V10 has some overheads in the code , cos that would mean that this 509 is not supported any more .

Also I have license for flowcode 7 and 9 will one of them maybe work ?

chipfryer27
Valued Contributor
Posts: 1320
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 321 times
Been thanked: 462 times

Re: PIC12F509 Compile Error

Post by chipfryer27 »

Hi

The 509 only has a few dozen bytes of RAM, but should work none the less.

Worth trying on v7/9 and I've earlier versions too that I can try, but not until later.

Regards

Alan_37
Posts: 173
Joined: Thu Dec 03, 2020 7:23 pm
Has thanked: 52 times
Been thanked: 25 times

Re: PIC12F509 Compile Error

Post by Alan_37 »

Hi

Yes it worked with V7 all good

Thanks

BenR
Matrix Staff
Posts: 1901
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 494 times
Been thanked: 668 times

Re: PIC12F509 Compile Error

Post by BenR »

Hello,

It's compiling correctly for me in v10. Do you have the latest library updates?

Code: Select all

Memory Summary:
    Program space        used    95h (   149) of   400h words   ( 14.6%)
    Data space           used    10h (    16) of    29h bytes   ( 39.0%)
    EEPROM space         None available
    Data stack space     used     0h (     0) of    10h bytes   (  0.0%)
    Configuration bits   used     1h (     1) of     1h word    (100.0%)
    ID Location space    used     0h (     0) of     4h bytes   (  0.0%)
Aha sorry it's me, the latest PIC_CAL_String library file is causing the problems.

We will investigate.

BenR
Matrix Staff
Posts: 1901
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 494 times
Been thanked: 668 times

Re: PIC12F509 Compile Error

Post by BenR »

Hopefully solved for you now with the latest library updates.

Please reload your project after applying the update and that should solve the compilation error for you. It basically takes the string library out of the compile process for limited memory devices.

Alan_37
Posts: 173
Joined: Thu Dec 03, 2020 7:23 pm
Has thanked: 52 times
Been thanked: 25 times

Re: PIC12F509 Compile Error

Post by Alan_37 »

Hi Ben

Yes I confirm it's now working after the last update

Thanks

Post Reply