microsoft / uf2-samdx1

USB Mass Storage bootloader (based on UF2) for SAMD21 and SAMD51
Other
251 stars 309 forks source link

Atmel Studio support --> How-to (enhancement & solution) #23

Open ericbaril72 opened 7 years ago

ericbaril72 commented 7 years ago

Solution: Atmel studio supports external makefiles projects( using an available Extension ).

-- Importing the project -- 1- Tools/Extension and Updates --> Available Downloads -->"Create Project from Makefile" 2- Tools/"Create Project from Makefile" --> Select the directory whre it is located

-- Building the bootloader project -- /Build/Build

-- Creating the .uf2 files -- /Debug/Options --> Build Events -->Post-build event command line ( will add theese commands in the auto-generated makefile )

------ event command line start ------- node $(Configuration)/scripts/bin2uf2.js $(Configuration)/$(OutputFileName).bin $(OutputFileName) mv $(OutputFileName).uf2 $(Configuration)/ ------ event command line end -------

make sure the bin2uf2.js script has been copied into your current project $(Configuration)/scripts/bin2uf2.js