From 43c0b412165bb571484030e6c3b02443a85c4eb4 Mon Sep 17 00:00:00 2001 From: Yao ZHANG Date: Mon, 3 May 2021 10:12:10 +0200 Subject: [PATCH] Removed VSCode section for now from README --- README.md | 68 ------------------------------------------------------- 1 file changed, 68 deletions(-) diff --git a/README.md b/README.md index dc8805fe2..ac62b9911 100644 --- a/README.md +++ b/README.md @@ -443,74 +443,6 @@ cutecom& Then please configure your terminal program to use /dev/ttyUSB1 with a 115200 baud rate, 8 data bits and 1 stop bit. -## Vscode integration - -SDK examples can be compiled and run on boards from Vscode. - -### Setup - -The GDB version included in the GAP toolchain is too old to properly work with the debug, you need to download and install the riscv toolchain and make sure riscv64-unknown-elf-gdb is in the PATH. - -Vscode is using some files such as tasks.json and launch.json to know how to build and run on the target. - -Once the SDK is configured, you can generate a sample version of these files from an example with: - -~~~~~shell -cd examples/pmsis/helloworld -make vscode -~~~~~ - -Everything should be properly setup for building the example but you need to modify a few files for the execution. For the build, you may just need to modify the file .vscode/script/build.sh to put the proper platform on this command: -~~~~~shell -make all platform=fpga -~~~~~ - - -Then modify .vscode/tasks.json and modify the openocd command to put the absolute path to the files and add any needed option: - -~~~~~shell -"command": "/openocd.exe -f /scripts/tcl/interface/ftdi/olimex-arm-usb-ocd-h.cfg -f /tools/gap8-openocd-tools/tcl/gap9revb.tcl" -~~~~~ - -And finally modify .vscode/launch.json and modify the gdb command to match your IP address and openocd gdb port: - -~~~~~shell -"text": "target extended-remote :3333", -~~~~~ - -### Launch Vscode - -From your example folder, execute: - -~~~~~shell -code . -~~~~~ - -You should see vscode with all the files from your example visible on the left panel. You can now edit and save all the files. - -### Build the example - -Click on "Terminal"->"Run Task"->"Build from Makefile"->"Continue without scanning the task output" to build your test. - -Check any problem that occurs in the terminal window of vscode. If you don’t see anything happening, you may have run vscode without the --log trace option. - - -### Launch Openocd - -Click on "Terminal"->"Run Task"->"Openocd"->"Continue without scanning the task output" - -You should see on the terminal window, Openocd being launched and connecting to the target. - -You can keep this terminal opened for several runs of your test, and you can kill it with the trash icon if something goes really wrong or you want to close it. - - -### Launch the example - -Click on "Run"->"Start Debugging" and then do normal vscode debug operations, like running, stopping, adding breakpoints and so on. - -All the printf from the application is visible on the openocd terminal. - - ## Documentation