Posts: 3
Threads: 1
Joined: Oct 2013
Hi there, i'm having problems making the hex code to program into a pic18f4550. I downloaded DS30 Loader files, but when i build all i get errors.
I am running MPLAB IDE 8.5 and XC8 v1.21.
Am i running the wrong software or versions???
Thanks:
Posts: 623
Threads: 0
Joined: Nov 2009
Hi,
Please zip and post the modified boot loader project.
Thanks
Posts: 3
Threads: 1
Joined: Oct 2013
(2013-10-22, 13:23:11)Mikael Gustavsson Wrote: Hi,
Please zip and post the modified boot loader project.
Thanks
Hi Mikael,
It's just the DS30 Loader firmware_PIC18F.
I'm planning on designing a Solar Charge Controller with a PIC18F4550.
The idea of being able to update the code via USB to the PIC18F4550
is perfect for onsite tweeks or upgrades.
But first i need to be able to compile the DS30 bootloader and program it
into my PIC.
BTW- would it take much to add LCD support to the bootloader?
IE Get the LCD to display text while conected to the pc via USB?
or would it take up to much program space?
Thanks in advance Michael
firmware_PIC18F.zip (Size: 56.25 KB / Downloads: 38)
Posts: 623
Threads: 0
Joined: Nov 2009
I suggest that you read the documentation and modify settings.inc accordingly.
Posts: 3
Threads: 1
Joined: Oct 2013
Hi Mikael,
I was assuming all i have to change is the processor to PIC18F4550
in the Settings.inc, The circuit i was planning on using has a 20Mhz
crystal and 22pf cap's for timing.
When i Build All i get the following;
Debug build of project `C:\DS30-Loader\firmware_PIC18F\ds30Loader.mcp' started.
Language tool versions: MPASMWIN.exe v5.35, mplink.exe v4.35
Preprocessor symbol `__DEBUG' is defined.
Tue Oct 29 09:19:22 2013
----------------------------------------------------------------------
Clean: Deleting intermediary and output files.
Clean: Deleted file "C:\DS30-Loader\firmware_PIC18F\ds30Loader.mcs".
Clean: Done.
Executing: "C:\Microchip\MPASM Suite\MPASMWIN.exe" /q /p18F4550 "ds30loader.asm" /l"ds30loader.lst" /e"ds30loader.err" /d__DEBUG=1
Error[176] C:\DS30-LOADER\FIRMWARE_PIC18F\SRC\SETTINGS.INC 99 : CONFIG Directive Error: (setting "RETEN" not found for the processor 18F4550)
Error[176] C:\DS30-LOADER\FIRMWARE_PIC18F\SRC\SETTINGS.INC 100 : CONFIG Directive Error: (setting "INTOSCSEL" not found for the processor 18F4550)
Error[176] C:\DS30-LOADER\FIRMWARE_PIC18F\SRC\SETTINGS.INC 101 : CONFIG Directive Error: (setting "SOSCSEL" not found for the processor 18F4550)
Error[176] C:\DS30-LOADER\FIRMWARE_PIC18F\SRC\SETTINGS.INC 103 : CONFIG Directive Error: (value "HS1" not valid for setting "FOSC")
Error[176] C:\DS30-LOADER\FIRMWARE_PIC18F\SRC\SETTINGS.INC 104 : CONFIG Directive Error: (setting "PLLCFG" not found for the processor 18F4550)
Error[176] C:\DS30-LOADER\FIRMWARE_PIC18F\SRC\SETTINGS.INC 107 : CONFIG Directive Error: (setting "PWRTEN" not found for the processor 18F4550)
Error[176] C:\DS30-LOADER\FIRMWARE_PIC18F\SRC\SETTINGS.INC 108 : CONFIG Directive Error: (setting "BOREN" not found for the processor 18F4550)
Error[176] C:\DS30-LOADER\FIRMWARE_PIC18F\SRC\SETTINGS.INC 110 : CONFIG Directive Error: (setting "BORPWR" not found for the processor 18F4550)
Error[176] C:\DS30-LOADER\FIRMWARE_PIC18F\SRC\SETTINGS.INC 111 : CONFIG Directive Error: (setting "WDTEN" not found for the processor 18F4550)
Error[176] C:\DS30-LOADER\FIRMWARE_PIC18F\SRC\SETTINGS.INC 113 : CONFIG Directive Error: (setting "CANMX" not found for the processor 18F4550)
Error[176] C:\DS30-LOADER\FIRMWARE_PIC18F\SRC\SETTINGS.INC 114 : CONFIG Directive Error: (setting "T0CKMX" not found for the processor 18F4550)
Error[176] C:\DS30-LOADER\FIRMWARE_PIC18F\SRC\SETTINGS.INC 115 : CONFIG Directive Error: (setting "T3CKMX" not found for the processor 18F4550)
Error[176] C:\DS30-LOADER\FIRMWARE_PIC18F\SRC\SETTINGS.INC 116 : CONFIG Directive Error: (setting "MSSPMSK" not found for the processor 18F4550)
Error[176] C:\DS30-LOADER\FIRMWARE_PIC18F\SRC\SETTINGS.INC 120 : CONFIG Directive Error: (setting "BBSIZ" not found for the processor 18F4550)
Error[101] C:\DS30-LOADER\FIRMWARE_PIC18F\SRC\USER_CODE.INC 36 : ERROR: (Do you need to configura uart pins to be digital? If not, remove this line)
Halting build on first failure as requested.
----------------------------------------------------------------------
Debug build of project `C:\DS30-Loader\firmware_PIC18F\ds30Loader.mcp' failed.
Language tool versions: MPASMWIN.exe v5.35, mplink.exe v4.35
Preprocessor symbol `__DEBUG' is defined.
Tue Oct 29 09:19:23 2013
----------------------------------------------------------------------
BUILD FAILED
Thanks Michael
Posts: 623
Threads: 0
Joined: Nov 2009
Hi,
I am sorry for the late reply.
In the files you posted, settings.inc was not touched at all.
You need to configure the configuration bits, either from code or on Configure menu in MPLAB IDE.
You can remove all config directives in settings.inc and start all over if you like.
How do you setup the config bits in your application?