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.
Compiler problem PIC 18F4450
Moderator: Benj
-
- 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
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
― C.S. Lewis
-
- 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
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.
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
Re: Compiler problem PIC 18F4450
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.
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.
-
- 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
That issue I covered by
The default oscillator type is 15, which is nonsensical.
You will need to select HS,XT internal etc.
Martin
Re: Compiler problem PIC 18F4450
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.
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.
- 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
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Re: Compiler problem PIC 18F4450
Hi
Thanks for the demo program, I have it running, hopefully I will be able to progress.
Thanks for your help.
Thanks for the demo program, I have it running, hopefully I will be able to progress.
Thanks for your help.