rkujawa / mphidflash

Automatically exported from code.google.com/p/mphidflash
GNU General Public License v3.0
0 stars 0 forks source link

Missing "Program Complete" for non-contiguous addresses #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
When my HEX file data exactly fills a page (eg 02xx) and jumps to a new 
non-contiguous page (eg 05xx), there is no "Program Complete" USB code 06 to 
make the bootloader flush it's buffer to storage

What is the expected output? What do you see instead?
This results in some sections of storage never being written to

What version of the product are you using? On what operating system?
Running V1.3 on Mac XCODE

Please provide any additional information below.
I've been using mphidflash as a basis for a version that needs no user data, so 
there are more changes.
I also had problems with mphidflash trying to write to invalid data, so I added 
ProgramStart / End bounds - you can delete that code from hex.c.
I added a "flushBuffer" routine, and called it from appropriate places.

Final note: using this on PIC24 family, I also needed to divide all write 
addresses by 2, since the PIC24 uses word addresses but the HEX file uses byte 
addresses! I deleted that code from attached hex.c

Original issue reported on code.google.com by iancul...@gmail.com on 8 Feb 2013 at 4:13

Attachments:

GoogleCodeExporter commented 9 years ago
Please confirm this is still an issue on current codeset.

Please report problems (and fixes) individually - marking this combined report 
as "invalid".

Original comment by fnargwibble on 30 Jun 2014 at 7:30