こんにちは。NoMaYです。ルネサスさんからRenesas Extensions for Visual Studio Code(テクニカルプレビューバージョン)が出ていましたので触ってみることにしました。Renesas Extensions for Visual Studio Code(テクニカルプレビューバージョン) 製品ページwww.renesas.com/jp/ja/software-tool/renesas_extension_of_vscodeRenesas VS Code Extension Helptool-support.renesas.com/e2studio/vscode/docs/debug/index.html[関連スレッド]最近Atom IDEとかVisual Studio Codeとか新しい開発環境が出て来てますね(Renesas CSplusと連携させる方法を探したいですね)community-ja.renesas.com/cafe_rene/forums-groups/tools/f/forum21/4553/atom-ide-visual-studio-code-renesas-csplusVisual Studio 2022 Community EditionでRX MCUやRL78 MCUのSoftware Developmentが出来るか試してみようと思いますcommunity-ja.renesas.com/cafe_rene/forums-groups/tools/f/forum21/7703/visual-studio-2022-community-edition-rx-mcu-rl78-mcu-software-developmente2 studioでCMakeでビルドする、というアプリケーションノートがあるのですがスマートコンフィグレータは使えるのでしょうか?community-ja.renesas.com/cafe_rene/forums-groups/tools/f/forum21/7713/e2-studio-cmake
こんにちは。NoMaYです。私が良く見るニュースサイトで、AIコーディング副操縦士たるGitHub Copilot + VSCode + Pythonの記事が目に留まりました。なんか凄そうです。(C++言語はサポートされているようですが、C言語はサポートされていないようです。 そんなことでは無くて、CopilotからのC++言語での提案に比べるとCopilotからのC言語での提案はちょっと劣りますよ…
以下、次に、まずは片側だけですけれども、Renesas VS Code Extension Helpのデバッグ開始手順に従って、シミュレータデバッグが出来るようにしてみました。プロジェクトファイル一式を添付しておきます。・ RXスマートコンフィグレータを使用しない設定でe2 studioでプロジェクト生成したもの tb_rx130_ccrx_minimal・ RXスマートコンフィグレータを使用したTB-RX130のオフィシャルLED点滅サンプルプログラム tb_rx130_r20an0468jj0100_blinkyissue_RenesasVSCodeExtension_20230309.zip ← まだtb_rx130_ccrx_minimalしかビルド/デバッグ出来ませんなお、VSCodeのデバッグ用環境設定ファイルにはユーザ環境依存のパスが以下の通り含まれていますので、適宜変更する必要があります。tb_rx130_ccrx_minimal/.vscode/launch.json
{ // IntelliSense を使用して利用可能な属性を学べます。 // 既存の属性の説明をホバーして表示します。 // 詳細情報は次を確認してください: go.microsoft.com/.../ "version": "0.2.0", "configurations": [ { "type": "renesas", "request": "launch", "name": "Renesas Simulator Debugging", "program": "${workspaceFolder}/build/name.x", "gdb": "C:/Renesas/e2studio64/SupportFiles/.eclipse/com.renesas.platform_733684649/DebugComp/RX/rx-elf-gdb", "target": { "deviceFamily": "RX", "device": "R5F51308", "debuggerType": "SIMULATOR", "server": "C:/Renesas/e2studio64/SupportFiles/.eclipse/com.renesas.platform_733684649/DebugComp/RX/e2-server-gdb", "port": "61234", "serverParameters": ["-p", "61234", "-g", "SIMULATOR", 。。。途中省略。。。, "--english", "--gdbVersion=", "7.2"] } } ]}
以下、Renesas VS Code Extension HelpのウェブページとVSCodeの画面コピーおよびVSCodeのデバッガ起動時のコンソールログです。vscode_debug.log
GDB Server for Renesas targets. Version 9.0.0.v20221226-025508 [2de64c59] (Jan 6 2023 16:58:54) Starting server with the following options: Raw options : C:/Renesas/e2studio64/SupportFiles/.eclipse/com.renesas.platform_733684649/DebugComp/RX/e2-server-gdb -g SIMULATOR -t R5F51308 -p 61234 -g SIMULATOR -t R5F51308 -uConnectionTimeout= 30 -uPeripheralClkRatio= 1 -uCpuClkFreq= 32 -uRegisterSetting= 0 -uModePin= 0 -uCacheDecode= 1 -uIOModule= IodllForCMT_1u.dll -uIOModule= IodllForICU.dll -n 0 -uWorkRamAddress= 0 -uEmStopInt= 0 -uEmStopInterrupt= 0 -uEmStopFPexp= 0 -l -uCore= SINGLE_CORE|enabled|1|main -uSyncMode= async -uFirstGDB= main --english --gdbVersion= 7.2 GNU gdb (GDB) 7.8.2-20210419-Build_1 Copyright (C) 2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "--host=i686-pc-mingw32 --target=rx-elf". Type "show configuration" for configuration details. For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word". GNU gdb (GDB) 7.8.2-20210419-Build_1 Copyright (C) 2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "--host=i686-pc-mingw32 --target=rx-elf". Type "show configuration" for configuration details. For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word". set step-mode off set breakpoint always-inserted on GDB unhandled notify: cmd-param-changed: {"param":"breakpoint always-inserted","value":"on"} inferior 1 [Switching to inferior 1 [<null>] (<noexec>)] set remotetimeout 10 GDB unhandled notify: cmd-param-changed: {"param":"remotetimeout","value":"10"} set tcp connect-timeout 30 set confirm off GDB unhandled notify: cmd-param-changed: {"param":"confirm","value":"off"} Connecting to SIMULATOR, RX Target GDBServer endian : little Target power from emulator : Off Starting target connection Finished target connection GDB: 61234 connected to remote target localhost:61234 monitor do_nothing info line *224 No line number information available for address 0xe0 set backtrace limit 11 monitor is_target_connected Target connection status - OK Connection status=connected. monitor set_target,R5F51308 monitor is_target_connected Target connection status - OK Connection status=connected. monitor prg_download_start_on_connect Starting download exec-file "C:\\Renesas\\GitHubDesktop\\workspaces\\work_vscode\\tb_rx130_ccrx_minimal/build/name.x" load "C:\\Renesas\\GitHubDesktop\\workspaces\\work_vscode\\tb_rx130_ccrx_minimal/build/name.x" Loading section PResetPRG, size 0x29 lma 0xffff8000 Loading section .rodata, size 0x34 lma 0xffff802c Loading section C$DSEC, size 0x24 lma 0xffff8060 Loading section C$BSEC, size 0x18 lma 0xffff8084 Loading section C$VECT, size 0x400 lma 0xffff809c Loading section .data, size 0x4 lma 0xffff849c Loading section PIntPRG, size 0xf2 lma 0xffff84a0 Loading section .text, size 0x71 lma 0xffff8592 Loading section FIXEDVECT, size 0x80 lma 0xffffff80 Start address 0xffff8000, load size 1664 Transfer rate: 85 KB/sec, 184 bytes/write. load "C:\\Renesas\\GitHubDesktop\\workspaces\\work_vscode\\tb_rx130_ccrx_minimal/build/name.x" Loading section PResetPRG, size 0x29 lma 0xffff8000 Loading section .rodata, size 0x34 lma 0xffff802c Loading section C$DSEC, size 0x24 lma 0xffff8060 Loading section C$BSEC, size 0x18 lma 0xffff8084 Loading section C$VECT, size 0x400 lma 0xffff809c Loading section .data, size 0x4 lma 0xffff849c Loading section PIntPRG, size 0xf2 lma 0xffff84a0 Loading section .text, size 0x71 lma 0xffff8592 Loading section FIXEDVECT, size 0x80 lma 0xffffff80 Start address 0xffff8000, load size 1664 Transfer rate: 232 KB/sec, 184 bytes/write. monitor prg_download_end Finished download monitor reset monitor enable_stopped_notify_on_connect Program received signal SIGINT, Interrupt. PowerON_Reset_PC () at C:\Renesas\GitHubDesktop\workspaces\work_vscode\tb_rx130_ccrx_minimal\generate\/resetprg.c:80 80 void PowerON_Reset_PC(void) monitor enable_execute_on_connect monitor do_nothing set backtrace limit 11 Hardware breakpoint set at address 0xffff85b4 Temporary breakpoint 1, main () at C:\Renesas\GitHubDesktop\workspaces\work_vscode\tb_rx130_ccrx_minimal\src\/tb_rx130_ccrx_minimal.c:29 29 __nop();