用來描述source code裡面, 變數, 程式要放到memory的哪一段位址.
然後一些defin, source code 和 scatter file會互相參考
常見的簡單 scatter file內容:
1.
https://developer.arm.com/documentation/dui0493/i/Chdbjdii
execution region的起始位置設為load region的起始位置
2.
用來描述source code裡面, 變數, 程式要放到memory的哪一段位址.
然後一些defin, source code 和 scatter file會互相參考
常見的簡單 scatter file內容:
1.
https://developer.arm.com/documentation/dui0493/i/Chdbjdii
2.
打包成.a的形式: armar -r mylib.a obj1 obj2 obj3
打包成.lib的形式: armar --create mylib.lib obj1 obj2
.a或.lib可以直接和其他.o檔一起link, 產生出最後的binary
Duplicate this line: Alt + Shift + ↓
Comment/Uncomment line(s): Ctrl + /
Search Function: Ctrl + t
Bookmark: Ctrl + Alt + k
Jump to Bookmark: Ctrl + Alt + j
Trim trailing space automatically:
Transform TAB to Space
Show the function list in a file
Use Git Turtoise:
TortoiseGit -> Submodule Add...
Use Git Command:
git submodule add -b <branch> --name <submodule name> <repository> <folder path>
----------------------------------------------------------------------------------------------
After setting the previous step, you will find the new file ".gitmodules" is created (or updated)
Check the contents if it is as expect:
[submodule "name"]
path = <folder path>
url = <repository>
branch = <branch> --> One of branch in the Submodule repository (Can ignore this one)
----------------------------------------------------------------------------------------------
Following Issue happened in build code after I add the submodule in my one of project:
cp: cannot overwrite directory 'xxxxxxxx.git' with non-directory
This means the build procedure is trying to copy xxxxxxxx.git to somewhere the xxxxxxxx.git has already existed.
I did the following steps to overcome this problem. (or you can simply delete it, and it will be automatically generated during submodule init)
1. git commit/check-in the code
2. delete the xxxxxxxx.git in the submodule
3. git submodule init/update