Hello,
I used a command like this in the makefile, but the makefile reported an error.
But I can generate ota_file.bin with a bat file.
Regards,
Gray.
Hello,
I used a command like this in the makefile, but the makefile reported an error.
copy /V _build\ota_image\release_1.dat+_build\ota_image\release_1.bin _build\ota_image\ota_file.bin
process_begin: CreateProcess(NULL, copy /V _build\ota_image\release_1.dat+_build\ota_image\release_1.bin _build\ota_image\ota_file.bin, ...) failed. make (e=2): The system cannot find the file specified.
But I can generate ota_file.bin with a bat file.
Regards,
Gray.
Hello Gray,
I used a command like this in the makefile, but the makefile reported an error.
I suspect that the problem here is due to your first path argument - specifically, I think that the '+' character is the cause for this. If I recall correctly the '+' character is a special character in the makefile.
_build\ota_image\release_1.dat+_build\ota_image\release_1.bin
Hi Karl.
My purpose is to merge the dat file and the bin file into one bin file.
I would not think you can do so by appending the .bin file path to the .bat file path.
If the '+' character is being interpreted without any specific makefile meaning, then you will still just append the one path string to the other, which is likely why the error reads "cant find the specified file".
You mention that you are able to successfully merge the two files together in your bat script, could you not just do this as an operation following the make command?
Best regards,
Karl