according to the LPC176x, make a new BSP file structure for mb9bf506r

and add a template.ewp file for updating the IAR project

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2095 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
dzzxzz@gmail.com 2012-04-20 03:28:15 +00:00
parent 4f381a1c68
commit b05e37893a
25 changed files with 3966 additions and 2236 deletions

View File

@ -1,16 +1,12 @@
import rtconfig from building import *
Import('RTT_ROOT')
from building import * cwd = GetCurrentDir()
objs = []
src_bsp = ['application.c', 'startup.c', 'board.c', 'led.c', 'console.c'] list = os.listdir(cwd)
src_drv = ['serial.c', 'nand.c']
for d in list:
if GetDepend('RT_USING_RTGUI'): path = os.path.join(cwd, d)
src_drv += ['info.c'] if os.path.isfile(os.path.join(path, 'SConscript')):
objs = objs + SConscript(os.path.join(d, 'SConscript'))
src = src_bsp + src_drv
CPPPATH = [GetCurrentDir()] Return('objs')
CPPDEFINES = []
group = DefineGroup('Startup', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
Return('group')

View File

@ -30,8 +30,6 @@ Export('rtconfig')
# prepare building environment # prepare building environment
objs = PrepareBuilding(env, RTT_ROOT) objs = PrepareBuilding(env, RTT_ROOT)
objs = objs + SConscript('CMSIS/SConscript', variant_dir='build/bsp/Libraries', duplicate=0)
# build program # build program
env.Program(TARGET, objs) env.Program(TARGET, objs)

View File

@ -0,0 +1,9 @@
from building import *
cwd = GetCurrentDir()
src = Glob('*.c')
CPPPATH = [cwd, str(Dir('#'))]
group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH)
Return('group')

View File

@ -0,0 +1,16 @@
from building import *
cwd = GetCurrentDir()
src = Glob('*.c')
# remove no need file.
if GetDepend('RT_USING_LWIP') == False:
SrcRemove(src, 'emac.c')
if GetDepend('RT_USING_DFS') == False:
SrcRemove(src, 'sd.c')
CPPPATH = [cwd]
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
Return('group')

File diff suppressed because it is too large Load Diff

View File

@ -1,10 +1,10 @@
<?xml version="1.0" encoding="iso-8859-1"?> <?xml version="1.0" encoding="iso-8859-1"?>
<workspace> <workspace>
<project> <project>
<path>$WS_DIR$\fm3_easy_kit.ewp</path> <path>$WS_DIR$\project.ewp</path>
</project> </project>
<batchBuild/> <batchBuild/>
</workspace> </workspace>

View File

