Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
1154267f2This file is pinned to the selected release. Download the original to open it in your design tool.
Import("env", "projenv")
from shutil import copyfile
def copyhex(*args, **kwargs):
copyfile(str(kwargs['target'][0]), 'hex/'+env['BOARD_MCU']+'.hex')
env.AddPostAction("$BUILD_DIR/${PROGNAME}.hex", copyhex)