Resolved! The last 2 bytes of FLASH cant be written?
I just was testing the bootloader, when it did not respond after writing the flash. Upon inspecting the memory, i found the last 2 bytes have not been written? (i guess the uC went to hard fault or something)It should not be this way?