ds30 Loader free edition forums
PIC18F4680 - overwriting previous address contents - Printable Version

+- ds30 Loader free edition forums (https://picbootloader.com/forum)
+-- Forum: Support (https://picbootloader.com/forum/forumdisplay.php?fid=3)
+--- Forum: 8-bit firmwares (https://picbootloader.com/forum/forumdisplay.php?fid=7)
+--- Thread: PIC18F4680 - overwriting previous address contents (/showthread.php?tid=540)



PIC18F4680 - overwriting previous address contents - lambcutlet - 2013-01-29

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)


RE: PIC18F4680 - overwriting previous address contents - Mikael Gustavsson - 2013-02-02

Hi,
Please post the entire MPLAB X project.


RE: PIC18F4680 - overwriting previous address contents - lambcutlet - 2013-02-04

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


RE: PIC18F4680 - overwriting previous address contents - Mikael Gustavsson - 2013-02-08

Thanks. Unfortunately I don't consider MPLAB X mature enough, the MPLAB X files are removed from the ds30 Loader package now.


RE: PIC18F4680 - overwriting previous address contents - lambcutlet - 2013-02-10

OK
i'll use mplab instead of mplabx
thanks for your help


RE: PIC18F4680 - overwriting previous address contents - lambcutlet - 2014-01-31

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


RE: PIC18F4680 - overwriting previous address contents - Mikael Gustavsson - 2014-01-31

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.


RE: PIC18F4680 - overwriting previous address contents - lambcutlet - 2014-01-31

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


RE: PIC18F4680 - overwriting previous address contents - Mikael Gustavsson - 2014-02-01

Thanks. So the problem was configuring the application XC8 linker and not with the boot loader?