Hi
Did you included somthing like:
#pragma stack 0x80 0x32
in your code?
I have no problems compiling my old code with sdcc 2.9
Regards,
jan
Jamie Lawson schrieb:
> I've had no problems using SDCC 2.90 with the pic16 series of chips until
> compiling code for a PIC18F1220/1320.
>
> The test code below compiles fine using SDCC 2.80/gputils 0.13.7,
> but I get the message that follows when using SDCC 2.90/gputils 0.13.7
>
> =========================
>
> #include "pic18fregs.h"
> #include <stdint.h>
>
> uint8_t fn_t(uint8_t x) {
> x++;
> return (x);
> }
>
> void main()
> {
> PORTA = fn_t(0xA5);
> }
>
> ============================
> sdcc -mpic16 -p18f1320 b.c
>
> message: using default linker script
> "/usr/local/share/gputils/lkr/18f1320.lkr"
> warning: relocation of section "stack_section" failed, relocating to a
> shared memory location
> error: linker script has no definition that matches the type of section
> "stack_section"
>
> ===================
>
> Regards,
> Jamie
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Sdcc-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sdcc-user
------------------------------------------------------------------------------
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user