PCAN-Router Pro FD – User Manual
24
SetPath_for_VSCode.vbs
VBScript to modify the example directories for the Visual Studio
Code IDE.
Do the following to create your own firmware:
1.
Create a folder on your PC. We recommend using a local
drive.
2.
Unzip the development package
PEAK-DevPack.zip
completely into your folder. No installation is required at all.
3.
Run the script
SetPath_for_VSCode.vbs
.
This script will modify the example directories for the Visual
Studio Code IDE. After this every example directory has a
folder called
.vscode
containing the needed files with your
local path information.
4.
Start Visual Studio Code. The IDE is available free of charge
from Microsoft:
Select the folder of your project and open it.
For example:
d:\PEAK-DevPack\Hardware\PCAN-Router
Pro FD\Examples\01_ROUTING
6.
You can edit the C code and call
make clean
,
make all
, or
compile single file via the menu
Terminal > Run Task
.
7.
Create your firmware with
Make All
.
The firmware is the
*.bin
file in the sub directory
out
of
your project folder.