Page 1 of 1

PIC12F509 Compile Error

Posted: Mon May 20, 2024 12:18 am
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

Re: PIC12F509 Compile Error

Posted: Mon May 20, 2024 8:06 am
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.

Re: PIC12F509 Compile Error

Posted: Mon May 20, 2024 8:10 am
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

Re: PIC12F509 Compile Error

Posted: Mon May 20, 2024 10:19 am
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 ?

Re: PIC12F509 Compile Error

Posted: Mon May 20, 2024 1:47 pm
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

Re: PIC12F509 Compile Error

Posted: Mon May 20, 2024 10:01 pm
by Alan_37
Hi

Yes it worked with V7 all good

Thanks

Re: PIC12F509 Compile Error

Posted: Tue May 21, 2024 1:25 pm
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.

Re: PIC12F509 Compile Error

Posted: Tue May 21, 2024 1:39 pm
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.

Re: PIC12F509 Compile Error

Posted: Tue May 21, 2024 5:39 pm
by Alan_37
Hi Ben

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

Thanks