@ -172,7 +172,7 @@
</Target> </Target>
<Group> <Group>
<GroupName>Startup</GroupName> <GroupName>Applications</GroupName>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg> <tvExpOptDlg>0</tvExpOptDlg>
<cbSel>0</cbSel> <cbSel>0</cbSel>
@ -187,7 +187,7 @@
<TopLine>0</TopLine> <TopLine>0</TopLine>
<CurrentLine>0</CurrentLine> <CurrentLine>0</CurrentLine>
<bDave2>0</bDave2> <bDave2>0</bDave2>
<PathWithFileName>.\application.c</PathWithFileName> <PathWithFileName>applications\application.c</PathWithFileName>
<FilenameWithoutPath>application.c</FilenameWithoutPath> <FilenameWithoutPath>application.c</FilenameWithoutPath>
</File> </File>
<File> <File>
@ -201,11 +201,18 @@
<TopLine>0</TopLine> <TopLine>0</TopLine>
<CurrentLine>0</CurrentLine> <CurrentLine>0</CurrentLine>
<bDave2>0</bDave2> <bDave2>0</bDave2>
<PathWithFileName>.\startup.c</PathWithFileName> <PathWithFileName>applications\startup.c</PathWithFileName>
<FilenameWithoutPath>startup.c</FilenameWithoutPath> <FilenameWithoutPath>startup.c</FilenameWithoutPath>
</File> </File>
</Group>
<Group>
<GroupName>CMSIS</GroupName>
<tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<cbSel>0</cbSel>
<File> <File>
<GroupNumber>1</GroupNumber> <GroupNumber>2</GroupNumber>
<FileNumber>3</FileNumber> <FileNumber>3</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
@ -215,11 +222,11 @@
<TopLine>0</TopLine> <TopLine>0</TopLine>
<CurrentLine>0</CurrentLine> <CurrentLine>0</CurrentLine>
<bDave2>0</bDave2> <bDave2>0</bDave2>
<PathWithFileName>.\board.c</PathWithFileName> <PathWithFileName>CMSIS\core_cm3.c</PathWithFileName>
<FilenameWithoutPath>board.c</FilenameWithoutPath> <FilenameWithoutPath>core_cm3.c</FilenameWithoutPath>
</File> </File>
<File> <File>
<GroupNumber>1</GroupNumber> <GroupNumber>2</GroupNumber>
<FileNumber>4</FileNumber> <FileNumber>4</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
@ -229,13 +236,13 @@
<TopLine>0</TopLine> <TopLine>0</TopLine>
<CurrentLine>0</CurrentLine> <CurrentLine>0</CurrentLine>
<bDave2>0</bDave2> <bDave2>0</bDave2>
<PathWithFileName>.\led.c</PathWithFileName> <PathWithFileName>CMSIS\system_mb9bf50x.c</PathWithFileName>
<FilenameWithoutPath>led.c</FilenameWithoutPath> <FilenameWithoutPath>system_mb9bf50x.c</FilenameWithoutPath>
</File> </File>
<File> <File>
<GroupNumber>1</GroupNumber> <GroupNumber>2</GroupNumber>
<FileNumber>5</FileNumber> <FileNumber>5</FileNumber>
<FileType>1</FileType> <FileType>2</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<Focus>0</Focus> <Focus>0</Focus>
<ColumnNumber>0</ColumnNumber> <ColumnNumber>0</ColumnNumber>
@ -243,11 +250,18 @@
<TopLine>0</TopLine> <TopLine>0</TopLine>
<CurrentLine>0</CurrentLine> <CurrentLine>0</CurrentLine>
<bDave2>0</bDave2> <bDave2>0</bDave2>
<PathWithFileName>.\console.c</PathWithFileName> <PathWithFileName>CMSIS\start_rvds.S</PathWithFileName>
<FilenameWithoutPath>console.c</FilenameWithoutPath> <FilenameWithoutPath>start_rvds.S</FilenameWithoutPath>
</File> </File>
</Group>
<Group>
<GroupName>Drivers</GroupName>
<tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<cbSel>0</cbSel>
<File> <File>
<GroupNumber>1</GroupNumber> <GroupNumber>3</GroupNumber>
<FileNumber>6</FileNumber> <FileNumber>6</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
@ -257,11 +271,11 @@
<TopLine>0</TopLine> <TopLine>0</TopLine>
<CurrentLine>0</CurrentLine> <CurrentLine>0</CurrentLine>
<bDave2>0</bDave2> <bDave2>0</bDave2>
<PathWithFileName>.\serial.c</PathWithFileName> <PathWithFileName>drivers\board.c</PathWithFileName>
<FilenameWithoutPath>serial.c</FilenameWithoutPath> <FilenameWithoutPath>board.c</FilenameWithoutPath>
</File> </File>
<File> <File>
<GroupNumber>1</GroupNumber> <GroupNumber>3</GroupNumber>
<FileNumber>7</FileNumber> <FileNumber>7</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
@ -271,9 +285,51 @@
<TopLine>0</TopLine> <TopLine>0</TopLine>
<CurrentLine>0</CurrentLine> <CurrentLine>0</CurrentLine>
<bDave2>0</bDave2> <bDave2>0</bDave2>
<PathWithFileName>.\nand.c</PathWithFileName> <PathWithFileName>drivers\console.c</PathWithFileName>
<FilenameWithoutPath>console.c</FilenameWithoutPath>
</File>
<File>
<GroupNumber>3</GroupNumber>
<FileNumber>8</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
<Focus>0</Focus>
<ColumnNumber>0</ColumnNumber>
<tvExpOptDlg>0</tvExpOptDlg>
<TopLine>0</TopLine>
<CurrentLine>0</CurrentLine>
<bDave2>0</bDave2>
<PathWithFileName>drivers\led.c</PathWithFileName>
<FilenameWithoutPath>led.c</FilenameWithoutPath>
</File>
<File>
<GroupNumber>3</GroupNumber>
<FileNumber>9</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
<Focus>0</Focus>
<ColumnNumber>0</ColumnNumber>
<tvExpOptDlg>0</tvExpOptDlg>
<TopLine>0</TopLine>
<CurrentLine>0</CurrentLine>
<bDave2>0</bDave2>
<PathWithFileName>drivers\nand.c</PathWithFileName>
<FilenameWithoutPath>nand.c</FilenameWithoutPath> <FilenameWithoutPath>nand.c</FilenameWithoutPath>
</File> </File>
<File>
<GroupNumber>3</GroupNumber>
<FileNumber>10</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
<Focus>0</Focus>
<ColumnNumber>0</ColumnNumber>
<tvExpOptDlg>0</tvExpOptDlg>
<TopLine>0</TopLine>
<CurrentLine>0</CurrentLine>
<bDave2>0</bDave2>
<PathWithFileName>drivers\serial.c</PathWithFileName>
<FilenameWithoutPath>serial.c</FilenameWithoutPath>
</File>
</Group> </Group>
<Group> <Group>
@ -282,8 +338,8 @@
<tvExpOptDlg>0</tvExpOptDlg> <tvExpOptDlg>0</tvExpOptDlg>
<cbSel>0</cbSel> <cbSel>0</cbSel>
<File> <File>
<GroupNumber>2</GroupNumber> <GroupNumber>4</GroupNumber>
<FileNumber>8</FileNumber> <FileNumber>11</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<Focus>0</Focus> <Focus>0</Focus>
@ -296,8 +352,8 @@
<FilenameWithoutPath>clock.c</FilenameWithoutPath> <FilenameWithoutPath>clock.c</FilenameWithoutPath>
</File> </File>
<File> <File>
<GroupNumber>2</GroupNumber> <GroupNumber>4</GroupNumber>
<FileNumber>9</FileNumber> <FileNumber>12</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<Focus>0</Focus> <Focus>0</Focus>
@ -310,8 +366,8 @@
<FilenameWithoutPath>device.c</FilenameWithoutPath> <FilenameWithoutPath>device.c</FilenameWithoutPath>
</File> </File>
<File> <File>
<GroupNumber>2</GroupNumber> <GroupNumber>4</GroupNumber>
<FileNumber>10</FileNumber> <FileNumber>13</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<Focus>0</Focus> <Focus>0</Focus>
@ -324,8 +380,8 @@
<FilenameWithoutPath>idle.c</FilenameWithoutPath> <FilenameWithoutPath>idle.c</FilenameWithoutPath>
</File> </File>
<File> <File>
<GroupNumber>2</GroupNumber> <GroupNumber>4</GroupNumber>
<FileNumber>11</FileNumber> <FileNumber>14</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<Focus>0</Focus> <Focus>0</Focus>
@ -338,8 +394,8 @@
<FilenameWithoutPath>ipc.c</FilenameWithoutPath> <FilenameWithoutPath>ipc.c</FilenameWithoutPath>
</File> </File>
<File> <File>
<GroupNumber>2</GroupNumber> <GroupNumber>4</GroupNumber>
<FileNumber>12</FileNumber> <FileNumber>15</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<Focus>0</Focus> <Focus>0</Focus>
@ -352,8 +408,8 @@
<FilenameWithoutPath>irq.c</FilenameWithoutPath> <FilenameWithoutPath>irq.c</FilenameWithoutPath>
</File> </File>
<File> <File>
<GroupNumber>2</GroupNumber> <GroupNumber>4</GroupNumber>
<FileNumber>13</FileNumber> <FileNumber>16</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<Focus>0</Focus> <Focus>0</Focus>
@ -366,8 +422,8 @@
<FilenameWithoutPath>kservice.c</FilenameWithoutPath> <FilenameWithoutPath>kservice.c</FilenameWithoutPath>
</File> </File>
<File> <File>
<GroupNumber>2</GroupNumber> <GroupNumber>4</GroupNumber>
<FileNumber>14</FileNumber> <FileNumber>17</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<Focus>0</Focus> <Focus>0</Focus>
@ -380,8 +436,22 @@
<FilenameWithoutPath>mem.c</FilenameWithoutPath> <FilenameWithoutPath>mem.c</FilenameWithoutPath>
</File> </File>
<File> <File>
<GroupNumber>2</GroupNumber> <GroupNumber>4</GroupNumber>
<FileNumber>15</FileNumber> <FileNumber>18</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
<Focus>0</Focus>
<ColumnNumber>0</ColumnNumber>
<tvExpOptDlg>0</tvExpOptDlg>
<TopLine>0</TopLine>
<CurrentLine>0</CurrentLine>
<bDave2>0</bDave2>
<PathWithFileName>..\..\src\memheap.c</PathWithFileName>
<FilenameWithoutPath>memheap.c</FilenameWithoutPath>
</File>
<File>
<GroupNumber>4</GroupNumber>
<FileNumber>19</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<Focus>0</Focus> <Focus>0</Focus>
@ -394,8 +464,8 @@
<FilenameWithoutPath>mempool.c</FilenameWithoutPath> <FilenameWithoutPath>mempool.c</FilenameWithoutPath>
</File> </File>
<File> <File>
<GroupNumber>2</GroupNumber> <GroupNumber>4</GroupNumber>
<FileNumber>16</FileNumber> <FileNumber>20</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<Focus>0</Focus> <Focus>0</Focus>
@ -408,8 +478,8 @@
<FilenameWithoutPath>object.c</FilenameWithoutPath> <FilenameWithoutPath>object.c</FilenameWithoutPath>
</File> </File>
<File> <File>
<GroupNumber>2</GroupNumber> <GroupNumber>4</GroupNumber>
<FileNumber>17</FileNumber> <FileNumber>21</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<Focus>0</Focus> <Focus>0</Focus>
@ -422,8 +492,8 @@
<FilenameWithoutPath>scheduler.c</FilenameWithoutPath> <FilenameWithoutPath>scheduler.c</FilenameWithoutPath>
</File> </File>
<File> <File>
<GroupNumber>2</GroupNumber> <GroupNumber>4</GroupNumber>
<FileNumber>18</FileNumber> <FileNumber>22</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<Focus>0</Focus> <Focus>0</Focus>
@ -436,8 +506,8 @@
<FilenameWithoutPath>thread.c</FilenameWithoutPath> <FilenameWithoutPath>thread.c</FilenameWithoutPath>
</File> </File>
<File> <File>
<GroupNumber>2</GroupNumber> <GroupNumber>4</GroupNumber>
<FileNumber>19</FileNumber> <FileNumber>23</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<Focus>0</Focus> <Focus>0</Focus>
@ -457,8 +527,8 @@
<tvExpOptDlg>0</tvExpOptDlg> <tvExpOptDlg>0</tvExpOptDlg>
<cbSel>0</cbSel> <cbSel>0</cbSel>
<File> <File>
<GroupNumber>3</GroupNumber> <GroupNumber>5</GroupNumber>
<FileNumber>20</FileNumber> <FileNumber>24</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<Focus>0</Focus> <Focus>0</Focus>
@ -471,8 +541,8 @@
<FilenameWithoutPath>cpuport.c</FilenameWithoutPath> <FilenameWithoutPath>cpuport.c</FilenameWithoutPath>
</File> </File>
<File> <File>
<GroupNumber>3</GroupNumber> <GroupNumber>5</GroupNumber>
<FileNumber>21</FileNumber> <FileNumber>25</FileNumber>
<FileType>2</FileType> <FileType>2</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<Focus>0</Focus> <Focus>0</Focus>
@ -485,8 +555,8 @@
<FilenameWithoutPath>context_rvds.S</FilenameWithoutPath> <FilenameWithoutPath>context_rvds.S</FilenameWithoutPath>
</File> </File>
<File> <File>
<GroupNumber>3</GroupNumber> <GroupNumber>5</GroupNumber>
<FileNumber>22</FileNumber> <FileNumber>26</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<Focus>0</Focus> <Focus>0</Focus>
@ -499,8 +569,8 @@
<FilenameWithoutPath>backtrace.c</FilenameWithoutPath> <FilenameWithoutPath>backtrace.c</FilenameWithoutPath>
</File> </File>
<File> <File>
<GroupNumber>3</GroupNumber> <GroupNumber>5</GroupNumber>
<FileNumber>23</FileNumber> <FileNumber>27</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<Focus>0</Focus> <Focus>0</Focus>
@ -513,8 +583,8 @@
<FilenameWithoutPath>div0.c</FilenameWithoutPath> <FilenameWithoutPath>div0.c</FilenameWithoutPath>
</File> </File>
<File> <File>
<GroupNumber>3</GroupNumber> <GroupNumber>5</GroupNumber>
<FileNumber>24</FileNumber> <FileNumber>28</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<Focus>0</Focus> <Focus>0</Focus>
@ -534,8 +604,8 @@
<tvExpOptDlg>0</tvExpOptDlg> <tvExpOptDlg>0</tvExpOptDlg>
<cbSel>0</cbSel> <cbSel>0</cbSel>
<File> <File>
<GroupNumber>4</GroupNumber> <GroupNumber>6</GroupNumber>
<FileNumber>25</FileNumber> <FileNumber>29</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<Focus>0</Focus> <Focus>0</Focus>
@ -548,8 +618,8 @@
<FilenameWithoutPath>dfs.c</FilenameWithoutPath> <FilenameWithoutPath>dfs.c</FilenameWithoutPath>
</File> </File>
<File> <File>
<GroupNumber>4</GroupNumber> <GroupNumber>6</GroupNumber>
<FileNumber>26</FileNumber> <FileNumber>30</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<Focus>0</Focus> <Focus>0</Focus>
@ -562,8 +632,8 @@
<FilenameWithoutPath>dfs_fs.c</FilenameWithoutPath> <FilenameWithoutPath>dfs_fs.c</FilenameWithoutPath>
</File> </File>
<File> <File>
<GroupNumber>4</GroupNumber> <GroupNumber>6</GroupNumber>
<FileNumber>27</FileNumber> <FileNumber>31</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<Focus>0</Focus> <Focus>0</Focus>
@ -576,8 +646,8 @@
<FilenameWithoutPath>dfs_file.c</FilenameWithoutPath> <FilenameWithoutPath>dfs_file.c</FilenameWithoutPath>
</File> </File>
<File> <File>
<GroupNumber>4</GroupNumber> <GroupNumber>6</GroupNumber>
<FileNumber>28</FileNumber> <FileNumber>32</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<Focus>0</Focus> <Focus>0</Focus>
@ -590,8 +660,8 @@
<FilenameWithoutPath>dfs_posix.c</FilenameWithoutPath> <FilenameWithoutPath>dfs_posix.c</FilenameWithoutPath>
</File> </File>
<File> <File>
<GroupNumber>4</GroupNumber> <GroupNumber>6</GroupNumber>
<FileNumber>29</FileNumber> <FileNumber>33</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<Focus>0</Focus> <Focus>0</Focus>
@ -604,8 +674,8 @@
<FilenameWithoutPath>dfs_elm.c</FilenameWithoutPath> <FilenameWithoutPath>dfs_elm.c</FilenameWithoutPath>
</File> </File>
<File> <File>
<GroupNumber>4</GroupNumber> <GroupNumber>6</GroupNumber>
<FileNumber>30</FileNumber> <FileNumber>34</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<Focus>0</Focus> <Focus>0</Focus>
@ -625,8 +695,8 @@
<tvExpOptDlg>0</tvExpOptDlg> <tvExpOptDlg>0</tvExpOptDlg>
<cbSel>0</cbSel> <cbSel>0</cbSel>
<File> <File>
<GroupNumber>5</GroupNumber> <GroupNumber>7</GroupNumber>
<FileNumber>31</FileNumber> <FileNumber>35</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<Focus>0</Focus> <Focus>0</Focus>
@ -639,8 +709,8 @@
<FilenameWithoutPath>cmd.c</FilenameWithoutPath> <FilenameWithoutPath>cmd.c</FilenameWithoutPath>
</File> </File>
<File> <File>
<GroupNumber>5</GroupNumber> <GroupNumber>7</GroupNumber>
<FileNumber>32</FileNumber> <FileNumber>36</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<Focus>0</Focus> <Focus>0</Focus>
@ -653,8 +723,8 @@
<FilenameWithoutPath>finsh_compiler.c</FilenameWithoutPath> <FilenameWithoutPath>finsh_compiler.c</FilenameWithoutPath>
</File> </File>
<File> <File>
<GroupNumber>5</GroupNumber> <GroupNumber>7</GroupNumber>
<FileNumber>33</FileNumber> <FileNumber>37</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<Focus>0</Focus> <Focus>0</Focus>
@ -667,8 +737,8 @@
<FilenameWithoutPath>finsh_error.c</FilenameWithoutPath> <FilenameWithoutPath>finsh_error.c</FilenameWithoutPath>
</File> </File>
<File> <File>
<GroupNumber>5</GroupNumber> <GroupNumber>7</GroupNumber>
<FileNumber>34</FileNumber> <FileNumber>38</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<Focus>0</Focus> <Focus>0</Focus>
@ -681,8 +751,8 @@
<FilenameWithoutPath>finsh_heap.c</FilenameWithoutPath> <FilenameWithoutPath>finsh_heap.c</FilenameWithoutPath>
</File> </File>
<File> <File>
<GroupNumber>5</GroupNumber> <GroupNumber>7</GroupNumber>
<FileNumber>35</FileNumber> <FileNumber>39</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<Focus>0</Focus> <Focus>0</Focus>
@ -695,8 +765,8 @@
<FilenameWithoutPath>finsh_init.c</FilenameWithoutPath> <FilenameWithoutPath>finsh_init.c</FilenameWithoutPath>
</File> </File>
<File> <File>
<GroupNumber>5</GroupNumber> <GroupNumber>7</GroupNumber>
<FileNumber>36</FileNumber> <FileNumber>40</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<Focus>0</Focus> <Focus>0</Focus>
@ -709,8 +779,8 @@
<FilenameWithoutPath>finsh_node.c</FilenameWithoutPath> <FilenameWithoutPath>finsh_node.c</FilenameWithoutPath>
</File> </File>
<File> <File>
<GroupNumber>5</GroupNumber> <GroupNumber>7</GroupNumber>
<FileNumber>37</FileNumber> <FileNumber>41</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<Focus>0</Focus> <Focus>0</Focus>
@ -723,8 +793,8 @@
<FilenameWithoutPath>finsh_ops.c</FilenameWithoutPath> <FilenameWithoutPath>finsh_ops.c</FilenameWithoutPath>
</File> </File>
<File> <File>
<GroupNumber>5</GroupNumber> <GroupNumber>7</GroupNumber>
<FileNumber>38</FileNumber> <FileNumber>42</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<Focus>0</Focus> <Focus>0</Focus>
@ -737,8 +807,8 @@
<FilenameWithoutPath>finsh_parser.c</FilenameWithoutPath> <FilenameWithoutPath>finsh_parser.c</FilenameWithoutPath>
</File> </File>
<File> <File>
<GroupNumber>5</GroupNumber> <GroupNumber>7</GroupNumber>
<FileNumber>39</FileNumber> <FileNumber>43</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<Focus>0</Focus> <Focus>0</Focus>
@ -751,8 +821,8 @@
<FilenameWithoutPath>finsh_token.c</FilenameWithoutPath> <FilenameWithoutPath>finsh_token.c</FilenameWithoutPath>
</File> </File>
<File> <File>
<GroupNumber>5</GroupNumber> <GroupNumber>7</GroupNumber>
<FileNumber>40</FileNumber> <FileNumber>44</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<Focus>0</Focus> <Focus>0</Focus>
@ -765,8 +835,8 @@
<FilenameWithoutPath>finsh_var.c</FilenameWithoutPath> <FilenameWithoutPath>finsh_var.c</FilenameWithoutPath>
</File> </File>
<File> <File>
<GroupNumber>5</GroupNumber> <GroupNumber>7</GroupNumber>
<FileNumber>41</FileNumber> <FileNumber>45</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<Focus>0</Focus> <Focus>0</Focus>
@ -779,8 +849,8 @@
<FilenameWithoutPath>finsh_vm.c</FilenameWithoutPath> <FilenameWithoutPath>finsh_vm.c</FilenameWithoutPath>
</File> </File>
<File> <File>
<GroupNumber>5</GroupNumber> <GroupNumber>7</GroupNumber>
<FileNumber>42</FileNumber> <FileNumber>46</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<Focus>0</Focus> <Focus>0</Focus>
@ -793,8 +863,8 @@
<FilenameWithoutPath>shell.c</FilenameWithoutPath> <FilenameWithoutPath>shell.c</FilenameWithoutPath>
</File> </File>
<File> <File>
<GroupNumber>5</GroupNumber> <GroupNumber>7</GroupNumber>
<FileNumber>43</FileNumber> <FileNumber>47</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<Focus>0</Focus> <Focus>0</Focus>
@ -808,53 +878,4 @@
</File> </File>
</Group> </Group>
<Group>
<GroupName>CMSIS</GroupName>
<tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<cbSel>0</cbSel>
<File>
<GroupNumber>6</GroupNumber>
<FileNumber>44</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
<Focus>0</Focus>
<ColumnNumber>0</ColumnNumber>
<tvExpOptDlg>0</tvExpOptDlg>
<TopLine>0</TopLine>
<CurrentLine>0</CurrentLine>
<bDave2>0</bDave2>
<PathWithFileName>CMSIS\core_cm3.c</PathWithFileName>
<FilenameWithoutPath>core_cm3.c</FilenameWithoutPath>
</File>
<File>
<GroupNumber>6</GroupNumber>
<FileNumber>45</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
<Focus>0</Focus>
<ColumnNumber>0</ColumnNumber>
<tvExpOptDlg>0</tvExpOptDlg>
<TopLine>0</TopLine>
<CurrentLine>0</CurrentLine>
<bDave2>0</bDave2>
<PathWithFileName>CMSIS\system_mb9bf50x.c</PathWithFileName>
<FilenameWithoutPath>system_mb9bf50x.c</FilenameWithoutPath>
</File>
<File>
<GroupNumber>6</GroupNumber>
<FileNumber>46</FileNumber>
<FileType>2</FileType>
<tvExp>0</tvExp>
<Focus>0</Focus>
<ColumnNumber>0</ColumnNumber>
<tvExpOptDlg>0</tvExpOptDlg>
<TopLine>0</TopLine>
<CurrentLine>0</CurrentLine>
<bDave2>0</bDave2>
<PathWithFileName>CMSIS\start_rvds.S</PathWithFileName>
<FilenameWithoutPath>start_rvds.S</FilenameWithoutPath>
</File>
</Group>
</ProjectOpt> </ProjectOpt>

