Hello,
I'm trying to import an old PCAN project into the new Visual Studio Code IDE.
I tried taking a new example "01_ROUTING" and running "SetPath_for_VSCode" and then manually adding the source and header files into the appropriate folders I need but I could not "Make All" successfully.
I get an error in "Linking: example_can.elf" about an "undefined reference".
I fixed this by manually modifying the "Makefile" to include the additional source files:
# List C source files here which must be compiled in ARM-Mode.
# use file-extension c for "c-only"-files
CSRCARM += $(SRC_FOLDER)/main.c
CSRCARM += $(SRC_FOLDER)/can_user.c
CSRCARM += $(SRC_FOLDER)/systime.c
Shouldn't the "SetPath_for_VSCode" do this for me?
Will there be anything else I need to modify for my project for the source/header files I need?
Convert old project for new DLP-DevPack
- PEAK-Support
- Sales & Support
- Posts: 1646
- Joined: Fri 10. Sep 2010, 19:34
Re: Convert old project for new DLP-DevPack
normally you do not have to change any part of your code if you use the new ARM package vor Visual Studio Code.
If you have unzip the package on your PC, copy your Project Folder in a Subfolder of the used Hardware (for example d:\Entwicklung\ARM_based_HW\Hardware\PCAN-Router\ )
If you have copied your complete prooject in a folder in this subfolder, run the SetPath_for_VSCode.vbs again, so that the needed settings for your project will be created (".vscode" Directory)
The run VSCode. Open the Folder (your project main folder) and use in the main menue "Terminal - Run Task" - select make clean - then make all.
If you have unzip the package on your PC, copy your Project Folder in a Subfolder of the used Hardware (for example d:\Entwicklung\ARM_based_HW\Hardware\PCAN-Router\ )
If you have copied your complete prooject in a folder in this subfolder, run the SetPath_for_VSCode.vbs again, so that the needed settings for your project will be created (".vscode" Directory)
The run VSCode. Open the Folder (your project main folder) and use in the main menue "Terminal - Run Task" - select make clean - then make all.
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------