<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title><![CDATA[ds30 Loader free edition forums - 8-bit firmwares]]></title>
		<link>https://picbootloader.com/forum/</link>
		<description><![CDATA[ds30 Loader free edition forums - https://picbootloader.com/forum]]></description>
		<pubDate>Thu, 29 Oct 2026 02:29:00 +0000</pubDate>
		<generator>MyBB</generator>
		<item>
			<title><![CDATA[PIC16F1939 bootloader assitance]]></title>
			<link>https://picbootloader.com/forum/showthread.php?tid=22584</link>
			<pubDate>Wed, 04 Sep 2024 16:49:27 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://picbootloader.com/forum/member.php?action=profile&uid=0">Ido</a>]]></dc:creator>
			<guid isPermaLink="false">https://picbootloader.com/forum/showthread.php?tid=22584</guid>
			<description><![CDATA[Hello,<br />
<br />
This is my first time using any bootloader so my experience is very limited.<br />
I downloaded the ds30 loader free edition and tried building the project found at "firmware_12F_16F_XC8" folder using  MPLAB X IDE v6.15 <br />
I am having trouble building the project even without making any changes(except putting a comment on "#error Do you need to configura uart pins to be digital? If not, remove this line")<br />
<br />
When trying to build using the version mplab set(pack 1.2.63, xc8 v1.31) I get the following:<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>../src/user_code.inc:110:: error: (800) undefined symbol "EEADR"<br />
../src/user_code.inc:132:: error: (800) undefined symbol "FSR"<br />
../src/user_code.inc:134:: error: (800) undefined symbol "INDF"<br />
../src/user_code.inc:211:: error: (800) undefined symbol "EEDATA"<br />
../src/uart.inc:128:: error: (800) undefined symbol "SPBRG"<br />
../src/uart.inc:135:: error: (800) undefined symbol "SPBRGH"<br />
../src/uart.inc:137:: error: (800) undefined symbol "BAUDCTL"</code></div></div><br />
<br />
<br />
When trying pack 1.6.241 and xc8 v1.31 :<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>"G:&#92;Microchip&#92;xc8&#92;v2.31&#92;bin&#92;xc8-cc.exe" -c  -mcpu=16F1938  -D__DEBUG=1  -mdebugger=none  -mdfp="G:/Microchip/MPLABX/v6.15/packs/Microchip/PIC12-16F1xxx_DFP/1.6.241/xc8"  -fno-short-double -fno-short-float -O0 -fasmfile -maddrqual=ignore -xassembler-with-cpp -mwarn=-3 -Wa,-a -DXPRJ_default=default  -msummary=-psect,-class,+mem,-hex,-file  -ginhx32 -Wl,--data-init -mno-keep-startup -mno-osccal -mno-resetbits -mno-save-resetbits -mno-download -mno-stackcall -mno-default-config-bits -std=c99 -gdwarf-3 -mstack=compiled:auto:auto  -o build/default/debug/_ext/1360937237/ds30loader.o  ../src/ds30loader.s <br />
Non line specific message::: warning: (1020) unknown attribute "CONFIGPROG" in chipinfo file "G:/Microchip/MPLABX/v6.15/packs/Microchip/PIC12-16F1xxx_DFP/1.6.241/xc8&#92;pic&#92;dat&#92;ini&#92;16f1938.ini" at line 185<br />
Non line specific message::: warning: (1020) unknown attribute "IDLOCPROG" in chipinfo file "G:/Microchip/MPLABX/v6.15/packs/Microchip/PIC12-16F1xxx_DFP/1.6.241/xc8&#92;pic&#92;dat&#92;ini&#92;16f1938.ini" at line 195<br />
Non line specific message::: warning: (1020) unknown attribute "CONFIGPROG" in chipinfo file "G:/Microchip/MPLABX/v6.15/packs/Microchip/PIC12-16F1xxx_DFP/1.6.241/xc8&#92;pic&#92;dat&#92;ini&#92;16f1938.ini" at line 185<br />
Non line specific message::: warning: (1020) unknown attribute "IDLOCPROG" in chipinfo file "G:/Microchip/MPLABX/v6.15/packs/Microchip/PIC12-16F1xxx_DFP/1.6.241/xc8&#92;pic&#92;dat&#92;ini&#92;16f1938.ini" at line 195<br />
"G:&#92;Microchip&#92;xc8&#92;v2.31&#92;bin&#92;xc8-cc.exe"  -mcpu=16F1938 -Wl,-Map=dist/default/debug/ds30Loader_12F_16F.X.debug.map  -D__DEBUG=1  -mdebugger=none  -DXPRJ_default=default  -Wl,--defsym=__MPLAB_BUILD=1  -mdfp="G:/Microchip/MPLABX/v6.15/packs/Microchip/PIC12-16F1xxx_DFP/1.6.241/xc8"  -fno-short-double -fno-short-float -O0 -fasmfile -maddrqual=ignore -xassembler-with-cpp -mwarn=-3 -Wa,-a -msummary=-psect,-class,+mem,-hex,-file  -ginhx32 -Wl,--data-init -mno-keep-startup -mno-osccal -mno-resetbits -mno-save-resetbits -mno-download -mno-stackcall -mno-default-config-bits -std=c99 -gdwarf-3 -mstack=compiled:auto:auto        -Wl,--memorysummary,dist/default/debug/memoryfile.xml -o dist/default/debug/ds30Loader_12F_16F.X.debug.elf  build/default/debug/_ext/1360937237/ds30loader.o    <br />
Non line specific message::: warning: (1020) unknown attribute "CONFIGPROG" in chipinfo file "G:/Microchip/MPLABX/v6.15/packs/Microchip/PIC12-16F1xxx_DFP/1.6.241/xc8&#92;pic&#92;dat&#92;ini&#92;16f1938.ini" at line 185<br />
Non line specific message::: warning: (1020) unknown attribute "IDLOCPROG" in chipinfo file "G:/Microchip/MPLABX/v6.15/packs/Microchip/PIC12-16F1xxx_DFP/1.6.241/xc8&#92;pic&#92;dat&#92;ini&#92;16f1938.ini" at line 195<br />
Non line specific message::: warning: (1020) unknown attribute "CONFIGPROG" in chipinfo file "G:/Microchip/MPLABX/v6.15/packs/Microchip/PIC12-16F1xxx_DFP/1.6.241/xc8&#92;pic&#92;dat&#92;ini&#92;16f1938.ini" at line 185<br />
Non line specific message::: warning: (1020) unknown attribute "IDLOCPROG" in chipinfo file "G:/Microchip/MPLABX/v6.15/packs/Microchip/PIC12-16F1xxx_DFP/1.6.241/xc8&#92;pic&#92;dat&#92;ini&#92;16f1938.ini" at line 195<br />
:0:: error: (500) undefined symbols:<br />
_main(E:&#92;TMP&#92;skek.o) start_initialization(E:&#92;TMP&#92;skek.o) <br />
build/default/debug/_ext/1360937237/ds30loader.o:74:: error: (501) program entry point is defined more than once<br />
(908) exit status = 1</code></div></div><br />
<br />
When trying pack 1.6.241 xc8 2.41:<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>::: error: (2096) undefined symbol "_main" (E:&#92;TMP&#92;xcBsis4.1&#92;driver_tmp_6.o)<br />
::: error: (2096) undefined symbol "start_initialization" (E:&#92;TMP&#92;xcBsis4.1&#92;driver_tmp_6.o)<br />
build/default/debug/_ext/1360937237/ds30loader.o:70:: error: (501) program entry point is defined more than once</code></div></div><br />
<br />
I am not really sure how to tackle the problem since I'm guessing this build has already been tested and works for other people and depending on the version I am using I keep getting different errors.<br />
Any help will be appreciated!]]></description>
			<content:encoded><![CDATA[Hello,<br />
<br />
This is my first time using any bootloader so my experience is very limited.<br />
I downloaded the ds30 loader free edition and tried building the project found at "firmware_12F_16F_XC8" folder using  MPLAB X IDE v6.15 <br />
I am having trouble building the project even without making any changes(except putting a comment on "#error Do you need to configura uart pins to be digital? If not, remove this line")<br />
<br />
When trying to build using the version mplab set(pack 1.2.63, xc8 v1.31) I get the following:<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>../src/user_code.inc:110:: error: (800) undefined symbol "EEADR"<br />
../src/user_code.inc:132:: error: (800) undefined symbol "FSR"<br />
../src/user_code.inc:134:: error: (800) undefined symbol "INDF"<br />
../src/user_code.inc:211:: error: (800) undefined symbol "EEDATA"<br />
../src/uart.inc:128:: error: (800) undefined symbol "SPBRG"<br />
../src/uart.inc:135:: error: (800) undefined symbol "SPBRGH"<br />
../src/uart.inc:137:: error: (800) undefined symbol "BAUDCTL"</code></div></div><br />
<br />
<br />
When trying pack 1.6.241 and xc8 v1.31 :<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>"G:&#92;Microchip&#92;xc8&#92;v2.31&#92;bin&#92;xc8-cc.exe" -c  -mcpu=16F1938  -D__DEBUG=1  -mdebugger=none  -mdfp="G:/Microchip/MPLABX/v6.15/packs/Microchip/PIC12-16F1xxx_DFP/1.6.241/xc8"  -fno-short-double -fno-short-float -O0 -fasmfile -maddrqual=ignore -xassembler-with-cpp -mwarn=-3 -Wa,-a -DXPRJ_default=default  -msummary=-psect,-class,+mem,-hex,-file  -ginhx32 -Wl,--data-init -mno-keep-startup -mno-osccal -mno-resetbits -mno-save-resetbits -mno-download -mno-stackcall -mno-default-config-bits -std=c99 -gdwarf-3 -mstack=compiled:auto:auto  -o build/default/debug/_ext/1360937237/ds30loader.o  ../src/ds30loader.s <br />
Non line specific message::: warning: (1020) unknown attribute "CONFIGPROG" in chipinfo file "G:/Microchip/MPLABX/v6.15/packs/Microchip/PIC12-16F1xxx_DFP/1.6.241/xc8&#92;pic&#92;dat&#92;ini&#92;16f1938.ini" at line 185<br />
Non line specific message::: warning: (1020) unknown attribute "IDLOCPROG" in chipinfo file "G:/Microchip/MPLABX/v6.15/packs/Microchip/PIC12-16F1xxx_DFP/1.6.241/xc8&#92;pic&#92;dat&#92;ini&#92;16f1938.ini" at line 195<br />
Non line specific message::: warning: (1020) unknown attribute "CONFIGPROG" in chipinfo file "G:/Microchip/MPLABX/v6.15/packs/Microchip/PIC12-16F1xxx_DFP/1.6.241/xc8&#92;pic&#92;dat&#92;ini&#92;16f1938.ini" at line 185<br />
Non line specific message::: warning: (1020) unknown attribute "IDLOCPROG" in chipinfo file "G:/Microchip/MPLABX/v6.15/packs/Microchip/PIC12-16F1xxx_DFP/1.6.241/xc8&#92;pic&#92;dat&#92;ini&#92;16f1938.ini" at line 195<br />
"G:&#92;Microchip&#92;xc8&#92;v2.31&#92;bin&#92;xc8-cc.exe"  -mcpu=16F1938 -Wl,-Map=dist/default/debug/ds30Loader_12F_16F.X.debug.map  -D__DEBUG=1  -mdebugger=none  -DXPRJ_default=default  -Wl,--defsym=__MPLAB_BUILD=1  -mdfp="G:/Microchip/MPLABX/v6.15/packs/Microchip/PIC12-16F1xxx_DFP/1.6.241/xc8"  -fno-short-double -fno-short-float -O0 -fasmfile -maddrqual=ignore -xassembler-with-cpp -mwarn=-3 -Wa,-a -msummary=-psect,-class,+mem,-hex,-file  -ginhx32 -Wl,--data-init -mno-keep-startup -mno-osccal -mno-resetbits -mno-save-resetbits -mno-download -mno-stackcall -mno-default-config-bits -std=c99 -gdwarf-3 -mstack=compiled:auto:auto        -Wl,--memorysummary,dist/default/debug/memoryfile.xml -o dist/default/debug/ds30Loader_12F_16F.X.debug.elf  build/default/debug/_ext/1360937237/ds30loader.o    <br />
Non line specific message::: warning: (1020) unknown attribute "CONFIGPROG" in chipinfo file "G:/Microchip/MPLABX/v6.15/packs/Microchip/PIC12-16F1xxx_DFP/1.6.241/xc8&#92;pic&#92;dat&#92;ini&#92;16f1938.ini" at line 185<br />
Non line specific message::: warning: (1020) unknown attribute "IDLOCPROG" in chipinfo file "G:/Microchip/MPLABX/v6.15/packs/Microchip/PIC12-16F1xxx_DFP/1.6.241/xc8&#92;pic&#92;dat&#92;ini&#92;16f1938.ini" at line 195<br />
Non line specific message::: warning: (1020) unknown attribute "CONFIGPROG" in chipinfo file "G:/Microchip/MPLABX/v6.15/packs/Microchip/PIC12-16F1xxx_DFP/1.6.241/xc8&#92;pic&#92;dat&#92;ini&#92;16f1938.ini" at line 185<br />
Non line specific message::: warning: (1020) unknown attribute "IDLOCPROG" in chipinfo file "G:/Microchip/MPLABX/v6.15/packs/Microchip/PIC12-16F1xxx_DFP/1.6.241/xc8&#92;pic&#92;dat&#92;ini&#92;16f1938.ini" at line 195<br />
:0:: error: (500) undefined symbols:<br />
_main(E:&#92;TMP&#92;skek.o) start_initialization(E:&#92;TMP&#92;skek.o) <br />
build/default/debug/_ext/1360937237/ds30loader.o:74:: error: (501) program entry point is defined more than once<br />
(908) exit status = 1</code></div></div><br />
<br />
When trying pack 1.6.241 xc8 2.41:<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>::: error: (2096) undefined symbol "_main" (E:&#92;TMP&#92;xcBsis4.1&#92;driver_tmp_6.o)<br />
::: error: (2096) undefined symbol "start_initialization" (E:&#92;TMP&#92;xcBsis4.1&#92;driver_tmp_6.o)<br />
build/default/debug/_ext/1360937237/ds30loader.o:70:: error: (501) program entry point is defined more than once</code></div></div><br />
<br />
I am not really sure how to tackle the problem since I'm guessing this build has already been tested and works for other people and depending on the version I am using I keep getting different errors.<br />
Any help will be appreciated!]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Help needed for PIC18F87J60 bootloader]]></title>
			<link>https://picbootloader.com/forum/showthread.php?tid=22477</link>
			<pubDate>Sat, 31 Dec 2022 16:23:08 +0100</pubDate>
			<dc:creator><![CDATA[<a href="https://picbootloader.com/forum/member.php?action=profile&uid=531744">galttar</a>]]></dc:creator>
			<guid isPermaLink="false">https://picbootloader.com/forum/showthread.php?tid=22477</guid>
			<description><![CDATA[Hello everyone.<br />
<br />
I'm already use ds30 loader for a long time and now I'm trying to compile a new version to test.<br />
Will post what I did until now without success.<br />
<br />
I'm using MPLAB X IDE v6.05 with MPLAB XC8 Compiler.<br />
<br />
First I opened firmware_18F_XC8 project from source code.<br />
On Project Properties I changed to PIC18F87J60 and chose pic-as. I tried with XC8 but I couldn't go ahead.<br />
<br />
<img src="https://i.postimg.cc/nrRnhfcz/Project-Properties.png" loading="lazy"  alt="[Image: Project-Properties.png]" class="mycode_img" /><br />
<br />
<span style="font-weight: bold;" class="mycode_b">On settings.inc</span><br />
<br />
Configured the processor:<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>;-------------------------------------------------------------------------------<br />
; Device<br />
;-------------------------------------------------------------------------------<br />
        processor       18F87J60                    ;xxx</code></div></div><br />
I'm using a crystal of 25MHz than changed the configuration for that.<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>;-------------------------------------------------------------------------------<br />
; User preferences<br />
;-------------------------------------------------------------------------------<br />
        #define         OSCF            25000000    //xxx oscillator frequency (including pll)<br />
        #define         BLINIT          2000        //xxx hello receive timeout [ms]<br />
        #define         HELLOTRIES      2           //xxx number of non hello characters received before branching to the user application<br />
        #define         BLTIME          2000        //xxx data receive timeout [ms]</code></div></div><br />
I'm using the UART 1 than I'm using the default configuration.<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>;-------------------------------------------------------------------------------<br />
; UART settings<br />
;-------------------------------------------------------------------------------<br />
        #define         USE_UART1       1           //xxx uncomment to use uart1<br />
        ;#define        USE_UART2       1           //xxx uncomment to use uart2<br />
        #define         BAUDRATE        115200      //xxx baudrate<br />
        ;#define        USE_ABAUD       1           //xxx uncomment to use auto baud rate detection, READ ERRATA FIRST<br />
        #define         USE_BRG16       1           //xxx uncomment to use 16-bit brg<br />
<br />
        ;#define        USE_TXENABLE    1           //xxx uncomment to use a tx enable pin<br />
        #ifdef USE_TXENABLE<br />
            #define     TXE_DELAY       10          //xxx time in us to wait before transmitting after pulling the tx enable pin high<br />
            #define     TRISR_TXE       TRISD       //xxx tris register containing tx enable<br />
            #define     LATR_TXE        LATD        //xxx port register containing tx enable<br />
            #define     TRISB_TXE       TRISD0      //xxx tris bit for tx enable<br />
            #define     LATB_TXE        RD0         //xxx port bit for tx enable<br />
        #endif</code></div></div><br />
Changed the configuration bits session for 18F87J60.<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>;-------------------------------------------------------------------------------<br />
; Configuration bits, these macros can be found at the end of the inc-files located in<br />
; C:&#92;Program Files&#92;Microchip&#92;MPASM Suite&#92;<br />
;<br />
; These can also be set in MPLAB IDE instead, they are found in Configure-&gt;Configuration bits...<br />
;-------------------------------------------------------------------------------<br />
<br />
// PIC18F87J60 Configuration Bit Settings<br />
<br />
// 'C' source line config statements<br />
<br />
// CONFIG1L<br />
config WDT = ON         // Watchdog Timer Enable bit (WDT enabled)<br />
config STVR = ON        // Stack Overflow/Underflow Reset Enable bit (Reset on stack overflow/underflow enabled)<br />
config XINST = ON       // Extended Instruction Set Enable bit (Instruction set extension and Indexed Addressing mode enabled)<br />
<br />
// CONFIG1H<br />
config CP0 = OFF        // Code Protection bit (Program memory is not code-protected)<br />
<br />
// CONFIG2L<br />
config FOSC = ECPLL     // Oscillator Selection bits (EC oscillator, PLL enabled and under software control, CLKO function on OSC2)<br />
config FOSC2 = ON       // Default/Reset System Clock Select bit (Clock selected by FOSC1:FOSC0 as system clock is enabled when OSCCON&lt;1:0&gt; = 00)<br />
config FCMEN = ON       // Fail-Safe Clock Monitor Enable (Fail-Safe Clock Monitor enabled)<br />
config IESO = ON        // Two-Speed Start-up (Internal/External Oscillator Switchover) Control bit (Two-Speed Start-up enabled)<br />
<br />
// CONFIG2H<br />
config WDTPS = 32768    // Watchdog Timer Postscaler Select bits (1:32768)<br />
<br />
// CONFIG3L<br />
<br />
// CONFIG3H<br />
config CCP2MX = ON      // ECCP2 MUX bit (ECCP2/P2A is multiplexed with RC1)<br />
config ECCPMX = ON      // ECCP MUX bit (ECCP1 outputs (P1B/P1C) are multiplexed with RE6 and RE5; ECCP3 outputs (P3B/P3C) are multiplexed with RE4 and RE3)<br />
config ETHLED = ON      // Ethernet LED Enable bit (RA0/RA1 are multiplexed with LEDA/LEDB when Ethernet module is enabled and function as I/O when Ethernet is disabled)</code></div></div><br />
<br />
Did all configuration, I started to try compile.<br />
The first problem was with STARTADDR.<br />
<img src="https://i.postimg.cc/tT75M8mb/STARTADDR-error.png" loading="lazy"  alt="[Image: STARTADDR-error.png]" class="mycode_img" /><br />
<br />
Following the code I found that STARTADDR is using BLPL64WP.<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>        #define     STARTADDR               ( MAX_FLASH - (BLPL64WP * 64 * 2) )                 //bootloader placement</code></div></div><br />
But this constant is just defined for 18F and not for 18FJ.<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>        #ifdef IS_18F<br />
            #define     BLPL64WP        4                           //bootloader placement in 64 word pages from end<br />
            #define     BLSIZE64WP      4                           //bootloader size in 64 word pages, used by bootloader protection<br />
<br />
            #define     BLPLP           (BLPL64WP * 64/PAGESIZEW)   //bootloader placement, pages from end<br />
            #define     BLSIZEP         (BLSIZE64WP * 64/PAGESIZEW) //bootloader size [pages], used by bootloader protection<br />
        #endif</code></div></div><br />
Another problem is that, on 18FJ define session, BLPL64WP and BLSIZE64WP are also used.<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>        #ifdef IS_18FJ<br />
            #define     BLPLP512WP      2                           //bootloader placement in 512 word pages from end<br />
            #define     BLSIZE512WP     1                           //bootloader size in 512 word pages, used by bootloader protection<br />
<br />
            #define     BLPLP           (BLPL64WP * 512/PAGESIZEW)  //bootloader placement, pages from end<br />
            #define     BLSIZEP         (BLSIZE64WP * 512/PAGESIZEW)//bootloader size [pages], used by bootloader protection<br />
        #endif</code></div></div><br />
<br />
I tried to solve this errors doing the followed changes.<br />
<br />
On IS_18FJ define session:<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>        #ifdef IS_18FJ<br />
            #define     BLPLP512WP      2                           //bootloader placement in 512 word pages from end<br />
            #define     BLSIZE512WP     1                           //bootloader size in 512 word pages, used by bootloader protection<br />
<br />
            #define     BLPLP           (BLPLP512WP * 512/PAGESIZEW)  //bootloader placement, pages from end<br />
            #define     BLSIZEP         (BLSIZE512WP * 512/PAGESIZEW)//bootloader size [pages], used by bootloader protection<br />
        #endif</code></div></div><br />
On ds30loader.s:<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>        #ifdef IS_18FJ<br />
&nbsp;&nbsp;&nbsp;&nbsp;    #define     STARTADDR               ( MAX_FLASH - (BLPLP512WP * 512 * 2) )                 //bootloader placement<br />
&nbsp;&nbsp;&nbsp;&nbsp;#else<br />
&nbsp;&nbsp;&nbsp;&nbsp;    #define     STARTADDR               ( MAX_FLASH - (BLPL64WP * 64 * 2) )                 //bootloader placement<br />
&nbsp;&nbsp;&nbsp;&nbsp;#endif</code></div></div><br />
Now it´s compiling with success but doesn't work.<br />
The project is attached.<br />
<br />
Any help is welcome.<br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://picbootloader.com/forum/images/attachtypes/zip.gif" title="ZIP File" border="0" alt=".zip" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=354" target="_blank" title="">firmware_18F_XC8_v01.zip</a> (Size: 157.66 KB / Downloads: 5)
<!-- end: postbit_attachments_attachment -->]]></description>
			<content:encoded><![CDATA[Hello everyone.<br />
<br />
I'm already use ds30 loader for a long time and now I'm trying to compile a new version to test.<br />
Will post what I did until now without success.<br />
<br />
I'm using MPLAB X IDE v6.05 with MPLAB XC8 Compiler.<br />
<br />
First I opened firmware_18F_XC8 project from source code.<br />
On Project Properties I changed to PIC18F87J60 and chose pic-as. I tried with XC8 but I couldn't go ahead.<br />
<br />
<img src="https://i.postimg.cc/nrRnhfcz/Project-Properties.png" loading="lazy"  alt="[Image: Project-Properties.png]" class="mycode_img" /><br />
<br />
<span style="font-weight: bold;" class="mycode_b">On settings.inc</span><br />
<br />
Configured the processor:<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>;-------------------------------------------------------------------------------<br />
; Device<br />
;-------------------------------------------------------------------------------<br />
        processor       18F87J60                    ;xxx</code></div></div><br />
I'm using a crystal of 25MHz than changed the configuration for that.<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>;-------------------------------------------------------------------------------<br />
; User preferences<br />
;-------------------------------------------------------------------------------<br />
        #define         OSCF            25000000    //xxx oscillator frequency (including pll)<br />
        #define         BLINIT          2000        //xxx hello receive timeout [ms]<br />
        #define         HELLOTRIES      2           //xxx number of non hello characters received before branching to the user application<br />
        #define         BLTIME          2000        //xxx data receive timeout [ms]</code></div></div><br />
I'm using the UART 1 than I'm using the default configuration.<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>;-------------------------------------------------------------------------------<br />
; UART settings<br />
;-------------------------------------------------------------------------------<br />
        #define         USE_UART1       1           //xxx uncomment to use uart1<br />
        ;#define        USE_UART2       1           //xxx uncomment to use uart2<br />
        #define         BAUDRATE        115200      //xxx baudrate<br />
        ;#define        USE_ABAUD       1           //xxx uncomment to use auto baud rate detection, READ ERRATA FIRST<br />
        #define         USE_BRG16       1           //xxx uncomment to use 16-bit brg<br />
<br />
        ;#define        USE_TXENABLE    1           //xxx uncomment to use a tx enable pin<br />
        #ifdef USE_TXENABLE<br />
            #define     TXE_DELAY       10          //xxx time in us to wait before transmitting after pulling the tx enable pin high<br />
            #define     TRISR_TXE       TRISD       //xxx tris register containing tx enable<br />
            #define     LATR_TXE        LATD        //xxx port register containing tx enable<br />
            #define     TRISB_TXE       TRISD0      //xxx tris bit for tx enable<br />
            #define     LATB_TXE        RD0         //xxx port bit for tx enable<br />
        #endif</code></div></div><br />
Changed the configuration bits session for 18F87J60.<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>;-------------------------------------------------------------------------------<br />
; Configuration bits, these macros can be found at the end of the inc-files located in<br />
; C:&#92;Program Files&#92;Microchip&#92;MPASM Suite&#92;<br />
;<br />
; These can also be set in MPLAB IDE instead, they are found in Configure-&gt;Configuration bits...<br />
;-------------------------------------------------------------------------------<br />
<br />
// PIC18F87J60 Configuration Bit Settings<br />
<br />
// 'C' source line config statements<br />
<br />
// CONFIG1L<br />
config WDT = ON         // Watchdog Timer Enable bit (WDT enabled)<br />
config STVR = ON        // Stack Overflow/Underflow Reset Enable bit (Reset on stack overflow/underflow enabled)<br />
config XINST = ON       // Extended Instruction Set Enable bit (Instruction set extension and Indexed Addressing mode enabled)<br />
<br />
// CONFIG1H<br />
config CP0 = OFF        // Code Protection bit (Program memory is not code-protected)<br />
<br />
// CONFIG2L<br />
config FOSC = ECPLL     // Oscillator Selection bits (EC oscillator, PLL enabled and under software control, CLKO function on OSC2)<br />
config FOSC2 = ON       // Default/Reset System Clock Select bit (Clock selected by FOSC1:FOSC0 as system clock is enabled when OSCCON&lt;1:0&gt; = 00)<br />
config FCMEN = ON       // Fail-Safe Clock Monitor Enable (Fail-Safe Clock Monitor enabled)<br />
config IESO = ON        // Two-Speed Start-up (Internal/External Oscillator Switchover) Control bit (Two-Speed Start-up enabled)<br />
<br />
// CONFIG2H<br />
config WDTPS = 32768    // Watchdog Timer Postscaler Select bits (1:32768)<br />
<br />
// CONFIG3L<br />
<br />
// CONFIG3H<br />
config CCP2MX = ON      // ECCP2 MUX bit (ECCP2/P2A is multiplexed with RC1)<br />
config ECCPMX = ON      // ECCP MUX bit (ECCP1 outputs (P1B/P1C) are multiplexed with RE6 and RE5; ECCP3 outputs (P3B/P3C) are multiplexed with RE4 and RE3)<br />
config ETHLED = ON      // Ethernet LED Enable bit (RA0/RA1 are multiplexed with LEDA/LEDB when Ethernet module is enabled and function as I/O when Ethernet is disabled)</code></div></div><br />
<br />
Did all configuration, I started to try compile.<br />
The first problem was with STARTADDR.<br />
<img src="https://i.postimg.cc/tT75M8mb/STARTADDR-error.png" loading="lazy"  alt="[Image: STARTADDR-error.png]" class="mycode_img" /><br />
<br />
Following the code I found that STARTADDR is using BLPL64WP.<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>        #define     STARTADDR               ( MAX_FLASH - (BLPL64WP * 64 * 2) )                 //bootloader placement</code></div></div><br />
But this constant is just defined for 18F and not for 18FJ.<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>        #ifdef IS_18F<br />
            #define     BLPL64WP        4                           //bootloader placement in 64 word pages from end<br />
            #define     BLSIZE64WP      4                           //bootloader size in 64 word pages, used by bootloader protection<br />
<br />
            #define     BLPLP           (BLPL64WP * 64/PAGESIZEW)   //bootloader placement, pages from end<br />
            #define     BLSIZEP         (BLSIZE64WP * 64/PAGESIZEW) //bootloader size [pages], used by bootloader protection<br />
        #endif</code></div></div><br />
Another problem is that, on 18FJ define session, BLPL64WP and BLSIZE64WP are also used.<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>        #ifdef IS_18FJ<br />
            #define     BLPLP512WP      2                           //bootloader placement in 512 word pages from end<br />
            #define     BLSIZE512WP     1                           //bootloader size in 512 word pages, used by bootloader protection<br />
<br />
            #define     BLPLP           (BLPL64WP * 512/PAGESIZEW)  //bootloader placement, pages from end<br />
            #define     BLSIZEP         (BLSIZE64WP * 512/PAGESIZEW)//bootloader size [pages], used by bootloader protection<br />
        #endif</code></div></div><br />
<br />
I tried to solve this errors doing the followed changes.<br />
<br />
On IS_18FJ define session:<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>        #ifdef IS_18FJ<br />
            #define     BLPLP512WP      2                           //bootloader placement in 512 word pages from end<br />
            #define     BLSIZE512WP     1                           //bootloader size in 512 word pages, used by bootloader protection<br />
<br />
            #define     BLPLP           (BLPLP512WP * 512/PAGESIZEW)  //bootloader placement, pages from end<br />
            #define     BLSIZEP         (BLSIZE512WP * 512/PAGESIZEW)//bootloader size [pages], used by bootloader protection<br />
        #endif</code></div></div><br />
On ds30loader.s:<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>        #ifdef IS_18FJ<br />
&nbsp;&nbsp;&nbsp;&nbsp;    #define     STARTADDR               ( MAX_FLASH - (BLPLP512WP * 512 * 2) )                 //bootloader placement<br />
&nbsp;&nbsp;&nbsp;&nbsp;#else<br />
&nbsp;&nbsp;&nbsp;&nbsp;    #define     STARTADDR               ( MAX_FLASH - (BLPL64WP * 64 * 2) )                 //bootloader placement<br />
&nbsp;&nbsp;&nbsp;&nbsp;#endif</code></div></div><br />
Now it´s compiling with success but doesn't work.<br />
The project is attached.<br />
<br />
Any help is welcome.<br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://picbootloader.com/forum/images/attachtypes/zip.gif" title="ZIP File" border="0" alt=".zip" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=354" target="_blank" title="">firmware_18F_XC8_v01.zip</a> (Size: 157.66 KB / Downloads: 5)
<!-- end: postbit_attachments_attachment -->]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[PIC18F25K50 does not respond]]></title>
			<link>https://picbootloader.com/forum/showthread.php?tid=22455</link>
			<pubDate>Fri, 21 May 2021 04:50:23 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://picbootloader.com/forum/member.php?action=profile&uid=127981">jccortes</a>]]></dc:creator>
			<guid isPermaLink="false">https://picbootloader.com/forum/showthread.php?tid=22455</guid>
			<description><![CDATA[I have a few days, trying to get it to work on the PIC18F25K50 without success<br />
<br />
it never responds, I have tested the port loading a program, and it works correctly, only the bootloader does not work<br />
<br />
I am attaching my project in case you could help me<br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://picbootloader.com/forum/images/attachtypes/zip.gif" title="ZIP File" border="0" alt=".zip" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=353" target="_blank" title="">firmware_PIC18F_25K50_8Mhz_57600baud.zip</a> (Size: 76.09 KB / Downloads: 1)
<!-- end: postbit_attachments_attachment -->]]></description>
			<content:encoded><![CDATA[I have a few days, trying to get it to work on the PIC18F25K50 without success<br />
<br />
it never responds, I have tested the port loading a program, and it works correctly, only the bootloader does not work<br />
<br />
I am attaching my project in case you could help me<br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://picbootloader.com/forum/images/attachtypes/zip.gif" title="ZIP File" border="0" alt=".zip" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=353" target="_blank" title="">firmware_PIC18F_25K50_8Mhz_57600baud.zip</a> (Size: 76.09 KB / Downloads: 1)
<!-- end: postbit_attachments_attachment -->]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[pic18f46k22 bootloader]]></title>
			<link>https://picbootloader.com/forum/showthread.php?tid=22406</link>
			<pubDate>Thu, 27 Aug 2020 09:28:13 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://picbootloader.com/forum/member.php?action=profile&uid=130859">sridhar</a>]]></dc:creator>
			<guid isPermaLink="false">https://picbootloader.com/forum/showthread.php?tid=22406</guid>
			<description><![CDATA[Hi <br />
I am updating pic18f46k22 bootloader to help others in developing bootloader<br />
as it helped me <br />
Best Regards<br />
 R Sridhar<br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://picbootloader.com/forum/images/attachtypes/zip.gif" title="ZIP File" border="0" alt=".zip" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=352" target="_blank" title="">v6 pic18f46k22detected but need  for pic18f46k80 bootloader.zip</a> (Size: 101.35 KB / Downloads: 35)
<!-- end: postbit_attachments_attachment -->]]></description>
			<content:encoded><![CDATA[Hi <br />
I am updating pic18f46k22 bootloader to help others in developing bootloader<br />
as it helped me <br />
Best Regards<br />
 R Sridhar<br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://picbootloader.com/forum/images/attachtypes/zip.gif" title="ZIP File" border="0" alt=".zip" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=352" target="_blank" title="">v6 pic18f46k22detected but need  for pic18f46k80 bootloader.zip</a> (Size: 101.35 KB / Downloads: 35)
<!-- end: postbit_attachments_attachment -->]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[pic18f bootloader purchase]]></title>
			<link>https://picbootloader.com/forum/showthread.php?tid=22379</link>
			<pubDate>Fri, 10 Jul 2020 08:19:52 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://picbootloader.com/forum/member.php?action=profile&uid=130859">sridhar</a>]]></dc:creator>
			<guid isPermaLink="false">https://picbootloader.com/forum/showthread.php?tid=22379</guid>
			<description><![CDATA[Hi<br />
I need boot loader for pic 18f 27q10 micro controller<br />
It will be good if it supports vast series<br />
I want to buy commercial one <br />
Please provide link<br />
Thanks<br />
R Sridhar]]></description>
			<content:encoded><![CDATA[Hi<br />
I need boot loader for pic 18f 27q10 micro controller<br />
It will be good if it supports vast series<br />
I want to buy commercial one <br />
Please provide link<br />
Thanks<br />
R Sridhar]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[pic18f46k22]]></title>
			<link>https://picbootloader.com/forum/showthread.php?tid=22378</link>
			<pubDate>Thu, 09 Jul 2020 07:18:06 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://picbootloader.com/forum/member.php?action=profile&uid=130859">sridhar</a>]]></dc:creator>
			<guid isPermaLink="false">https://picbootloader.com/forum/showthread.php?tid=22378</guid>
			<description><![CDATA[Hi <br />
I am trying to develop bootloader for pic18f46k80 microcontroller<br />
But currently i am having pic18f46k22 microcontroller<br />
So developing my code for that pic18f46k22 microcontroller<br />
<br />
The bootloader can detect the microcontroller <br />
But I can't able to tick write and I don't know why?<br />
<br />
I am attaching my code for reference<br />
Please someone give any suggestions<br />
<br />
Thanks in advance<br />
R Sridhar<br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://picbootloader.com/forum/images/attachtypes/zip.gif" title="ZIP File" border="0" alt=".zip" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=348" target="_blank" title="">v5 pic18f46k22 57600BR switchra6.zip</a> (Size: 101.51 KB / Downloads: 5)
<!-- end: postbit_attachments_attachment -->]]></description>
			<content:encoded><![CDATA[Hi <br />
I am trying to develop bootloader for pic18f46k80 microcontroller<br />
But currently i am having pic18f46k22 microcontroller<br />
So developing my code for that pic18f46k22 microcontroller<br />
<br />
The bootloader can detect the microcontroller <br />
But I can't able to tick write and I don't know why?<br />
<br />
I am attaching my code for reference<br />
Please someone give any suggestions<br />
<br />
Thanks in advance<br />
R Sridhar<br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://picbootloader.com/forum/images/attachtypes/zip.gif" title="ZIP File" border="0" alt=".zip" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=348" target="_blank" title="">v5 pic18f46k22 57600BR switchra6.zip</a> (Size: 101.51 KB / Downloads: 5)
<!-- end: postbit_attachments_attachment -->]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[pic18f27q10]]></title>
			<link>https://picbootloader.com/forum/showthread.php?tid=22341</link>
			<pubDate>Wed, 10 Jun 2020 05:03:18 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://picbootloader.com/forum/member.php?action=profile&uid=130859">sridhar</a>]]></dc:creator>
			<guid isPermaLink="false">https://picbootloader.com/forum/showthread.php?tid=22341</guid>
			<description><![CDATA[Dear Sir<br />
Please anyone can send boot loader code for this controller or similar<br />
to this controller<br />
Thanks<br />
R Sridhar]]></description>
			<content:encoded><![CDATA[Dear Sir<br />
Please anyone can send boot loader code for this controller or similar<br />
to this controller<br />
Thanks<br />
R Sridhar]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[PIC16F1938 bootloader]]></title>
			<link>https://picbootloader.com/forum/showthread.php?tid=22194</link>
			<pubDate>Wed, 21 Aug 2019 06:20:25 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://picbootloader.com/forum/member.php?action=profile&uid=130859">sridhar</a>]]></dc:creator>
			<guid isPermaLink="false">https://picbootloader.com/forum/showthread.php?tid=22194</guid>
			<description><![CDATA[Dear all,<br />
<br />
I have attached the bootloader for PIC16F1938 with little modicafications<br />
in the original code.<br />
It may help someone as like me.<br />
I have used pin RA5 for bootloader mode during power ON condition for <br />
2 seconds , after which it will go to user application.<br />
<br />
Thanks<br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://picbootloader.com/forum/images/attachtypes/zip.gif" title="ZIP File" border="0" alt=".zip" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=338" target="_blank" title="">ds30 Loader -v26 hwlck for boot.zip</a> (Size: 1,022.94 KB / Downloads: 27)
<!-- end: postbit_attachments_attachment -->]]></description>
			<content:encoded><![CDATA[Dear all,<br />
<br />
I have attached the bootloader for PIC16F1938 with little modicafications<br />
in the original code.<br />
It may help someone as like me.<br />
I have used pin RA5 for bootloader mode during power ON condition for <br />
2 seconds , after which it will go to user application.<br />
<br />
Thanks<br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://picbootloader.com/forum/images/attachtypes/zip.gif" title="ZIP File" border="0" alt=".zip" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=338" target="_blank" title="">ds30 Loader -v26 hwlck for boot.zip</a> (Size: 1,022.94 KB / Downloads: 27)
<!-- end: postbit_attachments_attachment -->]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Checksum error in PIC16F873A]]></title>
			<link>https://picbootloader.com/forum/showthread.php?tid=21929</link>
			<pubDate>Wed, 21 Feb 2018 06:13:43 +0100</pubDate>
			<dc:creator><![CDATA[<a href="https://picbootloader.com/forum/member.php?action=profile&uid=127981">jccortes</a>]]></dc:creator>
			<guid isPermaLink="false">https://picbootloader.com/forum/showthread.php?tid=21929</guid>
			<description><![CDATA[Hi, I would like to know why the following error is due<br />
<br />
<img src="http://i64.tinypic.com/mcgbdf.png" loading="lazy"  alt="[Image: mcgbdf.png]" class="mycode_img" /><br />
<br />
the bootloader and the HEX file load correctly, but when you start the write cycle and try to delete it, it fails.<br />
<br />
I would greatly appreciate your help<br />
<br />
thanks]]></description>
			<content:encoded><![CDATA[Hi, I would like to know why the following error is due<br />
<br />
<img src="http://i64.tinypic.com/mcgbdf.png" loading="lazy"  alt="[Image: mcgbdf.png]" class="mycode_img" /><br />
<br />
the bootloader and the HEX file load correctly, but when you start the write cycle and try to delete it, it fails.<br />
<br />
I would greatly appreciate your help<br />
<br />
thanks]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Any support for new PIC18F47K40?]]></title>
			<link>https://picbootloader.com/forum/showthread.php?tid=21910</link>
			<pubDate>Wed, 29 Nov 2017 10:27:49 +0100</pubDate>
			<dc:creator><![CDATA[<a href="https://picbootloader.com/forum/member.php?action=profile&uid=0">ROb</a>]]></dc:creator>
			<guid isPermaLink="false">https://picbootloader.com/forum/showthread.php?tid=21910</guid>
			<description><![CDATA[Hello,<br />
<br />
<br />
  I've been using the free version of DS30Loader with a PIC18F46K22 and needed more flash so am now trying to use the newer PIC18F47K40. The latest version (ds30_Loader_140817) does not seem to support this PIC. Is there a new version of DS30Loader that does support the PIC18F47K40?<br />
Thanks,<br />
Rob]]></description>
			<content:encoded><![CDATA[Hello,<br />
<br />
<br />
  I've been using the free version of DS30Loader with a PIC18F46K22 and needed more flash so am now trying to use the newer PIC18F47K40. The latest version (ds30_Loader_140817) does not seem to support this PIC. Is there a new version of DS30Loader that does support the PIC18F47K40?<br />
Thanks,<br />
Rob]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[PIC18F46K22 no response]]></title>
			<link>https://picbootloader.com/forum/showthread.php?tid=21885</link>
			<pubDate>Tue, 26 Sep 2017 09:53:09 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://picbootloader.com/forum/member.php?action=profile&uid=129762">eur</a>]]></dc:creator>
			<guid isPermaLink="false">https://picbootloader.com/forum/showthread.php?tid=21885</guid>
			<description><![CDATA[Hi<br />
<br />
I'm trying to get ds30loader running on a PIC18F46K22. My config looks like this:<br />
<br />
; CONFIG1H<br />
  CONFIG  FOSC = INTIO67        ; Oscillator Selection bits (Internal oscillator block)<br />
  CONFIG  PLLCFG = OFF          ; 4X PLL Enable (Oscillator used directly)<br />
  CONFIG  PRICLKEN = ON         ; Primary clock enable bit (Primary clock is always enabled)<br />
  CONFIG  FCMEN = OFF           ; Fail-Safe Clock Monitor Enable bit (Fail-Safe Clock Monitor disabled)<br />
  CONFIG  IESO = OFF            ; Internal/External Oscillator Switchover bit (Oscillator Switchover mode disabled)<br />
<br />
; CONFIG2L<br />
  CONFIG  PWRTEN = OFF          ; Power-up Timer Enable bit (Power up timer disabled)<br />
  CONFIG  BOREN = SBORDIS       ; Brown-out Reset Enable bits (Brown-out Reset enabled in hardware only (SBOREN is disabled))<br />
  CONFIG  BORV = 190            ; Brown Out Reset Voltage bits (VBOR set to 1.90 V nominal)<br />
<br />
; CONFIG2H<br />
  CONFIG  WDTEN = OFF           ; Watchdog Timer Enable bits (Watch dog timer is always disabled. SWDTEN has no effect.)<br />
  CONFIG  WDTPS = 32768         ; Watchdog Timer Postscale Select bits (1:32768)<br />
<br />
; CONFIG3H<br />
  CONFIG  CCP2MX = PORTC1       ; CCP2 MUX bit (CCP2 input/output is multiplexed with RC1)<br />
  CONFIG  PBADEN = OFF          ; PORTB A/D Enable bit (PORTB&lt;5:0&gt; pins are configured as digital I/O on Reset)<br />
  CONFIG  CCP3MX = PORTB5       ; P3A/CCP3 Mux bit (P3A/CCP3 input/output is multiplexed with RB5)<br />
  CONFIG  HFOFST = ON           ; HFINTOSC Fast Start-up (HFINTOSC output and ready status are not delayed by the oscillator stable status)<br />
  CONFIG  T3CMX = PORTC0        ; Timer3 Clock input mux bit (T3CKI is on RC0)<br />
  CONFIG  P2BMX = PORTD2        ; ECCP2 B output mux bit (P2B is on RD2)<br />
  CONFIG  MCLRE = EXTMCLR       ; MCLR Pin Enable bit (MCLR pin enabled, RE3 input pin disabled)<br />
<br />
; CONFIG4L<br />
  CONFIG  STVREN = ON           ; Stack Full/Underflow Reset Enable bit (Stack full/underflow will cause Reset)<br />
  CONFIG  LVP = ON              ; Single-Supply ICSP Enable bit (Single-Supply ICSP enabled if MCLRE is also 1)<br />
  CONFIG  XINST = OFF           ; Extended Instruction Set Enable bit (Instruction set extension and Indexed Addressing mode disabled (Legacy mode))<br />
<br />
All memory protection is off too. <br />
<br />
I set OSCF to 16000000<br />
<br />
<br />
I added this to the UserInit macro:<br />
<br />
<br />
<br />
            clrf    ADCON0<br />
            clrf    ADCON1<br />
            clrf    ADCON2<br />
            clrf    ANSELA<br />
            clrf    ANSELB<br />
            clrf    ANSELC<br />
<br />
            clrf    CM1CON0<br />
            clrf    CM2CON0<br />
            clrf    CM2CON1    <br />
<br />
            bcf     TRISA,7<br />
            bcf    LATA, 7<br />
<br />
RA7 is connected to a MUX that multiplexes UART1 to an FTDI cable and a RN171 wifi module. The signal is getting to RX1 no problem, I can see that on my scope. <br />
<br />
I also tried this:<br />
<br />
<br />
    ; Toggle pin, frequency on pin = PIC frequency / 16<br />
    if 1<br />
    bcf    TRISA, 0<br />
tsfloop        bsf LATA, 0<br />
    bcf LATA, 0<br />
    bra tsfloop<br />
    endif<br />
<br />
And yes, the pin wiggles. Yes, I put back "if 0" after that. <br />
<br />
Can I do something when I receive a chracter? If so, what?]]></description>
			<content:encoded><![CDATA[Hi<br />
<br />
I'm trying to get ds30loader running on a PIC18F46K22. My config looks like this:<br />
<br />
; CONFIG1H<br />
  CONFIG  FOSC = INTIO67        ; Oscillator Selection bits (Internal oscillator block)<br />
  CONFIG  PLLCFG = OFF          ; 4X PLL Enable (Oscillator used directly)<br />
  CONFIG  PRICLKEN = ON         ; Primary clock enable bit (Primary clock is always enabled)<br />
  CONFIG  FCMEN = OFF           ; Fail-Safe Clock Monitor Enable bit (Fail-Safe Clock Monitor disabled)<br />
  CONFIG  IESO = OFF            ; Internal/External Oscillator Switchover bit (Oscillator Switchover mode disabled)<br />
<br />
; CONFIG2L<br />
  CONFIG  PWRTEN = OFF          ; Power-up Timer Enable bit (Power up timer disabled)<br />
  CONFIG  BOREN = SBORDIS       ; Brown-out Reset Enable bits (Brown-out Reset enabled in hardware only (SBOREN is disabled))<br />
  CONFIG  BORV = 190            ; Brown Out Reset Voltage bits (VBOR set to 1.90 V nominal)<br />
<br />
; CONFIG2H<br />
  CONFIG  WDTEN = OFF           ; Watchdog Timer Enable bits (Watch dog timer is always disabled. SWDTEN has no effect.)<br />
  CONFIG  WDTPS = 32768         ; Watchdog Timer Postscale Select bits (1:32768)<br />
<br />
; CONFIG3H<br />
  CONFIG  CCP2MX = PORTC1       ; CCP2 MUX bit (CCP2 input/output is multiplexed with RC1)<br />
  CONFIG  PBADEN = OFF          ; PORTB A/D Enable bit (PORTB&lt;5:0&gt; pins are configured as digital I/O on Reset)<br />
  CONFIG  CCP3MX = PORTB5       ; P3A/CCP3 Mux bit (P3A/CCP3 input/output is multiplexed with RB5)<br />
  CONFIG  HFOFST = ON           ; HFINTOSC Fast Start-up (HFINTOSC output and ready status are not delayed by the oscillator stable status)<br />
  CONFIG  T3CMX = PORTC0        ; Timer3 Clock input mux bit (T3CKI is on RC0)<br />
  CONFIG  P2BMX = PORTD2        ; ECCP2 B output mux bit (P2B is on RD2)<br />
  CONFIG  MCLRE = EXTMCLR       ; MCLR Pin Enable bit (MCLR pin enabled, RE3 input pin disabled)<br />
<br />
; CONFIG4L<br />
  CONFIG  STVREN = ON           ; Stack Full/Underflow Reset Enable bit (Stack full/underflow will cause Reset)<br />
  CONFIG  LVP = ON              ; Single-Supply ICSP Enable bit (Single-Supply ICSP enabled if MCLRE is also 1)<br />
  CONFIG  XINST = OFF           ; Extended Instruction Set Enable bit (Instruction set extension and Indexed Addressing mode disabled (Legacy mode))<br />
<br />
All memory protection is off too. <br />
<br />
I set OSCF to 16000000<br />
<br />
<br />
I added this to the UserInit macro:<br />
<br />
<br />
<br />
            clrf    ADCON0<br />
            clrf    ADCON1<br />
            clrf    ADCON2<br />
            clrf    ANSELA<br />
            clrf    ANSELB<br />
            clrf    ANSELC<br />
<br />
            clrf    CM1CON0<br />
            clrf    CM2CON0<br />
            clrf    CM2CON1    <br />
<br />
            bcf     TRISA,7<br />
            bcf    LATA, 7<br />
<br />
RA7 is connected to a MUX that multiplexes UART1 to an FTDI cable and a RN171 wifi module. The signal is getting to RX1 no problem, I can see that on my scope. <br />
<br />
I also tried this:<br />
<br />
<br />
    ; Toggle pin, frequency on pin = PIC frequency / 16<br />
    if 1<br />
    bcf    TRISA, 0<br />
tsfloop        bsf LATA, 0<br />
    bcf LATA, 0<br />
    bra tsfloop<br />
    endif<br />
<br />
And yes, the pin wiggles. Yes, I put back "if 0" after that. <br />
<br />
Can I do something when I receive a chracter? If so, what?]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[PIC18F4550 problem]]></title>
			<link>https://picbootloader.com/forum/showthread.php?tid=21854</link>
			<pubDate>Thu, 01 Dec 2016 04:50:18 +0100</pubDate>
			<dc:creator><![CDATA[<a href="https://picbootloader.com/forum/member.php?action=profile&uid=935">rotting79</a>]]></dc:creator>
			<guid isPermaLink="false">https://picbootloader.com/forum/showthread.php?tid=21854</guid>
			<description><![CDATA[hey htere<br />
<br />
firstly: great bootloader (I've been using it for a long time)<br />
<br />
secondly, Im working on the  PIC18F4550, just because I got a lot of them, but sadly I cannot make it run<br />
<br />
*change the internal oscillator for all options<br />
*disable the ADC, even uncomment the 38-39 lines on the usser_code file<br />
<br />
still finds some other PIC for some reason, in this case the dsPIC33FJ128GP706A<br />
<br />
attached the files and the screenshoot<br />
<br />
thanks in advance<br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://picbootloader.com/forum/images/attachtypes/zip.gif" title="ZIP File" border="0" alt=".zip" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=331" target="_blank" title="">src.zip</a> (Size: 14.36 KB / Downloads: 3)
<!-- end: postbit_attachments_attachment --><br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://picbootloader.com/forum/images/attachtypes/image.gif" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=332" target="_blank" title="">001.jpg</a> (Size: 412.01 KB / Downloads: 16)
<!-- end: postbit_attachments_attachment -->]]></description>
			<content:encoded><![CDATA[hey htere<br />
<br />
firstly: great bootloader (I've been using it for a long time)<br />
<br />
secondly, Im working on the  PIC18F4550, just because I got a lot of them, but sadly I cannot make it run<br />
<br />
*change the internal oscillator for all options<br />
*disable the ADC, even uncomment the 38-39 lines on the usser_code file<br />
<br />
still finds some other PIC for some reason, in this case the dsPIC33FJ128GP706A<br />
<br />
attached the files and the screenshoot<br />
<br />
thanks in advance<br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://picbootloader.com/forum/images/attachtypes/zip.gif" title="ZIP File" border="0" alt=".zip" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=331" target="_blank" title="">src.zip</a> (Size: 14.36 KB / Downloads: 3)
<!-- end: postbit_attachments_attachment --><br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://picbootloader.com/forum/images/attachtypes/image.gif" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=332" target="_blank" title="">001.jpg</a> (Size: 412.01 KB / Downloads: 16)
<!-- end: postbit_attachments_attachment -->]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[PIC16F1455 working]]></title>
			<link>https://picbootloader.com/forum/showthread.php?tid=21850</link>
			<pubDate>Fri, 26 Aug 2016 13:53:55 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://picbootloader.com/forum/member.php?action=profile&uid=369">matherp</a>]]></dc:creator>
			<guid isPermaLink="false">https://picbootloader.com/forum/showthread.php?tid=21850</guid>
			<description><![CDATA[Settings.inc and user.inc attached. The code sets up the clock at 48MHz ready for USB usage and should also work on the 16F1454.  For use on the 16F1459 you will need to set ANSELB to zero in user.inc<br />
<br />
A trivial change is needed to uart.inc to change label for SPBRGL to SPBRG as below:<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ifndef USE_UART1<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ifndef USE_UART2<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;error "No communication is specified"<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;endif<br />
&nbs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p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;uart receive<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   &nbsp;&nbsp;&nbsp;&nbsp;endif<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;endif<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;endif</code></div></div><br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://picbootloader.com/forum/images/attachtypes/zip.gif" title="ZIP File" border="0" alt=".zip" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=329" target="_blank" title="">pic16f1455.zip</a> (Size: 4.77 KB / Downloads: 15)
<!-- end: postbit_attachments_attachment -->]]></description>
			<content:encoded><![CDATA[Settings.inc and user.inc attached. The code sets up the clock at 48MHz ready for USB usage and should also work on the 16F1454.  For use on the 16F1459 you will need to set ANSELB to zero in user.inc<br />
<br />
A trivial change is needed to uart.inc to change label for SPBRGL to SPBRG as below:<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ifndef USE_UART1<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ifndef USE_UART2<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;error "No communication is specified"<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;endif<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;endif<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ifdef USE_UART1<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ifdef USE_UART2<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;error "Both uarts are specified"<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;endif<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#define PIRRCIF_&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PIR1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;uart interupt status register<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#define RCIF_&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RCIF&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp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p;BAUDCTL&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;uart receive<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   &nbsp;&nbsp;&nbsp;&nbsp;endif<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;endif<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;endif</code></div></div><br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://picbootloader.com/forum/images/attachtypes/zip.gif" title="ZIP File" border="0" alt=".zip" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=329" target="_blank" title="">pic16f1455.zip</a> (Size: 4.77 KB / Downloads: 15)
<!-- end: postbit_attachments_attachment -->]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Want not work for me - PIC18F45K22]]></title>
			<link>https://picbootloader.com/forum/showthread.php?tid=21845</link>
			<pubDate>Fri, 01 Apr 2016 14:41:52 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://picbootloader.com/forum/member.php?action=profile&uid=0">martin peevski</a>]]></dc:creator>
			<guid isPermaLink="false">https://picbootloader.com/forum/showthread.php?tid=21845</guid>
			<description><![CDATA[<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://picbootloader.com/forum/images/attachtypes/zip.gif" title="ZIP File" border="0" alt=".zip" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=327" target="_blank" title="">changed_files.zip</a> (Size: 2.85 KB / Downloads: 13)
<!-- end: postbit_attachments_attachment --><br />
   Hello, I made the needed changes but the GUI don't find the bootloader.  Attached are the modified code fragments. I write in C and I'm not sure am I set the internal oscillator frequency right. Anybody have any idea? <br />
<br />
   Thanks in advance <img src="https://picbootloader.com/forum/images/smilies/smile.gif" alt="Smile" title="Smile" class="smilie smilie_1" />]]></description>
			<content:encoded><![CDATA[<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://picbootloader.com/forum/images/attachtypes/zip.gif" title="ZIP File" border="0" alt=".zip" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=327" target="_blank" title="">changed_files.zip</a> (Size: 2.85 KB / Downloads: 13)
<!-- end: postbit_attachments_attachment --><br />
   Hello, I made the needed changes but the GUI don't find the bootloader.  Attached are the modified code fragments. I write in C and I'm not sure am I set the internal oscillator frequency right. Anybody have any idea? <br />
<br />
   Thanks in advance <img src="https://picbootloader.com/forum/images/smilies/smile.gif" alt="Smile" title="Smile" class="smilie smilie_1" />]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[How to prevent EEPROM erase on PIC18F26K80]]></title>
			<link>https://picbootloader.com/forum/showthread.php?tid=21844</link>
			<pubDate>Thu, 24 Mar 2016 00:39:12 +0100</pubDate>
			<dc:creator><![CDATA[<a href="https://picbootloader.com/forum/member.php?action=profile&uid=128677">lasa@kiatronics</a>]]></dc:creator>
			<guid isPermaLink="false">https://picbootloader.com/forum/showthread.php?tid=21844</guid>
			<description><![CDATA[Hi,<br />
<br />
I am using ds30 bootloader for pic 18f26K80 successfully. How can I prevent bootloader from erasing EEprom every time we update the firmware?<br />
<br />
<br />
Thanks]]></description>
			<content:encoded><![CDATA[Hi,<br />
<br />
I am using ds30 bootloader for pic 18f26K80 successfully. How can I prevent bootloader from erasing EEprom every time we update the firmware?<br />
<br />
<br />
Thanks]]></content:encoded>
		</item>
	</channel>
</rss>