C Code OSCCON unidentified

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

Moderator: Benj

Post Reply
alanwms
Posts: 59
Joined: Tue Sep 16, 2008 2:09 pm
Location: Minnesota USA
Contact:

C Code OSCCON unidentified

Post by alanwms »

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: 1939
Joined: Wed Aug 27, 2008 10:31 pm
Location: Netherlands
Contact:

Re: C Code OSCCON unidentified

Post by kersing »

Change it to upper case, so

Code: Select all

OSCCON = 0x70;
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis

alanwms
Posts: 59
Joined: Tue Sep 16, 2008 2:09 pm
Location: Minnesota USA
Contact:

Re: C Code OSCCON unidentified

Post by alanwms »

Thank you

Post Reply