Hi,
you can use simple flash tool to flash afx file to target, see
Standalone Flash Programmer | MCU on Eclipse
it's for download s19 file but the method is the same for afx file.
if above can not help. to solve your problem, we need:
1. your CW version info.
2. error message screenshot
3. what chip do you work with?
4. can you successfully download a project to chip via debugger?
Have a great day,
Jennie Zhang
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------