Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PIC18F4680 - overwriting previous address contents
#1
hello,
trying to compile your bootloader using MPLABX 1.60 on linux to a pic18f4680
i have attached my 'settings.inc' file, please rename from zip to inc
other mods to files
1. commented out, lines 35,36,37 in user_code.inc. the ADCON1 comment
2. devices_PIC18F.inc - replaced p18F4680.inc with P18F4680.INC, linux is case sensitive.

Now when i compile i get this output below.
i don't know how to resolve this, can you help?

CLEAN SUCCESSFUL (total time: 55ms)
make -f nbproject/Makefile-default.mk SUBPROJECTS= .build-conf
make[1]: Entering directory `/home/kp/store/projects/bootloaders/ds30_loader/ds30_loader_kp_version_pic18f4680/ds30Loader.X'
make -f nbproject/Makefile-default.mk dist/default/production/ds30Loader.X.production.hex
make[2]: Entering directory `/home/kp/store/projects/bootloaders/ds30_loader/ds30_loader_kp_version_pic18f4680/ds30Loader.X'
"/opt/microchip/mplabx/mpasmx/mpasmx" -q -p18f4680 -u \"/home/kp/store/projects/bootloaders/ds30_loader/ds30_loader_kp_version_pic18f4680/ds30Loader.X/../src/ds30loader.asm\"
Message[303] /home/kp/store/projects/bootloaders/ds30_loader/ds30_loader_kp_version_pic18f4680/ds30Loader.X/../src/ds30loader.asm 592 : Program word too large. Truncated to core size. (F76B409C)
Error[118] /home/kp/store/projects/bootloaders/ds30_loader/ds30_loader_kp_version_pic18f4680/ds30Loader.X/../src/ds30loader.asm 592 : Overwriting previous address contents (0000)
Error[118] /home/kp/store/projects/bootloaders/ds30_loader/ds30_loader_kp_version_pic18f4680/ds30Loader.X/../src/ds30loader.asm 592 : Overwriting previous address contents (0001)
Message[303] /home/kp/store/projects/bootloaders/ds30_loader/ds30_loader_kp_version_pic18f4680/ds30Loader.X/../src/ds30loader.asm 592 : Program word too large. Truncated to core size. (2F73656C)
Message[303] /home/kp/store/projects/bootloaders/ds30_loader/ds30_loader_kp_version_pic18f4680/ds30Loader.X/../src/ds30loader.asm 592 : Program word too large. Truncated to core size. (0009C011)
make[2]: Leaving directory `/home/kp/store/projects/bootloaders/ds30_loader/ds30_loader_kp_version_pic18f4680/ds30Loader.X'
make[1]: Leaving directory `/home/kp/store/projects/bootloaders/ds30_loader/ds30_loader_kp_version_pic18f4680/ds30Loader.X'
mv: cannot stat `/home/kp/store/projects/bootloaders/ds30_loader/ds30_loader_kp_version_pic18f4680/ds30Loader.X/../src/ds30loader.O': No such file or directory
make[2]: *** [build/default/production/_ext/1360937237/ds30loader.o] Error 1
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2

BUILD FAILED (exit value 2, total time: 410ms)


Attached Files
.zip   settings.zip (Size: 6.53 KB / Downloads: 4)
Reply
#2
Hi,
Please post the entire MPLAB X project.
Reply
#3
Mikael,

attached is the MPLABx code.
Also using the same source code on windows machine with mplab 8.84 it compiles and functions. also attached.

regards


Attached Files
.zip   ds30loader_mplabx1.60.zip (Size: 92.55 KB / Downloads: 16)
.zip   ds30loader_mplab8.84.zip (Size: 61.46 KB / Downloads: 12)
Reply
#4
Thanks. Unfortunately I don't consider MPLAB X mature enough, the MPLAB X files are removed from the ds30 Loader package now.
Reply
#5
OK
i'll use mplab instead of mplabx
thanks for your help
Reply
#6
finally got the bootloader to work
now using:
MPLABX v2.00, xc8 1.30, fedora 20, ds30_Loader_130708.zip

i think my biggest challenge was figuring this out
'xc8 linker -> Memory model -> Rom Ranges 0-fd00'
when the program complies it leaves room for the bootloader at the end of memory.

now works a treat

mono ds30LoaderGui.exe, OK. but i would like to make one comment it would be nice to have a flashing cursor in the Terminal Tx textbox
apart from that good job
Reply
#7
Thank you for the report. Can you please post the working MPLAB X project.

Problem with a blinking cursor is a problem with the Mono framework. "Nothing" I can do anything about.
Reply
#8
here is the bootloader
the program compressed is 1.3MB too big to attach if you pm me i'll wetransfer it
the bootloader uart and program uart are both set to 57600
the program is cut down from my original, removed the bits you wouldn't be interested in


Attached Files
.zip   ds30_loader_kp_version_pic18f4680.zip (Size: 98.66 KB / Downloads: 11)
Reply
#9
Thanks. So the problem was configuring the application XC8 linker and not with the boot loader?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)