Linker error in bootloader example

General discussion on mikroPascal.
Post Reply
Author
Message
tull
Posts: 38
Joined: 18 Jan 2006 08:46

Linker error in bootloader example

#1 Post by tull » 11 Nov 2006 14:49

I probe compile bootloader for 32kB MCU 18F4520 on 40MHz:

Code: Select all

program boot_test;

uses boot18_32K;

Org 31720;
begin
    // 16Mhz --> 103
    // 8Mhz -->  51
    // 4Mhz -->  25
    //            |
    //            |
    //            |            look for asynchronous high speed table in PDF for your chip
    //           \ /                    -------- ----------
    //            |
    
    SUsart_Init(255);                       // Init USART at 9600
    If SUsart_Write_Loop('g','r')= true then     // Send 'g' for 5 sec, if 'r'
    Begin                                         // recieved then false else true
          start_program;                          // If true run main
    End else
    Begin
          start_bootload;                         // If false start bootload
    End;
end.
Compiler report this problem:
0:0 E-0 Linker error: FLOC_susart_write_loop: argument not found
0:0 E-0 Linker error: Bank not found: FLOC_susart_write_loop

Tull

lesio
Posts: 10
Joined: 08 Jan 2009 21:38

#2 Post by lesio » 30 Sep 2009 20:19

it is 259

Post Reply

Return to “mikroPascal General”