EK-RA6M4 Flash not blank error while running the example as per R11AN0570EU0130 using FSP 5.4.0

Hi

I am trying to test the RA6 MCU Advanced Secure Bootloader Design using MCUboot and Code Flash Dualbank Mode example code (firmware update through USB) on the EK-RA6M4 board using FSP 5.4.0.

Downloaded the code and followed instructions to configure and compile the code.

After initial flash erase, I am able to load the primary code and execute. Able to check version info and also able to update the firmware to the secondary image.

The code restarts and shows the updated firmware. But when I try to execute the update again the terminal shows erasing flash, but nothing happens after that. I have used the example codes as is.

On further debugging the code so that it shows Erase success, but it fails at blank check and get the following error FLASH_RESULT_NOT_BLANK. Modified code a bit to print the message

I have tried even by creating fresh projects as per the application note, but still the same issue. First update works, but second update fails with Flash not blank error.

Please let me know if there are any modifications to be done in the code or configuration settings. 

Regards

Sai Ram