Jump to content

Recommended Posts

Posted

Hello,

I read that: http://www.midibox.org/dokuwiki/doku.php?id=using_pic18f4620 (it seems to be obsolete, but...)

I read that too: http://www.midibox.org/dokuwiki/doku.php?id=mios_pic18f4620

I tried to change pic18F452 by pic18F4620 in makefile.orig in order to compile the code especially for the pic18F4620.

here is the complain (I also enabled the warning):

H:\MIDIBOX\protodeck\_Code\protodeck\protodeck_CORE_1>make
rm -rf _output/*
rm -rf _output
rm -rf *.cod *.map *.lst
rm -rf *.hex
mkdir -p _output
sh ./bin/mios-gpasm -c -p p18f4620 -I./src -I ./include/asm -I ./include/share -I ./modules/app_lcd/dummy -DDEBUG_MODE=0  -DSTACK_HEAD=0x37f -DSTACK_IRQ_
HEAD=0x33f -I ./modules/mios_wrapper modules/mios_wrapper/mios_wrapper.asm  -o _output/mios_wrapper.o
sh ./bin/mios-gpasm -c -p p18f4620 -I./src -I ./include/asm -I ./include/share -I ./modules/app_lcd/dummy -DDEBUG_MODE=0   modules/app_lcd/dummy/app_lcd.
asm -o _output/app_lcd.o
sh ./bin/mios-sdcc -c -mpic16 -p18f4620 --fommit-frame-pointer --optimize-goto --optimize-cmp   --obanksel=2  -I./src -I ./include/c -I ./include/share -
DDEBUG_MODE=0  main.c -o _output/main.o
main.c:227: warning 85: in function MPROC_NotifyFoundEvent unreferenced function argument : 'entry'
main.c:227: warning 85: in function MPROC_NotifyFoundEvent unreferenced function argument : 'evnt0'
main.c:227: warning 85: in function MPROC_NotifyFoundEvent unreferenced function argument : 'evnt1'
main.c:227: warning 85: in function MPROC_NotifyFoundEvent unreferenced function argument : 'evnt2'
main.c:242: warning 85: in function MPROC_NotifyReceivedByte unreferenced function argument : 'byte'
main.c:309: warning 85: in function ENC_NotifyChange unreferenced function argument : 'encoder'
main.c:309: warning 85: in function ENC_NotifyChange unreferenced function argument : 'incrementer'
main.c:331: warning 85: in function AIN_NotifyChange unreferenced function argument : 'pin_value'
./bin/mios-gpasm modifies _output/main.asm, result in _output/main__mios-gpasm-tmp.asm
gplink -s ./etc/lkr/p18f4620.lkr -m -o project.hex  ./lib/libsdcc.lib ./lib/pic18f4620.lib _output/mios_wrapper.o _output/app_lcd.o _output/main.o
./lib/pic18f4620.lib: No such file or directory
make: *** [project.hex] Error 1

indeed ./lib/pic18f4620.lib doesn't exist.

should I forget the specific compilation and use all the pic18f452 libs as usual?

should I dig further and make my compilation for my p18f4620 ?

any ideas would be welcome :)

Posted

You are trying to compile an application from a release package, which only contains the files which were required for the release itself, and no variants.

Solution: use the MIOS base package to get all files.

Or better: since you are planning to integrate the application into the repository anyhow, download the repository, setup the environment variables (MIOS_PATH and MIOS_BIN_PATH), remove all directories of the release package which don't belong to the

application itself, rename Makefile.org to Makefile and compile there.

Best Regards, Thorsten.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...