Re: PIC32MZ bootlader Harmony (USB). Help with the ld file for application.
Sounds like you'll have to dig in and debug it.
- add printfs showing memory address, and contents before/after each block write
- carefully verify that the whole block is written exactly (2K in PIC32MZ)
I can only guess but possibly a mixup in the virtual/physical addresses, or in the source/destination addresses.