ds30 Loader free edition forums
Help with PIC18F8621 - 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: Help with PIC18F8621 (/showthread.php?tid=2356)



Help with PIC18F8621 - zhangkehust126 - 2015-07-19

Hi Mikael,

How are you?

I was using ds30_Loader_140817 to program PIC18F8621. As 18F8621 was not supported, I used 18F8622 to hack the GUI. The firmware source code is attached below.
When trying to program the flash memory via the GUI, it failed with verification errors:
-------------------------------------------------------------------------------------------------------------------------------------------------------
Initiating write...
      Searching for bl .
      Found PIC18F8622 fw ver. 3.0.2
      Waiting for the boot loader to be ready...ok
      Parsing hexfile...
            File timestamp: 7/18/2015 5:14:03 PM
            Opening hexfile...ok
            Validating hexfile...ok
            Hex file successfully parsed
      Writing flash....verification error(1), trying again...
      Writing flash...verification error(2), trying again...
      Writing flash...write failed
      Write flash failed
      Tx 217 bytes / Rx 8 bytes / 1.5s
      Write failed
-------------------------------------------------------------------------------------------------------------------------------------------------------
Then I commented out the verification part in the firmware, and the flash memory was written, but incorrectly: the 0x0000 bootloader starting address was erased, only part of the user application source code was written. The original user application software and the hex file exported after flashing PIC memory are attached.

Hope you can help me with this. Looking forward to hearing from you soon!

Regards,
Eric


RE: Help with PIC18F8621 - Mikael Gustavsson - 2015-07-26

Hi,
Please zip and post the entire project.

Thanks
Mikael


RE: Help with PIC18F8621 - zhangkehust126 - 2015-07-26

Hi Mikael,

Attached please see the entire project.

Thanks,
Eric
(2015-07-26, 11:26:07)Mikael Gustavsson Wrote: Hi,
Please zip and post the entire project.

Thanks
Mikael



RE: Help with PIC18F8621 - Mikael Gustavsson - 2015-08-27

For 18F8621 the flash row size is 4 words. Page size is 32 words. In devices.inc it should be
Code:
        #define    PAGESIZEW    32
        #define    ROWSIZEW    4