I'm new with writing a secondary bootloader to my LPC11U67. I was able to erase the flash, nut when I came to write to an address the function Chip_IAP_CopyRamToFlash retutns me a value of 6 - ERR_ISP_COUNT_ERROR which means: Byte count is not multiple of 4 or is not a permitted value.
I was trying to solve it by changing the destination address, the buffer i sent but there is no change, still get the same error.
Can anyone assist me to understand what this error means and how to solve it.