ESP32H2: The build text layout keep reseting terminal to display memory map after build
Posted: 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?
-----------------------------------------------------------------------------------------------------------
And so on.
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",