Hello, I want to rename the flash image file's name after build the project. I find that in project settings, Build Steps menu have post-build steps command. But I can't find the format of the command, or introduce of this function.
The format of the flash image is "ProjectName"_"BuildTime".s19, such as MotorDriver_20190228_221006.s19.
Could you help me?
unfortunately there is a bug (already logged) - post build steps are executed prior s-record file is generated. You can generate s-record with your own name in post build step:
Hope it helps.
It works. but the name now can only be fixed name or use $ which still is a fixed name.
Could the file name auto changed according to the date and time when build the project? although the will lead the file big, but it can be under control.
I see - I didn't get that you like to add time stamp into file name - sorry. So, in this case - you need to add your commands into shell script - in attachment. Copy script into folder where your .elf file is generated (for example Debug_FLASH) and add script and project name as an argument into post build steps:
After build you can find .srec file like this: