What's in a Name?
Previously in Part 007 (I'm feeling so remote) I described a procedure to take the STK3700 blink example and use it for a new project.
In it I mentioned that the its references to the work blink could be changed to a word of your choice.
These procedures are for use with IAR Embedded Workbench for ARM.
A bit like Fermat's Last Theorem I could not fit this procedure in the margins so here it is as a separate post.
I hope you find that both of these procedures will help you with using your Energy Harvesting to Go Kit.
Renaming an IAR Workbench Workspace and Project for EFM32 from the STK3700 Blink Example
Like my procedure I formulated to use the Blink example as a template this procedure has been tested.
This procedure must be followed in stipulated order to accomplish the desired result.
From the ..\IAR folder of the copied and renamed Blink example project;
1. Open Windows Explorer and from it;
a. Rename blink.eww as <yourchoice>.eww
b. Delete the blink.dep, blink.ewd files
.eww files are IAR Embedded Workbench Workspace files.
2. Launch IAR Embedded Workbench and open <yourchoice>.eww by double clicking <yourchoice>.eww. From it;
a. From workspace, right-click and remove from workspace
b. Confirm removal
3. From Windows Explorer;
a. Rename blink.ewp as <yourchoice>.ewp
b. Delete the settings folder
.ewp files are IAR Embedded Workbench Project files.
4. From IAR Embedded Workbench;
a. (Menu)Project, Add existing project add, choose <yourchoice>.ewp
b. Right click your project, options,
c. General Options, Output (tab) - change the 3 occurences of blink to <yourchoice> leaving the remainder of the path unchanged (it is best to match your .eww name) for;
i. Executables/libraries
ii. Object files
iii. List files
d. Output Converter, Output file - change blink to <yourchoice> leaving the remainder of the existing text value intact.
e. Linker, Output filename - change blink to <yourchoice> leaving the remainder of the existing text value intact.
f. Debugger, Setup, Driver - Select J-Link/J-Trace
g. Click OK to accept changes.
5. From Windows Explorer;
a. Remove the blink folder
6. From IAR Embedded Workbench;
a. (menu)File, Save Workspace
Now if all the above has been completed correctly the project is ready to "Download and Debug" as <yourchoice> (and all unwanted files and folder are removed) but with the original blink.c as the source code.
To change this and use your own .c source code file.
Here is the procedure just to rename blink.c as <yourchoice>.c and include it in the project
7. From IAR Embedded Workbench;
a. From Workspace tree, Source group, right-click and remove blink.c
8. Assuming you want to use blink.c but want to rename it.
From Windows Explorer;
a. Rename blink.c as <yourchoice>.c
The .c file is in the same folder as the .../IAR folder
9. From IAR Embedded Workbench;
a. From Workspace tree, Source group, right-click and add, add existing file, choose <yourchoice>.ewp
Now your project and workspace is devoid of all references to blink.