PIC32MZ bootloader, unified hex working, bootloaded hex crashes
I am using a PIC32MZ2048EFH144 with Harmony v2.06. I have made an SD card bootloader starting off from the example application in Harmony. If I compile the bootloader with the application as a loadable project everything work as expected, however, when I try to load the application with the bootloader it crashes during the second run-through of SYS_Tasks(). I have a few questions regarding that topic:
By toggling some LEDs I am able to see that the application has been loaded to program memory, but it crashes during a call to:
I comment out this line as the SD card is not crucial to the application, but now it crashes at:
1. Anyone experienced anything like this? Again, when the bootloader and the application is compiled together and loaded by the PICkit as a unified hex, the app runs without error. Could it still be due to a mismatch of the system config in the bootloader project and the application project? But why doesnt it surface in the unified hex?
2. Is there a good way to debug this scenario? Could I generate an hex with debug signals and debug the application after its been loaded into program memory by the bootloader?