Hello Kan!
Sorry for the very late reply, but I've been extremely busy on the application side of this project to fullfill the deadline for prototypes, and having the application code working with all planned functionalities.
The AN2295SW version used for the bootloader test is 9.1.67.0 (based on the changelog file found in the src folder): I think it's the most recent.
Regarding the enableBootMode = 0;
it's just the step in the main() function into bootloader.c where the program jumps to Boot_ResetMCU(), if with debugger I'll execute code step by step.
Of course it's just a variable initialization, and shouldn't create any problems.
I noticed that even commenting it, the problem is just "shifted" couple of lines later, on enableBootMode = 1;
But beside this thanks to your snapshot I'll probably found the problem.
I noticed that the debug configuration you are using is the K-1M 100MHz, while I always tried:
K60D100 (I thought should be ok for silicon release A)
or
K60 (for silicon release Z)
This has been also suggested by my FAE reference a few days later after my question.
The fact is that I didn't found any instructions/notes/readmes on which debug configuration to use: since I
#include "AN2295_TWR_K60D100_cfg.h"
I thought K60D100 debug configuration was ok.
The problem is that I needed to have my prototypes ready in time, so we switched the MCU to silicon Z, and I used the old working code for it.
Now that I have some time I'll try compiling and running the code on a board with an A silicon K60 to see if it works correctly.
I'll let you know the results.
Kind regards,
Luca O.