How to create an assembly project in Simplicity Studio
08/217/2015 | 06:27 PM
1. In Simplicity Studio, File > New > Silicon Labs MCU Project
2. I suggest choosing an SDK, so you don't have to manual include this the include/header files into your project. Include/header files are part of the SDK.
3. For project type, choose Empty C project (even though you will code in assembly).
4. Link to sources vs Link libraries and copy sources vs Copy contents vs In-place
These options are relevant when using an existing example. The existing examples resides in the SDK directory. This eclipse-base IDE has local "workspace" directory, where you can choose to import a copy of the source code, so you don't edit the original example in the SDK path.
Link to sources = Create IDE project files (.project and .cproject) in workspace. Don't make a copy of the source in the workspace. Any edits you make will the edit the source files in SDK path.
Link libraries and copy sources = Create IDE project files (.project and .cproject) in workspace. Do not make a copy of the library files in the workspace. Make a copy of the source files in the workspace. Any edits to the source files will take place locally in the workspace.
Copy contents = Create IDE project files (.project and .cproject) in workspace. Make a copy of the library and source files in the workspace. Any edits you make will the edit the source files locally in the workspace.
In-place = Create IDE project files (.project and .cproject) where the source files are located (not in the workspace). All source files not copied into workspace.
TIP: In the project explorer window, anytime a folder/file is linked, you will see a shortcut arrow icon (just like shortcut in Windows) next to the folder.
When creating an empty project, you typically keep your source files in your workspace. Therefore, we suggest "Link libraries and copy sources".
5. In Build Configuration, only check Keil.
6. After clicking Finish, you should see a project with a .c and .A51 extension. You can delete those (from your file system) since they are not needed when coding in assembly.
7. Create a new file with .asm extension, and build. If you selected EFM8SB1 as the part in step 1, attached is a blinky example written in assembly (SB1_blinky.asm) for testing purposes.
TIP: when you start a debug session with an assembly project, the IDE will not halt the MCU. In the Debug window, click the .omf file, then you can halt execution using Run > Suspsend (or click the pause button).