I tried to compile as the manual says, but i get an error and i don't know why. I cannot make anything because this compiling problems. I will appreciate some help
C:\Gerard\PIC>".\MPASM Suite\mplink" /v ".\MPASM Suite\LKR\12f675.lkr" /m prog.m
ap /o prog.hex prog.o ".\SDCC\lib\pic\libsdcc.lib" ".\SDCC\lib\pic\pic12f675.lib
"
MPLINK 4.04, Linker
Copyright (c) 2006 Microchip Technology Inc.
Error - Coff file '' does not appear to be a valid COFF file.
Error - Could not build member '' in library file '.\SDCC\lib\pic\libsdcc.lib'.
Errors : 2
Warnings : 0
everything is OK until i try to link. this seems a sdcc internal error, but if someone could help...
This is the "code" (just a test :P)
#include "pic12f675.h"
void main() {
while (1);
}
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
this looks like an incompatibility between gplink (used to create the library libsdcc.lib) and mplink...
You might try to use gputils/gplink---though I fear this would call for cygwin (or MSYS) and a manual build of the package.
Anyone out there with (a) the same problems, (b) successful uses of MPLINK, (c) a better idea to get a recent gputils version for windows?
(I will try to figure this out this evening.)
Regards,
Raphael
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Please check your ".\MPASM Suite\LKR\12f675.lkr" whether it contains definitions of DATABANKs or only SHAREBANKs (notions may differ, I only know gputils speech). Your problem might be solved by turning all aliased memory declarations into a single definition of an unaliased memory region, also see https://sourceforge.net/forum/message.php?msg_id=3870641
HTH,
Raphael
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I tried to change the sharebanks by a single databank, as posted in the thread yo posted as "see also ...".
Didn't work. Keeps telling that is a problem with the library file libsdcc.lib
It seems an internal problem of the library. I'll keep trying
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I tried to compile as the manual says, but i get an error and i don't know why. I cannot make anything because this compiling problems. I will appreciate some help
command line out:
C:\Gerard\PIC>".\SDCC\bin\sdcc" -S -mpic14 -p12f675 prog.c
C:\Gerard\PIC>".\MPASM Suite\mpasmwin" /q /o prog.asm
C:\Gerard\PIC>".\MPASM Suite\mplink" /v ".\MPASM Suite\LKR\12f675.lkr" /m prog.m
ap /o prog.hex prog.o ".\SDCC\lib\pic\libsdcc.lib" ".\SDCC\lib\pic\pic12f675.lib
"
MPLINK 4.04, Linker
Copyright (c) 2006 Microchip Technology Inc.
Error - Coff file '' does not appear to be a valid COFF file.
Error - Could not build member '' in library file '.\SDCC\lib\pic\libsdcc.lib'.
Errors : 2
Warnings : 0
everything is OK until i try to link. this seems a sdcc internal error, but if someone could help...
This is the "code" (just a test :P)
#include "pic12f675.h"
void main() {
while (1);
}
Hi,
this looks like an incompatibility between gplink (used to create the library libsdcc.lib) and mplink...
You might try to use gputils/gplink---though I fear this would call for cygwin (or MSYS) and a manual build of the package.
Anyone out there with (a) the same problems, (b) successful uses of MPLINK, (c) a better idea to get a recent gputils version for windows?
(I will try to figure this out this evening.)
Regards,
Raphael
Please check your ".\MPASM Suite\LKR\12f675.lkr" whether it contains definitions of DATABANKs or only SHAREBANKs (notions may differ, I only know gputils speech). Your problem might be solved by turning all aliased memory declarations into a single definition of an unaliased memory region, also see https://sourceforge.net/forum/message.php?msg_id=3870641
HTH,
Raphael
I tried to change the sharebanks by a single databank, as posted in the thread yo posted as "see also ...".
Didn't work. Keeps telling that is a problem with the library file libsdcc.lib
It seems an internal problem of the library. I'll keep trying