View File

@ -1,7 +1,10 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?> <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<Project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="project_proj.xsd"> <Project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="project_proj.xsd">
<SchemaVersion>1.1</SchemaVersion> <SchemaVersion>1.1</SchemaVersion>
<Header>### uVision Project, (C) Keil Software</Header> <Header>### uVision Project, (C) Keil Software</Header>
<Targets> <Targets>
<Target> <Target>
<TargetName>rtthread-fm3</TargetName> <TargetName>rtthread-fm3</TargetName>
@ -9,28 +12,28 @@
<ToolsetName>ARM-ADS</ToolsetName> <ToolsetName>ARM-ADS</ToolsetName>
<TargetOption> <TargetOption>
<TargetCommonOption> <TargetCommonOption>
<Device>MB9BF506N</Device> <Device>MB9BF506R</Device>
<Vendor>Fujitsu Semiconductors</Vendor> <Vendor>Fujitsu Semiconductors</Vendor>
<Cpu>IRAM(0x20000000-0x20007FFF) IRAM2(0x1FFF8000-0x1FFFFFFF) IROM(0x00000000-0x0007FFFF) CLOCK(4000000) CPUTYPE("Cortex-M3")</Cpu> <Cpu>IRAM(0x20000000-0x20007FFF) IRAM2(0x1FFF8000-0x1FFFFFFF) IROM(0x00000000-0x0007FFFF) CLOCK(4000000) CPUTYPE("Cortex-M3")</Cpu>
<FlashUtilSpec /> <FlashUtilSpec></FlashUtilSpec>
<StartupFile>"Startup\Fujitsu\MB9B500\startup_MB9BF50x.s" ("Fujitsu MB9BF50x Startup Code")</StartupFile> <StartupFile>"Startup\Fujitsu\MB9B500\startup_MB9BF50x.s" ("Fujitsu MB9BF50x Startup Code")</StartupFile>
<FlashDriverDll>UL2CM3(-O207 -S0 -C0 -FO7 -FD20000000 -FC800 -FN1 -FF0MB9BFx06_512 -FS00 -FL080000)</FlashDriverDll> <FlashDriverDll>UL2CM3(-O207 -S0 -C0 -FO7 -FD20000000 -FC800 -FN1 -FF0MB9BFx06_512 -FS00 -FL080000)</FlashDriverDll>
<DeviceId>5215</DeviceId> <DeviceId>5216</DeviceId>
<RegisterFile>MB9BF506N.h</RegisterFile> <RegisterFile>MB9BF506R.h</RegisterFile>
<MemoryEnv /> <MemoryEnv></MemoryEnv>
<Cmp /> <Cmp></Cmp>
<Asm /> <Asm></Asm>
<Linker /> <Linker></Linker>
<OHString /> <OHString></OHString>
<InfinionOptionDll /> <InfinionOptionDll></InfinionOptionDll>
<SLE66CMisc /> <SLE66CMisc></SLE66CMisc>
<SLE66AMisc /> <SLE66AMisc></SLE66AMisc>
<SLE66LinkerMisc /> <SLE66LinkerMisc></SLE66LinkerMisc>
<SFDFile>SFD\Fujitsu\MB9B500\MB9BF506N.SFR</SFDFile> <SFDFile>SFD\Fujitsu\MB9B500\MB9BF506R.SFR</SFDFile>
<UseEnv>0</UseEnv> <UseEnv>0</UseEnv>
<BinPath /> <BinPath></BinPath>
<IncludePath /> <IncludePath></IncludePath>
<LibPath /> <LibPath></LibPath>
<RegisterFilePath>Fujitsu\MB9B500\</RegisterFilePath> <RegisterFilePath>Fujitsu\MB9B500\</RegisterFilePath>
<DBRegisterFilePath>Fujitsu\MB9B500\</DBRegisterFilePath> <DBRegisterFilePath>Fujitsu\MB9B500\</DBRegisterFilePath>
<TargetStatus> <TargetStatus>
@ -54,29 +57,29 @@
<BeforeCompile> <BeforeCompile>
<RunUserProg1>0</RunUserProg1> <RunUserProg1>0</RunUserProg1>
<RunUserProg2>0</RunUserProg2> <RunUserProg2>0</RunUserProg2>
<UserProg1Name /> <UserProg1Name></UserProg1Name>
<UserProg2Name /> <UserProg2Name></UserProg2Name>
<UserProg1Dos16Mode>0</UserProg1Dos16Mode> <UserProg1Dos16Mode>0</UserProg1Dos16Mode>
<UserProg2Dos16Mode>0</UserProg2Dos16Mode> <UserProg2Dos16Mode>0</UserProg2Dos16Mode>
</BeforeCompile> </BeforeCompile>
<BeforeMake> <BeforeMake>
<RunUserProg1>0</RunUserProg1> <RunUserProg1>0</RunUserProg1>
<RunUserProg2>0</RunUserProg2> <RunUserProg2>0</RunUserProg2>
<UserProg1Name /> <UserProg1Name></UserProg1Name>
<UserProg2Name /> <UserProg2Name></UserProg2Name>
<UserProg1Dos16Mode>0</UserProg1Dos16Mode> <UserProg1Dos16Mode>0</UserProg1Dos16Mode>
<UserProg2Dos16Mode>0</UserProg2Dos16Mode> <UserProg2Dos16Mode>0</UserProg2Dos16Mode>
</BeforeMake> </BeforeMake>
<AfterMake> <AfterMake>
<RunUserProg1>0</RunUserProg1> <RunUserProg1>0</RunUserProg1>
<RunUserProg2>0</RunUserProg2> <RunUserProg2>0</RunUserProg2>
<UserProg1Name /> <UserProg1Name></UserProg1Name>
<UserProg2Name /> <UserProg2Name></UserProg2Name>
<UserProg1Dos16Mode>0</UserProg1Dos16Mode> <UserProg1Dos16Mode>0</UserProg1Dos16Mode>
<UserProg2Dos16Mode>0</UserProg2Dos16Mode> <UserProg2Dos16Mode>0</UserProg2Dos16Mode>
</AfterMake> </AfterMake>
<SelectedForBatchBuild>0</SelectedForBatchBuild> <SelectedForBatchBuild>0</SelectedForBatchBuild>
<SVCSIdString /> <SVCSIdString></SVCSIdString>
</TargetCommonOption> </TargetCommonOption>
<CommonProperty> <CommonProperty>
<UseCPPCompiler>0</UseCPPCompiler> <UseCPPCompiler>0</UseCPPCompiler>
@ -90,8 +93,8 @@
<AssembleAssemblyFile>0</AssembleAssemblyFile> <AssembleAssemblyFile>0</AssembleAssemblyFile>
<PublicsOnly>0</PublicsOnly> <PublicsOnly>0</PublicsOnly>
<StopOnExitCode>3</StopOnExitCode> <StopOnExitCode>3</StopOnExitCode>
<CustomArgument /> <CustomArgument></CustomArgument>
<IncludeLibraryModules /> <IncludeLibraryModules></IncludeLibraryModules>
</CommonProperty> </CommonProperty>
<DllOption> <DllOption>
<SimDllName>SARMCM3.DLL</SimDllName> <SimDllName>SARMCM3.DLL</SimDllName>
@ -125,7 +128,7 @@
<Target> <Target>
<UseTarget>1</UseTarget> <UseTarget>1</UseTarget>
<LoadApplicationAtStartup>1</LoadApplicationAtStartup> <LoadApplicationAtStartup>1</LoadApplicationAtStartup>
<RunToMain>0</RunToMain> <RunToMain>1</RunToMain>
<RestoreBreakpoints>1</RestoreBreakpoints> <RestoreBreakpoints>1</RestoreBreakpoints>
<RestoreWatchpoints>1</RestoreWatchpoints> <RestoreWatchpoints>1</RestoreWatchpoints>
<RestoreMemoryDisplay>1</RestoreMemoryDisplay> <RestoreMemoryDisplay>1</RestoreMemoryDisplay>
@ -135,18 +138,18 @@
<RunDebugAfterBuild>0</RunDebugAfterBuild> <RunDebugAfterBuild>0</RunDebugAfterBuild>
<TargetSelection>7</TargetSelection> <TargetSelection>7</TargetSelection>
<SimDlls> <SimDlls>
<CpuDll /> <CpuDll></CpuDll>
<CpuDllArguments /> <CpuDllArguments></CpuDllArguments>
<PeripheralDll /> <PeripheralDll></PeripheralDll>
<PeripheralDllArguments /> <PeripheralDllArguments></PeripheralDllArguments>
<InitializationFile /> <InitializationFile></InitializationFile>
</SimDlls> </SimDlls>
<TargetDlls> <TargetDlls>
<CpuDll /> <CpuDll></CpuDll>
<CpuDllArguments /> <CpuDllArguments></CpuDllArguments>
<PeripheralDll /> <PeripheralDll></PeripheralDll>
<PeripheralDllArguments /> <PeripheralDllArguments></PeripheralDllArguments>
<InitializationFile /> <InitializationFile></InitializationFile>
<Driver>Segger\JL2CM3.dll</Driver> <Driver>Segger\JL2CM3.dll</Driver>
</TargetDlls> </TargetDlls>
</DebugOption> </DebugOption>
@ -161,7 +164,7 @@
</Flash1> </Flash1>
<Flash2>Segger\JL2CM3.dll</Flash2> <Flash2>Segger\JL2CM3.dll</Flash2>
<Flash3>"" ()</Flash3> <Flash3>"" ()</Flash3>
<Flash4 /> <Flash4></Flash4>
</Utilities> </Utilities>
<TargetArmAds> <TargetArmAds>
<ArmAdsMisc> <ArmAdsMisc>
@ -193,7 +196,7 @@
<RvctClst>0</RvctClst> <RvctClst>0</RvctClst>
<GenPPlst>0</GenPPlst> <GenPPlst>0</GenPPlst>
<AdsCpuType>"Cortex-M3"</AdsCpuType> <AdsCpuType>"Cortex-M3"</AdsCpuType>
<RvctDeviceName /> <RvctDeviceName></RvctDeviceName>
<mOS>0</mOS> <mOS>0</mOS>
<uocRom>0</uocRom> <uocRom>0</uocRom>
<uocRam>0</uocRam> <uocRam>0</uocRam>
@ -324,7 +327,7 @@
<Size>0x8000</Size> <Size>0x8000</Size>
</OCR_RVCT10> </OCR_RVCT10>
</OnChipMemories> </OnChipMemories>
<RvctStartVector /> <RvctStartVector></RvctStartVector>
</ArmAdsMisc> </ArmAdsMisc>
<Cads> <Cads>
<interw>1</interw> <interw>1</interw>
@ -340,10 +343,10 @@
<wLevel>0</wLevel> <wLevel>0</wLevel>
<uThumb>0</uThumb> <uThumb>0</uThumb>
<VariousControls> <VariousControls>
<MiscControls /> <MiscControls></MiscControls>
<Define /> <Define></Define>
<Undefine /> <Undefine></Undefine>
<IncludePath>.;..\..\components\dfs;..\..\components\dfs\include;..\..\components\finsh;..\..\include;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m3;CMSIS</IncludePath> <IncludePath>.;..\..\components\dfs;..\..\components\dfs\include;..\..\components\finsh;..\..\include;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m3;CMSIS;applications;drivers</IncludePath>
</VariousControls> </VariousControls>
</Cads> </Cads>
<Aads> <Aads>
@ -355,10 +358,10 @@
<SwStkChk>0</SwStkChk> <SwStkChk>0</SwStkChk>
<NoWarn>0</NoWarn> <NoWarn>0</NoWarn>
<VariousControls> <VariousControls>
<MiscControls /> <MiscControls></MiscControls>
<Define /> <Define></Define>
<Undefine /> <Undefine></Undefine>
<IncludePath /> <IncludePath></IncludePath>
</VariousControls> </VariousControls>
</Aads> </Aads>
<LDads> <LDads>
@ -370,65 +373,78 @@
<useFile>0</useFile> <useFile>0</useFile>
<TextAddressRange>0x08000000</TextAddressRange> <TextAddressRange>0x08000000</TextAddressRange>
<DataAddressRange>0x20000000</DataAddressRange> <DataAddressRange>0x20000000</DataAddressRange>
<ScatterFile /> <ScatterFile></ScatterFile>
<IncludeLibs /> <IncludeLibs></IncludeLibs>
<IncludeLibsPath /> <IncludeLibsPath></IncludeLibsPath>
<Misc> --keep __fsym_* --keep __vsym_* </Misc> <Misc>--keep __fsym_* --keep __vsym_*</Misc>
<LinkerInputFile /> <LinkerInputFile></LinkerInputFile>
<DisabledWarnings /> <DisabledWarnings></DisabledWarnings>
</LDads> </LDads>
</TargetArmAds> </TargetArmAds>
</TargetOption> </TargetOption>
<Groups> <Groups>
<Group> <Group>
<GroupName>Startup</GroupName> <GroupName>Applications</GroupName>
<Files> <Files>
<File> <File>
<FileName>application.c</FileName> <FileName>application.c</FileName>
<FileType>1</FileType> <FileType>1</FileType>
<FilePath>.\application.c</FilePath> <FilePath>applications\application.c</FilePath>
</File> </File>
</Files>
<Files>
<File> <File>
<FileName>startup.c</FileName> <FileName>startup.c</FileName>
<FileType>1</FileType> <FileType>1</FileType>
<FilePath>.\startup.c</FilePath> <FilePath>applications\startup.c</FilePath>
</File> </File>
</Files> </Files>
</Group>
<Group>
<GroupName>CMSIS</GroupName>
<Files>
<File>
<FileName>core_cm3.c</FileName>
<FileType>1</FileType>
<FilePath>CMSIS\core_cm3.c</FilePath>
</File>
<File>
<FileName>system_mb9bf50x.c</FileName>
<FileType>1</FileType>
<FilePath>CMSIS\system_mb9bf50x.c</FilePath>
</File>
<File>
<FileName>start_rvds.S</FileName>
<FileType>2</FileType>
<FilePath>CMSIS\start_rvds.S</FilePath>
</File>
</Files>
</Group>
<Group>
<GroupName>Drivers</GroupName>
<Files> <Files>
<File> <File>
<FileName>board.c</FileName> <FileName>board.c</FileName>
<FileType>1</FileType> <FileType>1</FileType>
<FilePath>.\board.c</FilePath> <FilePath>drivers\board.c</FilePath>
</File> </File>
</Files>
<Files>
<File>
<FileName>led.c</FileName>
<FileType>1</FileType>
<FilePath>.\led.c</FilePath>
</File>
</Files>
<Files>
<File> <File>
<FileName>console.c</FileName> <FileName>console.c</FileName>
<FileType>1</FileType> <FileType>1</FileType>
<FilePath>.\console.c</FilePath> <FilePath>drivers\console.c</FilePath>
</File> </File>
</Files>
<Files>
<File> <File>
<FileName>serial.c</FileName> <FileName>led.c</FileName>
<FileType>1</FileType> <FileType>1</FileType>
<FilePath>.\serial.c</FilePath> <FilePath>drivers\led.c</FilePath>
</File> </File>
</Files>
<Files>
<File> <File>
<FileName>nand.c</FileName> <FileName>nand.c</FileName>
<FileType>1</FileType> <FileType>1</FileType>
<FilePath>.\nand.c</FilePath> <FilePath>drivers\nand.c</FilePath>
</File>
<File>
<FileName>serial.c</FileName>
<FileType>1</FileType>
<FilePath>drivers\serial.c</FilePath>
</File> </File>
</Files> </Files>
</Group> </Group>
@ -440,85 +456,61 @@
<FileType>1</FileType> <FileType>1</FileType>
<FilePath>..\..\src\clock.c</FilePath> <FilePath>..\..\src\clock.c</FilePath>
</File> </File>
</Files>
<Files>
<File> <File>
<FileName>device.c</FileName> <FileName>device.c</FileName>
<FileType>1</FileType> <FileType>1</FileType>
<FilePath>..\..\src\device.c</FilePath> <FilePath>..\..\src\device.c</FilePath>
</File> </File>
</Files>
<Files>
<File> <File>
<FileName>idle.c</FileName> <FileName>idle.c</FileName>
<FileType>1</FileType> <FileType>1</FileType>
<FilePath>..\..\src\idle.c</FilePath> <FilePath>..\..\src\idle.c</FilePath>
</File> </File>
</Files>
<Files>
<File> <File>
<FileName>ipc.c</FileName> <FileName>ipc.c</FileName>
<FileType>1</FileType> <FileType>1</FileType>
<FilePath>..\..\src\ipc.c</FilePath> <FilePath>..\..\src\ipc.c</FilePath>
</File> </File>
</Files>
<Files>
<File> <File>
<FileName>irq.c</FileName> <FileName>irq.c</FileName>
<FileType>1</FileType> <FileType>1</FileType>
<FilePath>..\..\src\irq.c</FilePath> <FilePath>..\..\src\irq.c</FilePath>
</File> </File>
</Files>
<Files>
<File> <File>
<FileName>kservice.c</FileName> <FileName>kservice.c</FileName>
<FileType>1</FileType> <FileType>1</FileType>
<FilePath>..\..\src\kservice.c</FilePath> <FilePath>..\..\src\kservice.c</FilePath>
</File> </File>
</Files>
<Files>
<File> <File>
<FileName>mem.c</FileName> <FileName>mem.c</FileName>
<FileType>1</FileType> <FileType>1</FileType>
<FilePath>..\..\src\mem.c</FilePath> <FilePath>..\..\src\mem.c</FilePath>
</File> </File>
</Files>
<Files>
<File> <File>
<FileName>memheap.c</FileName> <FileName>memheap.c</FileName>
<FileType>1</FileType> <FileType>1</FileType>
<FilePath>..\..\src\memheap.c</FilePath> <FilePath>..\..\src\memheap.c</FilePath>
</File> </File>
</Files>
<Files>
<File> <File>
<FileName>mempool.c</FileName> <FileName>mempool.c</FileName>
<FileType>1</FileType> <FileType>1</FileType>
<FilePath>..\..\src\mempool.c</FilePath> <FilePath>..\..\src\mempool.c</FilePath>
</File> </File>
</Files>
<Files>
<File> <File>
<FileName>object.c</FileName> <FileName>object.c</FileName>
<FileType>1</FileType> <FileType>1</FileType>
<FilePath>..\..\src\object.c</FilePath> <FilePath>..\..\src\object.c</FilePath>
</File> </File>
</Files>
<Files>
<File> <File>
<FileName>scheduler.c</FileName> <FileName>scheduler.c</FileName>
<FileType>1</FileType> <FileType>1</FileType>
<FilePath>..\..\src\scheduler.c</FilePath> <FilePath>..\..\src\scheduler.c</FilePath>
</File> </File>
</Files>
<Files>
<File> <File>
<FileName>thread.c</FileName> <FileName>thread.c</FileName>
<FileType>1</FileType> <FileType>1</FileType>
<FilePath>..\..\src\thread.c</FilePath> <FilePath>..\..\src\thread.c</FilePath>
</File> </File>
</Files>
<Files>
<File> <File>
<FileName>timer.c</FileName> <FileName>timer.c</FileName>
<FileType>1</FileType> <FileType>1</FileType>
@ -534,29 +526,21 @@
<FileType>1</FileType> <FileType>1</FileType>
<FilePath>..\..\libcpu\arm\cortex-m3\cpuport.c</FilePath> <FilePath>..\..\libcpu\arm\cortex-m3\cpuport.c</FilePath>
</File> </File>
</Files>
<Files>
<File> <File>
<FileName>context_rvds.S</FileName> <FileName>context_rvds.S</FileName>
<FileType>2</FileType> <FileType>2</FileType>
<FilePath>..\..\libcpu\arm\cortex-m3\context_rvds.S</FilePath> <FilePath>..\..\libcpu\arm\cortex-m3\context_rvds.S</FilePath>
</File> </File>
</Files>
<Files>
<File> <File>
<FileName>backtrace.c</FileName> <FileName>backtrace.c</FileName>
<FileType>1</FileType> <FileType>1</FileType>
<FilePath>..\..\libcpu\arm\common\backtrace.c</FilePath> <FilePath>..\..\libcpu\arm\common\backtrace.c</FilePath>
</File> </File>
</Files>
<Files>
<File> <File>
<FileName>div0.c</FileName> <FileName>div0.c</FileName>
<FileType>1</FileType> <FileType>1</FileType>
<FilePath>..\..\libcpu\arm\common\div0.c</FilePath> <FilePath>..\..\libcpu\arm\common\div0.c</FilePath>
</File> </File>
</Files>
<Files>
<File> <File>
<FileName>showmem.c</FileName> <FileName>showmem.c</FileName>
<FileType>1</FileType> <FileType>1</FileType>
@ -572,36 +556,26 @@
<FileType>1</FileType> <FileType>1</FileType>
<FilePath>..\..\components\dfs\src\dfs.c</FilePath> <FilePath>..\..\components\dfs\src\dfs.c</FilePath>
</File> </File>
</Files>
<Files>
<File> <File>
<FileName>dfs_fs.c</FileName> <FileName>dfs_fs.c</FileName>
<FileType>1</FileType> <FileType>1</FileType>
<FilePath>..\..\components\dfs\src\dfs_fs.c</FilePath> <FilePath>..\..\components\dfs\src\dfs_fs.c</FilePath>
</File> </File>
</Files>
<Files>
<File> <File>
<FileName>dfs_file.c</FileName> <FileName>dfs_file.c</FileName>
<FileType>1</FileType> <FileType>1</FileType>
<FilePath>..\..\components\dfs\src\dfs_file.c</FilePath> <FilePath>..\..\components\dfs\src\dfs_file.c</FilePath>
</File> </File>
</Files>
<Files>
<File> <File>
<FileName>dfs_posix.c</FileName> <FileName>dfs_posix.c</FileName>
<FileType>1</FileType> <FileType>1</FileType>
<FilePath>..\..\components\dfs\src\dfs_posix.c</FilePath> <FilePath>..\..\components\dfs\src\dfs_posix.c</FilePath>
</File> </File>
</Files>
<Files>
<File> <File>
<FileName>dfs_elm.c</FileName> <FileName>dfs_elm.c</FileName>
<FileType>1</FileType> <FileType>1</FileType>
<FilePath>..\..\components\dfs\filesystems\elmfat\dfs_elm.c</FilePath> <FilePath>..\..\components\dfs\filesystems\elmfat\dfs_elm.c</FilePath>
</File> </File>
</Files>
<Files>
<File> <File>
<FileName>ff.c</FileName> <FileName>ff.c</FileName>
<FileType>1</FileType> <FileType>1</FileType>
@ -617,85 +591,61 @@
<FileType>1</FileType> <FileType>1</FileType>
<FilePath>..\..\components\finsh\cmd.c</FilePath> <FilePath>..\..\components\finsh\cmd.c</FilePath>
</File> </File>
</Files>
<Files>
<File> <File>
<FileName>finsh_compiler.c</FileName> <FileName>finsh_compiler.c</FileName>
<FileType>1</FileType> <FileType>1</FileType>
<FilePath>..\..\components\finsh\finsh_compiler.c</FilePath> <FilePath>..\..\components\finsh\finsh_compiler.c</FilePath>
</File> </File>
</Files>
<Files>
<File> <File>
<FileName>finsh_error.c</FileName> <FileName>finsh_error.c</FileName>
<FileType>1</FileType> <FileType>1</FileType>
<FilePath>..\..\components\finsh\finsh_error.c</FilePath> <FilePath>..\..\components\finsh\finsh_error.c</FilePath>
</File> </File>
</Files>
<Files>
<File> <File>
<FileName>finsh_heap.c</FileName> <FileName>finsh_heap.c</FileName>
<FileType>1</FileType> <FileType>1</FileType>
<FilePath>..\..\components\finsh\finsh_heap.c</FilePath> <FilePath>..\..\components\finsh\finsh_heap.c</FilePath>
</File> </File>
</Files>
<Files>
<File> <File>
<FileName>finsh_init.c</FileName> <FileName>finsh_init.c</FileName>
<FileType>1</FileType> <FileType>1</FileType>
<FilePath>..\..\components\finsh\finsh_init.c</FilePath> <FilePath>..\..\components\finsh\finsh_init.c</FilePath>
</File> </File>
</Files>
<Files>
<File> <File>
<FileName>finsh_node.c</FileName> <FileName>finsh_node.c</FileName>
<FileType>1</FileType> <FileType>1</FileType>
<FilePath>..\..\components\finsh\finsh_node.c</FilePath> <FilePath>..\..\components\finsh\finsh_node.c</FilePath>
</File> </File>
</Files>
<Files>
<File> <File>
<FileName>finsh_ops.c</FileName> <FileName>finsh_ops.c</FileName>
<FileType>1</FileType> <FileType>1</FileType>
<FilePath>..\..\components\finsh\finsh_ops.c</FilePath> <FilePath>..\..\components\finsh\finsh_ops.c</FilePath>
</File> </File>
</Files>
<Files>
<File> <File>
<FileName>finsh_parser.c</FileName> <FileName>finsh_parser.c</FileName>
<FileType>1</FileType> <FileType>1</FileType>
<FilePath>..\..\components\finsh\finsh_parser.c</FilePath> <FilePath>..\..\components\finsh\finsh_parser.c</FilePath>
</File> </File>
</Files>
<Files>
<File> <File>
<FileName>finsh_token.c</FileName> <FileName>finsh_token.c</FileName>
<FileType>1</FileType> <FileType>1</FileType>
<FilePath>..\..\components\finsh\finsh_token.c</FilePath> <FilePath>..\..\components\finsh\finsh_token.c</FilePath>
</File> </File>
</Files>
<Files>
<File> <File>
<FileName>finsh_var.c</FileName> <FileName>finsh_var.c</FileName>
<FileType>1</FileType> <FileType>1</FileType>
<FilePath>..\..\components\finsh\finsh_var.c</FilePath> <FilePath>..\..\components\finsh\finsh_var.c</FilePath>
</File> </File>
</Files>
<Files>
<File> <File>
<FileName>finsh_vm.c</FileName> <FileName>finsh_vm.c</FileName>
<FileType>1</FileType> <FileType>1</FileType>
<FilePath>..\..\components\finsh\finsh_vm.c</FilePath> <FilePath>..\..\components\finsh\finsh_vm.c</FilePath>
</File> </File>
</Files>
<Files>
<File> <File>
<FileName>shell.c</FileName> <FileName>shell.c</FileName>
<FileType>1</FileType> <FileType>1</FileType>
<FilePath>..\..\components\finsh\shell.c</FilePath> <FilePath>..\..\components\finsh\shell.c</FilePath>
</File> </File>
</Files>
<Files>
<File> <File>
<FileName>symbol.c</FileName> <FileName>symbol.c</FileName>
<FileType>1</FileType> <FileType>1</FileType>
@ -703,31 +653,8 @@
</File> </File>
</Files> </Files>
</Group> </Group>
<Group>
<GroupName>CMSIS</GroupName>
<Files>
<File>
<FileName>core_cm3.c</FileName>
<FileType>1</FileType>
<FilePath>CMSIS\core_cm3.c</FilePath>
</File>
</Files>
<Files>
<File>
<FileName>system_mb9bf50x.c</FileName>
<FileType>1</FileType>
<FilePath>CMSIS\system_mb9bf50x.c</FilePath>
</File>
</Files>
<Files>
<File>
<FileName>start_rvds.S</FileName>
<FileType>2</FileType>
<FilePath>CMSIS\start_rvds.S</FilePath>
</File>
</Files>
</Group>
</Groups> </Groups>
</Target> </Target>
</Targets> </Targets>
</Project> </Project>

