This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

ld.exe: cannot open output file myapp.out: Invalid argument

I build my code in a command line script, outside of CCS (Version: 7.4.0.00015), since its faster (I suppose because CCS does not  check if it needs to reconstruct the makefile)

This has worked fine for months,now suddenly the build fails with this error, 

c:/ti/gcc-arm-none-eabi-6-2017-q1-update/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/bin/ld.exe: cannot open output file myapp.out: Invalid argument

This only happens after I have loaded the .out file (i.e the .out file ld complained about) to my board via the debugger (Connect Target, Reload Program)

It looks like CCS has not closed the .out file so the ld program can't generate it

If I exit from CCS, the build looks fine - exiting debug mode is not enough 

Anyone else seen this? Any solutions ?

Thanks

  • It sounds like CCS is holding on to the file after the program load, even if the debug session is terminated. It is an issue that I have heard reported before but was never able to reproduce.

    Note that the CCS version being used is very old and unsupported. Can you try using the latest version (12.4) and see if the issue persists?

    Thanks

    ki