JorgeGzm commented on issue #12625:
URL: https://github.com/apache/nuttx/issues/12625#issuecomment-2212464882

   Hi @tommasoclini , I using the NuttX Helpers(MicroHobby) plugin for vscode 
and add new tasks
   
   ```
   // launch.json
   {
       "version": "0.2.0",
       "configurations": [
           {
               "name": "J-Link",
               "cwd": "${workspaceRoot}",
               "executable": "${workspaceFolder}/nuttx/nuttx",
               "request": "launch",
               "type": "cortex-debug",
               "device": "stm32h753bi",
               "interface": "swd",
               "runToEntryPoint": "main",
               "servertype": "jlink",
               "liveWatch": {
                   "enabled": true,
                   "samplesPerSecond": 4
               },
               "preLaunchTask": "Build",
           },
           {
               "name": "ST-Link",
               "cwd": "${workspaceFolder}",
               "executable": "${workspaceFolder}/nuttx/nuttx",
               "request": "launch",
               "type": "cortex-debug",
               "servertype": "stutil",
               "serverArgs": [
                   "--freq=24000k"
               ],
               "device": "stm32h753bi",
               "interface": "swd",
               "svdFile": "",
               "swoConfig": {}
           },
       ]
   }
   ```
   ```
   // settings.json
   {
       "C_Cpp.errorSquiggles": "enabled",
       "C_Cpp.enhancedColorization": "enabled",
       "C_Cpp.dimInactiveRegions": true,
       "C_Cpp.inactiveRegionOpacity": 1,
       "C_Cpp.default.forcedInclude": [
           "${workspaceFolder}/nuttx/include/nuttx/config.h",
       ],
       "C_Cpp.inactiveRegionBackgroundColor": "#000000",//"#793d1c",
       "C_Cpp.inactiveRegionForegroundColor": "#FFFFFF",
       "ctags.languages": [
           "Kconfig",
           "Make"
       ],
       "cortex-debug.variableUseNaturalFormat": false,
       "cortex-debug.stlinkPath": "/usr/bin/st-utils",
       // "cortex-debug.gdbPath": "/usr/bin/arm-none-eabi-gdb",
       "cortex-debug.gdbPath": "gdb-multiarch",
       "nuttx.checkPatch": false,
       "nuttx.checkPatchPath": "${workspaceFolder}/nuttx/tools/checkpatch.sh",
       "nuttx.configureScriptPath": 
"${workspaceFolder}/nuttx/tools/configure.sh",
       "files.associations": {
       },
       "cmake.sourceDirectory": "/home/jaga/nuttxspace/apps",
       "restructuredtext.syntaxHighlighting.disabled": true,
       "cmake.configureOnOpen": true,
   }
   ```
   
   ```
   // task.json
   {
       "version": "2.0.0",
       "tasks": [
           {
               "label": "Configure",
               "command": "${workspaceFolder}/nuttx/tools/configure.sh",
               "type": "shell",
               "args": [
                   "-l",
                   "${command:nuttx.chooseFromConfigureList}"
               ],
               "problemMatcher": [],
               "presentation": {
                   "reveal": "always"
               },
               "icon": {
                   "id": "list-selection",
                   "color": "terminal.ansiBlue"
               },
               "group": "build"
           },
           {
               "label": "Build",
               "type": "shell",
               "command": "make",
               "args": [
                   "-j",
                   "$(nproc)"
               ],
               "options": {
                   "cwd": "${workspaceFolder}/nuttx"
               },
               "problemMatcher": [],
               "icon": {
                   "id": "flame",
                   "color": "terminal.ansiRed"
               },
               "group": "build"
           },
           {
               "label": "DistClean",
               "type": "shell",
               "command": "make",
               "args": [
                   "distclean"
               ],
               "options": {
                   "cwd": "${workspaceFolder}/nuttx"
               },
               "problemMatcher": [],
               "icon": {
                   "id": "flame",
                   "color": "terminal.ansiRed"
               },
               "group": "build"
           },
           {
               "label": "run-ctags",
               "type": "shell",
               "command": "echo",
               "args": [
                   "${command:embeddedLinuxDev.regenerateCTags}"
               ],
               "problemMatcher": [],
               "icon": {
                   "color": "terminal.ansiGreen",
                   "id": "variable"
               },
               "runOptions": {
                   "runOn": "folderOpen"
               }
           },
           {
               "label": "J-Link Flash",
               "command": "JLinkExe",
               "type": "shell",
               "args": [
                   "-device",
                   "STM32H753BI",
                   "-if",
                   "SWD",
                   "-speed",
                   "4000",
                   "-commanderscript",
                   "linum.jlink"
               ],
               "problemMatcher": [],
               "presentation": {
                   "reveal": "always"
               },
               "icon": {
                   "id": "list-selection",
                   "color": "terminal.ansiBlue"
               },
               "group": "build"
           },
           {
               "label": "ST-Link Flash",
               "command": "st-flash",
               "type": "shell",
               "args": [
                   "--format",
                   "ihex", 
                   "write",               
                   "${workspaceFolder}/nuttx/nuttx.hex",                
               ],
               "problemMatcher": [],
               "presentation": {
                   "reveal": "always"
               },
               "icon": {
                   "id": "list-selection",
                   "color": "terminal.ansiBlue"
               },
               "group": "build"
           },         
       ]
   }
   
   ```
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to