LiveUpdate_Switcher demo only works the first time
I'm trying to implement a Live Update on a PIC32MZ using the LiveUpdate_Switcher and LiveUpdate_App bootloader demos in Harmony, but I'm having an issue. I flash the evaluation board with the LiveUpdate_Switcher app and I'm able to perform a Live Update with one of the LiveUpdate_App apps using the UnifiedHost Java application. However, the Live Update only works the first time. The second time, the UnifiedHost application apparently completes the update, but the board still runs the previous app and not the new one, as if the bootloader doesn't switch to the new panel.
I modified the original demos to use USB instead of UART, and ported the demos to a chipKIT WiFire and to a Microchip Curiosity PIC32MZ EF boards, so I'm not completely sure that I haven't introduced the issue with my porting. Any suggestions on how to troubleshoot the issue? (There's an old thread with a similar issue, but it didn't provide a solution)
MPLAB X IDE v5.15