When I build PSoC6 project, sometimes it appear build error: "Hex file generation step failed, see output window for more information." If choose clean and build , will be successful. But it need more time to build all files. When I modify any software , such as main.c file, build error again. I don't know the reason.
Do you mean it always fails for re-building? Can you show the error log in the output window? maybe need you attach your test project here.
It not always fail for re-building, occasionally failed. Sometimes, if modify ".c" or other, re-building failed, but clean and build will be OK. Errors are more likely to occur. If use code example, sometimes also fail.