C Code OSCCON unidentified

A forum where Flowcode v7 user created components can be shared, discussed and reviewed.

Moderator: Benj

alanwms
Posts: 48
Joined: Tue Sep 16, 2008 2:09 pm
Location: Minnesota USA
Has thanked: 3 times
Been thanked: 17 times
Contact:

C Code OSCCON unidentified

Postby alanwms » Fri Nov 10, 2017 11:29 pm

I have pulled a flowcode 5 file into FC7 build V7.2.1.4

Compiles fine in FC5, but the following message appears in FC7 - Can you assist?

Build date: Jan 24 2017
Part Support Version: 1.41
Copyright (C) 2017 Microchip Technology Inc.
License type: Node Configuration

Employing 18F4455 errata work-arounds:
* Corrupted fast interrupt shadow registers
* No stopping on H/W breakpoints after NOP2
Flowcode 7 First Hardware Test Rev7t_v7.c: main()
5959: osccon = 0x70;
^ (192) undefined identifier "osccon"
(908) exit status = 1
(908) exit status = 1

Here is the C code box:
/*
Enter C code below this comment
*/
osccon = 0x70;//8mhz



FINISHED

kersing
Valued Contributor
Valued Contributor
Posts: 1873
Joined: Wed Aug 27, 2008 10:31 pm
Location: Netherlands
Has thanked: 530 times
Been thanked: 1040 times
Contact:

Re: C Code OSCCON unidentified

Postby kersing » Sat Nov 11, 2017 12:11 am

Change it to upper case, so

Code: Select all

OSCCON = 0x70;
These users thanked the author kersing for the post:
Benj (Mon Nov 13, 2017 11:27 am)
Rating: 5.56%
 
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis

alanwms
Posts: 48
Joined: Tue Sep 16, 2008 2:09 pm
Location: Minnesota USA
Has thanked: 3 times
Been thanked: 17 times
Contact:

Re: C Code OSCCON unidentified

Postby alanwms » Sat Nov 11, 2017 2:51 pm

Thank you
These users thanked the author alanwms for the post:
Benj (Mon Nov 13, 2017 11:27 am)
Rating: 5.56%