New Arduino project on esp32 – incorrect mapping only on cpp files

Sysprogs forums Forums VisualGDB New Arduino project on esp32 – incorrect mapping only on cpp files

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #34841
    TracesOfNut
    Participant

    Hi,

    If I create a new Arduino project for the esp32 with VisualGDB, I can place a break point in the main .ino file without issue.

    If I add  test.cpp and test.h to the project, when I try to place a break point in test.cpp, I get a warning “Incorrect path mappings might be preventing breakpoints in this file from working correctly”.

    Attachments are…

    step1.png – adding the breakpoint
    step2.png – after clicking diagnose this dialog shows
    step3.png – After clicking Next >.  At this point the breakpoint is working.
    Path mapping.png – The path mapping section of properties.

     

    This has only started recently.   The same happens on my Dads computer even after updating all the components to the latest version.

    My current installation has (visualgdb 5.6R4 (build 4777)   esp32 toolchain 12.2.0/12.1/r1,    openocd 20210625-0.11.0,   esp debug methods 20210629 )

    Any clues as to why I am getting these mapping errors.

     

    Any help appreciated

    regards
    Justin

     

    Below the GDB output when adding the breakpoint.

     

    esp32.cpu0: Target halted, PC=0x4014D2C2, debug_reason=00000000
    Set GDB target to 'esp32.cpu0'
    esp32.cpu1: Target halted, PC=0x4014D2C2, debug_reason=00000000
    =thread-created,id="2",group-id="i1"
    [New Thread 1073466864]
    =thread-created,id="3",group-id="i1"
    [New Thread 1073447304]
    =thread-created,id="4",group-id="i1"
    [New Thread 1073450460]
    =thread-created,id="5",group-id="i1"
    [New Thread 1073436764]
    =thread-created,id="6",group-id="i1"
    [New Thread 1073446240]
    =thread-created,id="7",group-id="i1"
    [New Thread 1073452160]
    =thread-created,id="8",group-id="i1"
    [New Thread 1073452520]
    =thread-created,id="9",group-id="i1"
    [New Thread 1073445360]
    =thread-created,id="10",group-id="i1"
    [New Thread 1073443660]
    Thread
    1 received signal SIGINT, Interrupt.
    [Switching to Thread 1073465464]
    0x4014d2c2 in esp_pm_impl_waiti () at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/hal/esp32/include/hal/cpu_ll.h:183
    183 in /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/hal/esp32/include/hal/cpu_ll.h
    *stopped,reason="signal-received",signal-name="SIGINT",signal-meaning="Interrupt",frame={addr="0x4014d2c2",func="esp_pm_impl_waiti",args=[],file="/Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/hal/esp32/include/hal/cpu_ll.h",fullname="/Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/hal/esp32/include/hal/cpu_ll.h",line="183",arch="xtensa"},thread-id="1",stopped-threads="all"
    -break-insert -f J:/ArduinoProject1/Output/ESP32_Wrover_Module/Debug/sketch/test.cpp:7
    Reading in symbols for J:\ArduinoProject1\Output\ESP32_Wrover_Module\Debug\sketch\test.cpp...
    done.
    &"No source file named J:/ArduinoProject1/Output/ESP32_Wrover_Module/Debug/sketch/test.cpp.\n"
    ^done,bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="<PENDING>",pending="J:/ArduinoProject1/Output/ESP32_Wrover_Module/Debug/sketch/test.cpp:7",times="0",original-location="J:/ArduinoProject1/Output/ESP32_Wrover_Module/Debug/sketch/test.cpp:7"}
    -file-list-exec-source-files
    ^done,files=[{file="J:\\ArduinoProject1\\sketches/test.cpp",fullname="J:\\ArduinoProject1\\sketches\\test.cpp"}, ....... a lot more more folders..."}]
    -exec-continue
    ^running
    *running,thread-id="all"

     

     

     

    Attachments:
    You must be logged in to view attached files.
    #34846
    support
    Keymaster

    Hi,

    It looks like your technical support period has expired. We would be happy to help you, however we would kindly ask you to renew your technical support on the following page first: https://sysprogs.com/splm/mykey

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.