hi hotas,
FLASH_FlashCommandSequence is copied to RAM flash programming routines. from my experience, the CW version flash programming routine code size is larger than IAR version's, increase buffer[128] to buffer[200] to make sure all the flash programming routine is copied to RAM. please try it.
Have a great day,
Zhang Jun
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------