Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Compilation error X.4: AnalogInOutSerial.pde
11-01-2013, 12:07 AM, (This post was last modified: 11-01-2013, 12:25 AM by avrin.)
#1
Compilation error X.4: AnalogInOutSerial.pde
Hi

On 8bit cpu(2550,4550,etc)
I've found it can't be compiled examples/03.Analog/AnalogInOutSerial/AnalogInOutSerial.pde on X.4 "rev.647 and later version".

Rev.646 is OK.

source/stdout is:
D:\pinguino\x4-svn\source\main.asm:52:Error[113] Symbol not previously defined (_GetSystemClock).
D:\pinguino\x4-svn\source\main.asm:4630:Error[113] Symbol not previously defined (_GetSystemClock).
D:\pinguino\x4-svn\source\main.asm:4630:Error[113] Symbol not previously defined (_GetSystemClock).

Environment:
Windows7
Pinguino X.4

avrin
Reply
11-01-2013, 07:54 AM,
#2
RE: Compilation error X.4: AnalogInOutSerial.pde
Hi

I think there is a mistake for P8 boards.

GetSystemClock is required in pwm.c but is not defined in system.c as for P32 boards.


Bye Bye, Moreno
Reply
12-01-2013, 06:56 PM,
#3
RE: Compilation error X.4: AnalogInOutSerial.pde
GetSystemClock() is now called System.clock() on P8 and will have to be renamed on P32.




(11-01-2013, 07:54 AM)moreno Wrote: Hi

I think there is a mistake for P8 boards.

GetSystemClock is required in pwm.c but is not defined in system.c as for P32 boards.


Bye Bye, Moreno
It is easier to complain than it is to do, but it is better to do than it is to complain.
Reply
12-01-2013, 10:17 PM,
#4
RE: Compilation error X.4: AnalogInOutSerial.pde
Hi

In this case is necessary modify PWM.C


Bye Bye, Moreno
Reply
15-01-2013, 12:45 AM,
#5
RE: Compilation error X.4: AnalogInOutSerial.pde
Hi,
Thank you, Moreno and regis for reply.

I've tried to make the patch tentatively.

.txt   system.c.patch.txt (Size: 401 bytes / Downloads: 36)

Now I can compile AnalogInOutSerial.pde, but found a issue about Serial print functions.
I'll create a new thread about this issue.


avrin
Reply
20-01-2013, 02:48 AM,
#6
RE: Compilation error X.4: AnalogInOutSerial.pde
Hi,
Here is additional patch to compile AnalogInOutSerial.pde.

.txt   pin.h.patch.txt (Size: 516 bytes / Downloads: 22)
X.4 rev685, 8bit PIC


avrin
Reply
29-01-2013, 01:21 PM,
#7
RE: Compilation error X.4: AnalogInOutSerial.pde
Hi, Regis

On 8bit PIC,
'pwm.c' source code is regression.

rev.687: This is the correct modificatin of changing GetSystemClock() to SystemClock().

rev.690: 'pwm.c' source code is regression into calling GetSystemClock().

Therefore, I can't compile AnalogInOutSerial.pde again.

Would you confirm this issue ?


avrin
Reply
30-01-2013, 12:20 PM,
#8
RE: Compilation error X.4: AnalogInOutSerial.pde
Hi,
Yes I confirm, sorry for that. In order to be coherent with all system.c functions, the actual C function name is SystemGetClock() or System.getClock() under Pinguino IDE.
I'm busy with all oscillator (external but also internal, from 31KHz to 64MHz dependig on PIC18F) and low power (idle, sleep and deep sleep) modes. So this library is quite unstable. I stopped to update files on svn until my own Pinguino version becomes more stable.


(29-01-2013, 01:21 PM)avrin Wrote: Hi, Regis

On 8bit PIC,
'pwm.c' source code is regression.

rev.687: This is the correct modificatin of changing GetSystemClock() to SystemClock().

rev.690: 'pwm.c' source code is regression into calling GetSystemClock().

Therefore, I can't compile AnalogInOutSerial.pde again.

Would you confirm this issue ?


avrin
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)