View File

@ -3,7 +3,7 @@ import os
# toolchains options # toolchains options
ARCH='arm' ARCH='arm'
CPU='cortex-m3' CPU='cortex-m3'
CROSS_TOOL='gcc' CROSS_TOOL='iar'
if os.getenv('RTT_CC'): if os.getenv('RTT_CC'):
CROSS_TOOL = os.getenv('RTT_CC') CROSS_TOOL = os.getenv('RTT_CC')
@ -41,7 +41,7 @@ if PLATFORM == 'gcc':
DEVICE = ' -mcpu=cortex-m3 -mthumb -ffunction-sections -fdata-sections' DEVICE = ' -mcpu=cortex-m3 -mthumb -ffunction-sections -fdata-sections'
CFLAGS = DEVICE CFLAGS = DEVICE
AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp' AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp'
LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rtthread-fm3.map,-cref,-u,Reset_Handler -T fm3_rom.ld' LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rtthread-fm3.map,-cref,-u,Reset_Handler -T rtthread-mb9bf506.ld'
CPATH = '' CPATH = ''
LPATH = '' LPATH = ''
@ -64,7 +64,7 @@ elif PLATFORM == 'armcc':
DEVICE = ' --device DARMSTM' DEVICE = ' --device DARMSTM'
CFLAGS = DEVICE + ' --apcs=interwork' CFLAGS = DEVICE + ' --apcs=interwork'
AFLAGS = DEVICE AFLAGS = DEVICE
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers --list rtthread-fm3.map --scatter fm3_rom.sct' LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers --list rtthread-fm3.map --scatter rtthread-mb9bf506.sct'
CFLAGS += ' -I' + EXEC_PATH + '/ARM/RV31/INC' CFLAGS += ' -I' + EXEC_PATH + '/ARM/RV31/INC'
LFLAGS += ' --libpath ' + EXEC_PATH + '/ARM/RV31/LIB' LFLAGS += ' --libpath ' + EXEC_PATH + '/ARM/RV31/LIB'
@ -113,7 +113,7 @@ elif PLATFORM == 'iar':
AFLAGS += ' --fpu None' AFLAGS += ' --fpu None'
AFLAGS += ' -I"' + IAR_PATH + '/arm/INC"' AFLAGS += ' -I"' + IAR_PATH + '/arm/INC"'
LFLAGS = ' --config mb9bf506.icf' LFLAGS = ' --config rtthread-mb9bf506.icf'
LFLAGS += ' --semihosting' LFLAGS += ' --semihosting'
LFLAGS += ' --entry __iar_program_start' LFLAGS += ' --entry __iar_program_start'

