Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
System Library Error
08-01-2016, 12:22 AM,
#1
System Library Error
Hi,

I am new to this forum and I am having a problem with the system Library. I want to use System.reset() from the PIC's system instruction set.
I am using a PIC 2450 with bootloader 4.0. The error is as following:

Code:
[OUT] ERROR: :\pinguino-11\user\source\main.asm:64:Error[113]   Symbol not previously defined: '_System_reset'
[OUT] ERROR: :\pinguino-11\user\source\main.asm:1330:Error[113]   Symbol not previously defined: '_System_reset'
[OUT] ERROR: :\pinguino-11\user\source\main.asm:1330:Error[113]   Symbol not previously defined: '_System_reset'

I found a workaround by using assembly code:
Code:
__asm__("RESET");
but i want to use the system library.

Thanks Big Grin
Reply
08-01-2016, 12:11 PM,
#2
RE: System Library Error
I attach a revised system.pdl. Replace the current file in p8/pdl folder by this one. Then try to compile and upload.
The System_reset and System_unlock functions in the old system.pdl are named SystemReset and SystemUnlock in system.c. That is why I did the changes in the new system.pdl.
André


Attached Files
.pdl   system.pdl (Size: 1.29 KB / Downloads: 1)
Reply
08-01-2016, 12:25 PM,
#3
RE: System Library Error
Thanks gtcbreizh,

it worked!, The result wasn't what I expected though. The micro goes into bootloader mode right away and doesn't leave it.
Thanks again for the quick fix! Big Grin
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)