Compiler problem PIC 18F4450

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

Post Reply
pilot321
Posts: 9
Joined: Tue Nov 17, 2020 8:29 pm
Been thanked: 1 time
Contact:

Compiler problem PIC 18F4450

Post by pilot321 »

HI
I have a basic license for 8 bit PIC, and BL0080 and BL0011 programmer boards. I have compiled programs successfully to the 16F18877 supplied with the boards.
I have written a program for the 18F4450 chip, but when I try to compile this chip I am unsuccessful. I have attached a screenshot,
could you please advise me how I can compile this chip?
Thanks.
Attachments
Screenshot (4).png
Screenshot (4).png (173.13 KiB) Viewed 3380 times

kersing
Valued Contributor
Valued Contributor
Posts: 2045
Joined: Wed Aug 27, 2008 10:31 pm
Location: Netherlands
Has thanked: 553 times
Been thanked: 1081 times
Contact:

Re: Compiler problem PIC 18F4450

Post by kersing »

Does your flowchart contain C code to set the oscillator settings?
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis

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 problem PIC 18F4450

Post by medelec35 »

The issues are within configuration settings i.e Build, project options, configure.
You will need select the correct oscillator type and change Extended CPU Enable to Disable.
You will be best going over all the options e.g Watchdog Time to disable etc.
Martin

pilot321
Posts: 9
Joined: Tue Nov 17, 2020 8:29 pm
Been thanked: 1 time
Contact:

Re: Compiler problem PIC 18F4450

Post by pilot321 »

Hi
Thanks for getting back to me.
I am not using C code to configure the oscillator, but I have disabled the extended instructions and watchdog timer, and the chip is now compiling.
I am still getting the following warning. ^ (1386) unable to determine the semantics of the configuration setting "FOSC" for register "CONFIG1H" (warning)
I will have another go tomorrow, when I have time.
Thanks again.

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 problem PIC 18F4450

Post by medelec35 »

pilot321 wrote:
Tue Nov 17, 2020 9:58 pm
I am still getting the following warning. ^ (1386) unable to determine the semantics of the configuration setting "FOSC" for register "CONFIG1H" (warning)
That issue I covered by
medelec35 wrote:
Tue Nov 17, 2020 9:17 pm
You will need select the correct oscillator type

The default oscillator type is 15, which is nonsensical.
You will need to select HS,XT internal etc.
Martin

pilot321
Posts: 9
Joined: Tue Nov 17, 2020 8:29 pm
Been thanked: 1 time
Contact:

Re: Compiler problem PIC 18F4450

Post by pilot321 »

Hi Martin
I have changed the Oscillator settings from 15, and tried various combinations of Oscillator types, clock speeds and divide values.
I have managed to flash an LED at approximately I second intervals, but not exactly, also I have tried to display text on the LCD, but to no avail.
Ultimately I want the 18F4450 chip to drive the W5500 ethernet module.
Do you know how I could set the Oscillator settings to get this chip to work correctly?
P.S
I am using the BL0080 board and eblocks boards.

Thanks.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Compiler problem PIC 18F4450

Post by Benj »

Hello,

Here is a file that is preconfigured for the 18F4450 hopefully the display should work and you should get port A flashing on and off with delays of 1 second confirming all the timings are correct.
Demo18F4450.fcfx
(8.26 KiB) Downloaded 158 times

pilot321
Posts: 9
Joined: Tue Nov 17, 2020 8:29 pm
Been thanked: 1 time
Contact:

Re: Compiler problem PIC 18F4450

Post by pilot321 »

Hi
Thanks for the demo program, I have it running, hopefully I will be able to progress.
Thanks for your help.

Post Reply