From e5d4b9bb19623c9e643faaaa26e064c891b22afe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Atle=20H=2E=20Havs=C3=B8?= Date: Sat, 28 Jun 2014 18:40:37 +0200 Subject: Initial commit with working USB sending of data to host computer. --- SConstruct | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'SConstruct') diff --git a/SConstruct b/SConstruct index d67ac16..73bc8f7 100644 --- a/SConstruct +++ b/SConstruct @@ -2,14 +2,21 @@ import os env = Environment( ENV = os.environ, + tools = ['gnulink', 'gcc', 'g++', 'gas', 'ar'] ) SConscript('laks/build_rules') -env.SelectMCU('stm32f405rg') +env.SelectMCU('stm32f303cc') env.Append( CPPPATH = ['drivers'], ) -env.Firmware('suzumebachi.elf', Glob('*.cpp') + Glob('drivers/*.cpp')) +#env.Firmware('suzumebachi.elf', Glob('*.cpp') + Glob('drivers/*.cpp')) +env.Firmware('suzumebachi.elf', Glob('*.cpp')) + +env.Command('suzumebachi.bin', 'suzumebachi.elf', '${TOOLCHAIN}objcopy -O binary $SOURCE $TARGET') +env.Command('flash', ['suzumebachi.bin'], 'dfu-util.exe -d 0483:df11 -c 1 -a 0 -s 0x08000000 -D suzumebachi.bin') + +Default('suzumebachi.bin') \ No newline at end of file -- cgit v1.2.3