View File

@ -26,6 +26,7 @@ do not initialize { section .noinit };
keep { section FSymTab }; keep { section FSymTab };
keep { section VSymTab }; keep { section VSymTab };
place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec }; place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec };
place in ROM_region { readonly }; place in ROM_region { readonly };

1739
bsp/mb9bf506r/template.ewp Normal file

File diff suppressed because it is too large Load Diff

View File

@ -12,14 +12,14 @@
<ToolsetName>ARM-ADS</ToolsetName> <ToolsetName>ARM-ADS</ToolsetName>
<TargetOption> <TargetOption>
<TargetCommonOption> <TargetCommonOption>
<Device>MB9BF506N</Device> <Device>MB9BF506R</Device>
<Vendor>Fujitsu Semiconductors</Vendor> <Vendor>Fujitsu Semiconductors</Vendor>
<Cpu>IRAM(0x20000000-0x20007FFF) IRAM2(0x1FFF8000-0x1FFFFFFF) IROM(0x00000000-0x0007FFFF) CLOCK(4000000) CPUTYPE("Cortex-M3")</Cpu> <Cpu>IRAM(0x20000000-0x20007FFF) IRAM2(0x1FFF8000-0x1FFFFFFF) IROM(0x00000000-0x0007FFFF) CLOCK(4000000) CPUTYPE("Cortex-M3")</Cpu>
<FlashUtilSpec></FlashUtilSpec> <FlashUtilSpec></FlashUtilSpec>
<StartupFile>"Startup\Fujitsu\MB9B500\startup_MB9BF50x.s" ("Fujitsu MB9BF50x Startup Code")</StartupFile> <StartupFile>"Startup\Fujitsu\MB9B500\startup_MB9BF50x.s" ("Fujitsu MB9BF50x Startup Code")</StartupFile>
<FlashDriverDll>UL2CM3(-O207 -S0 -C0 -FO7 -FD20000000 -FC800 -FN1 -FF0MB9BFx06_512 -FS00 -FL080000)</FlashDriverDll> <FlashDriverDll>UL2CM3(-O207 -S0 -C0 -FO7 -FD20000000 -FC800 -FN1 -FF0MB9BFx06_512 -FS00 -FL080000)</FlashDriverDll>
<DeviceId>5215</DeviceId> <DeviceId>5216</DeviceId>
<RegisterFile>MB9BF506N.h</RegisterFile> <RegisterFile>MB9BF506R.h</RegisterFile>
<MemoryEnv></MemoryEnv> <MemoryEnv></MemoryEnv>
<Cmp></Cmp> <Cmp></Cmp>
<Asm></Asm> <Asm></Asm>
@ -29,7 +29,7 @@
<SLE66CMisc></SLE66CMisc> <SLE66CMisc></SLE66CMisc>
<SLE66AMisc></SLE66AMisc> <SLE66AMisc></SLE66AMisc>
<SLE66LinkerMisc></SLE66LinkerMisc> <SLE66LinkerMisc></SLE66LinkerMisc>
<SFDFile>SFD\Fujitsu\MB9B500\MB9BF506N.SFR</SFDFile> <SFDFile>SFD\Fujitsu\MB9B500\MB9BF506R.SFR</SFDFile>
<UseEnv>0</UseEnv> <UseEnv>0</UseEnv>
<BinPath></BinPath> <BinPath></BinPath>
<IncludePath></IncludePath> <IncludePath></IncludePath>