Skip to content

Commit 2b7600b

Browse files
committed
[BSP] update MDK project file for STM32F4
1 parent 73d5ace commit 2b7600b

File tree

3 files changed

+164
-107
lines changed

3 files changed

+164
-107
lines changed

bsp/stm32f40x/SConstruct

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@ else:
88
RTT_ROOT = os.path.normpath(os.getcwd() + '/../..')
99

1010
sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
11-
from building import *
11+
try:
12+
from building import *
13+
except:
14+
print 'Cannot found RT-Thread root directory, please check RTT_ROOT'
15+
print RTT_ROOT
16+
exit(-1)
1217

1318
TARGET = 'rtthread-stm32f4xx.' + rtconfig.TARGET_EXT
1419

0 commit comments

Comments
 (0)