ESP32H2: The build text layout keep reseting terminal to display memory map after build

Riscy00
Posts: 5
Joined: Wed May 15, 2024 7:12 pm

ESP32H2: The build text layout keep reseting terminal to display memory map after build

Postby Riscy00 » Thu Jun 06, 2024 10:04 pm

ESP32H2 VSC: The build keep cleariing build message terminal to display memory map text after the build. How to stop this?

I tried to use using idf.py build -v with verbose in the python command below (task.json) where I run the task via command palette and selected Build/Verboke, it does not work because it does recognise the -v. The API manual say it should work.

How to stop self clearing terminal screen after it build so I can read build message, how to disable memory map text which causing the problem.

Is there way to save build message into log file?
-----------------------------------------------------------------------------------------------------------

Code: Select all

{
  "version": "2.0.0",
  "tasks": [

Below is custom build with added build command -v. It is copied from below and amended as highlighted.  

    {
      "label": "Build/Verbose- Build project",
      "type": "shell",
      "command": "${config:idf.pythonBinPath} ${config:idf.espIdfPath}/tools/idf.py build -v",
      "windows": {
        "command": "${config:idf.pythonBinPathWin} ${config:idf.espIdfPathWin}\\tools\\idf.py build -v",
        "options": {
          "env": {
            "PATH": "${env:PATH};${config:idf.customExtraPaths}"
          }
        }
      },
      "options": {
        "env": {
          "PATH": "${env:PATH}:${config:idf.customExtraPaths}"
        }
      },
      "problemMatcher": [
        {
          "owner": "cpp",
          "fileLocation": [
            "autoDetect",
            "${workspaceFolder}"
          ],
          "pattern": {
            "regexp": "^(.*?):(\\d+):(\\d*):?\\s+(?:fatal\\s+)?(warning|error):\\s+(.*)$",
            "file": 1,
            "line": 2,
            "column": 3,
            "severity": 4,
            "message": 5
          }
        }
      ],
      "group": {
        "kind": "build",
        "isDefault": true
      }
    },

Below is general build derived from ESP-IDF which is copied automatically into the project.  

    {
      "label": "Build - Build project",
      "type": "shell",
      "command": "${config:idf.pythonBinPath} ${config:idf.espIdfPath}/tools/idf.py build ",
      "windows": {
        "command": "${config:idf.pythonBinPathWin} ${config:idf.espIdfPathWin}\\tools\\idf.py build",
        "options": {
          "env": {
            "PATH": "${env:PATH};${config:idf.customExtraPaths}"
          }
        }
      },
      "options": {
        "env": {
          "PATH": "${env:PATH}:${config:idf.customExtraPaths}"
        }
      },
      "problemMatcher": [
        {
          "owner": "cpp",
          "fileLocation": [
            "autoDetect",
            "${workspaceFolder}"
          ],
          "pattern": {
            "regexp": "^(.*?):(\\d+):(\\d*):?\\s+(?:fatal\\s+)?(warning|error):\\s+(.*)$",
            "file": 1,
            "line": 2,
            "column": 3,
            "severity": 4,
            "message": 5
          }
        }
      ],
      "group": {
        "kind": "build",
        "isDefault": true
      }
    },
    {
      "label": "Set ESP-IDF Target",
      "type": "shell",
And so on.

MicroController
Posts: 1704
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: ESP32H2: The build text layout keep reseting terminal to display memory map after build

Postby MicroController » Thu Jun 06, 2024 10:44 pm

I build via the CMake extension most of the time (F7) which builds the binary but does not run the size command afterwards.

Who is online

Users browsing this forum: No registered users and 97 guests