Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with PIC18F8621
#1
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


Attached Files
.txt   ds30loader.txt (Size: 17.98 KB / Downloads: 2)
.txt   devices_PIC18F.txt (Size: 31.86 KB / Downloads: 1)
.txt   settings.txt (Size: 7.06 KB / Downloads: 1)
.txt   file exproted after programming-hex.txt (Size: 182.96 KB / Downloads: 3)
.txt   original user application software-hex.txt (Size: 166.47 KB / Downloads: 0)
Reply
#2
Hi,
Please zip and post the entire project.

Thanks
Mikael
Reply
#3
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


Attached Files
.zip   firmware_PIC18F.zip (Size: 76.21 KB / Downloads: 5)
Reply
#4
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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)