Page 1 of 1

C Code OSCCON unidentified

Posted: Fri Nov 10, 2017 11:29 pm
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

Re: C Code OSCCON unidentified

Posted: Sat Nov 11, 2017 12:11 am
by kersing
Change it to upper case, so

Code: Select all

OSCCON = 0x70;

Re: C Code OSCCON unidentified

Posted: Sat Nov 11, 2017 2:51 pm
by alanwms
Thank you