Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
error compling x.4 rev 747
06-04-2013, 04:03 AM,
#1
error compling x.4 rev 747
hello i have been getting these errors compiling and i get no highlighted code?
thanks fred


Board: Pinguino 2550
Proc: 18f2550
File: C:\x4-easy-rev685mod\examples\06.Sensors\TSOP1738\ir-detector.pde
error while compiling
check highlighted lines in your codeBoard: Pinguino 2550
Proc: 18f2550
File: C:\x4-easy-rev685mod\examples\06.Sensors\Ping\Ping.pde
error while compiling
check highlighted lines in your code
Reply
06-04-2013, 12:02 PM,
#2
RE: error compling x.4 rev 747
Look at stdout
Hit F8 to see it or open it from its folder

John
Reply
06-04-2013, 12:59 PM,
#3
RE: error compling x.4 rev 747
(06-04-2013, 04:03 AM)derf158 Wrote: hello i have been getting these errors compiling and i get no highlighted code?
thanks fred


Board: Pinguino 2550
Proc: 18f2550
File: C:\x4-easy-rev685mod\examples\06.Sensors\TSOP1738\ir-detector.pde
error while compiling
check highlighted lines in your codeBoard: Pinguino 2550
Proc: 18f2550
File: C:\x4-easy-rev685mod\examples\06.Sensors\Ping\Ping.pde
error while compiling
check highlighted lines in your code
Ok I will look at that.
Reply
06-04-2013, 11:03 PM,
#4
RE: error compling x.4 rev 747
(06-04-2013, 12:59 PM)derf158 Wrote:
(06-04-2013, 04:03 AM)derf158 Wrote: hello i have been getting these errors compiling and i get no highlighted code?
thanks fred


Board: Pinguino 2550
Proc: 18f2550
File: C:\x4-easy-rev685mod\examples\06.Sensors\TSOP1738\ir-detector.pde
error while compiling
check highlighted lines in your codeBoard: Pinguino 2550
Proc: 18f2550
File: C:\x4-easy-rev685mod\examples\06.Sensors\Ping\Ping.pde
error while compiling
check highlighted lines in your code
Ok I will look at that.
this what stdout shows.
C:\x4-easy-rev685mod\source\main.asm:48:Error[113] Symbol not previously defined (_GetSystemClock).

C:\x4-easy-rev685mod\source\main.asm:4371:Error[113] Symbol not previously defined (_GetSystemClock).

C:\x4-easy-rev685mod\source\main.asm:4371:Error[113] Symbol not previously defined (_GetSystemClock).

C:/x4-easy-rev685mod/p8/include/pinguino/core/interrupt.c:276: warning 59: function 'OnTimer0' must return value

C:/x4-easy-rev685mod/p8/include/pinguino/core/digitalw.c:172: warning 154: converting integral to pointer without a cast

from type 'int register'

to type 'unsigned-char generic* fixed'

C:/x4-easy-rev685mod/p8/include/pinguino/core/digitalw.c:172: WARNING: casting `(generic*)(non-pointer)' -- assuming __data space

C:/x4-easy-rev685mod/p8/include/pinguino/core/digitalw.c:205: warning 154: converting integral to pointer without a cast

from type 'int register'

to type 'unsigned-char generic* fixed'

C:/x4-easy-rev685mod/p8/include/pinguino/core/digitalw.c:238: warning 154: converting integral to pointer without a cast

from type 'int register'

to type 'unsigned-char generic* fixed'

C:/x4-easy-rev685mod/p8/include/pinguino/core/digitalw.c:254: warning 154: converting integral to pointer without a cast

from type 'int register'

to type 'unsigned-char generic* fixed'

C:/x4-easy-rev685mod/p8/include/pinguino/core/digitalw.c:258: warning 154: converting integral to pointer without a cast

from type 'int register'

to type 'unsigned-char generic* fixed'

C:/x4-easy-rev685mod/p8/include/pinguino/core/digitalw.c:263: warning 154: converting integral to pointer without a cast

from type 'int register'

to type 'unsigned-char generic* fixed'

C:/x4-easy-rev685mod/p8/include/pinguino/core/pwm.c:75: warning 112: function 'GetSystemClock' implicit declaration

C:/x4-easy-rev685mod/p8/include/pinguino/core/pwm.c:75: warning 84: 'auto' variable 'GetSystemClock' may be used before initialization

C:/x4-easy-rev685mod/p8/include/pinguino/core/pwm.c:75: warning 84: 'auto' variable 'GetSystemClock' may be used before initialization

C:/x4-easy-rev685mod/p8/include/pinguino/core/stdio.c:168: warning 85: in function pprinti unreferenced function argument : 'separator'

C:/x4-easy-rev685mod/p8/include/pinguino/core/stdio.c:299: warning 85: in function pprintfl unreferenced function argument : 'separator'

C:/x4-easy-rev685mod/p8/include/pinguino/core/stdio.c:377: warning 196: pointer target lost const qualifier
Reply
07-04-2013, 07:18 AM,
#5
RE: error compling x.4 rev 747
Hi

GetSystemClock is available only on Pinguino32 boards.


Bye Bye, Moreno
Reply
07-04-2013, 01:42 PM,
#6
RE: error compling x.4 rev 747
(07-04-2013, 07:18 AM)moreno Wrote: Hi

GetSystemClock is available only on Pinguino32 boards.


Bye Bye, Moreno
ok ,but this example should work on 8 bit pic i have x.4 set for 8 bit 18f4550. i do not understand.
Reply
07-04-2013, 01:59 PM,
#7
RE: error compling x.4 rev 747
Hi

No, not all the examples work on all kind of boards, and not all the commands are defined on all boards.

I checked 06.Sensors\TSOP1738\ir-detector.pde and it do not have any reference to GetSystemClock, have you added other parts of code??


Bye Bye, Moreno
Reply
07-04-2013, 02:26 PM,
#8
RE: error compling x.4 rev 747
(07-04-2013, 01:59 PM)moreno Wrote: Hi

No, not all the examples work on all kind of boards, and not all the commands are defined on all boards.

I checked 06.Sensors\TSOP1738\ir-detector.pde and it do not have any reference to GetSystemClock, have you added other parts of code??


Bye Bye, Moreno
no i have not, but these examples work fine in X.3 for the 18f4550 and 18f2550. i have been going back and forth with x.3 and x.4 to determine what works.
Reply
07-04-2013, 04:31 PM,
#9
RE: error compling x.4 rev 747
I think some core code was changed but not finished and so you get the error.

John
Reply
07-04-2013, 08:48 PM,
#10
RE: error compling x.4 rev 747
I have just compiled ir-detector.pde without any error (x.4 rev747). The problem seems to come from x4-easy-rev685mod which use some old libraries. I think it's time Avrin makes a new package Wink or just copy files from rev747 over the old ones.

Actually, GetSystemClock() is only for PIC32MX but should be renamed as System.getCpuFrequency() which is already available for PIC18F if you need to know the current CPU speed.

SystemGetClock() also exits for 8-bit (TODO : Increase the consistency of all the function names !) but is an internal C function used in different libraries of which pwm.c (called from ir-detector.pde - Quod Erat Demonstrandum).

FYI, oscillator library (core/oscillator.c) is a work in progress (any help is welcome Wink). Of course, as usual, all new commands are not documented but they are listed in p8/pdl/system.pdl.

Régis
It is easier to complain than it is to do, but it is better to do than it is to complain.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)