Skip to content

loadFiles not working as expected with PE Micro servertype #1019

@tsweaver321

Description

@tsweaver321

With servertype set to "pe" and 2 elf files (bootloader and application) listed in loadFiles, each file is being programmed to my target's flash, but, unfortunately, a complete flash erase is done before each elf is programmed. The result is that only the 2nd elf file remains loaded at the end. When multiple files are programmed using the loadFiles setting, a complete flash erase should only happen before the first elf file is programmed.

Currently, we're working around this issue by using another tool to reprogram the bootloader after we've used VS Code to program a changed application (vni). At that point, debugging of the application in Cortex-Debug is working as expected. I'm loading symbols from application elf only.

bootloader is from 0x00000000 to 0x00003FFF
application is from 0x00004000 to 0x0017FFFF

launch.json
terminal_pe_launch
debug_console_pe_launch.txt

Windows 10 Enterprise
VS Code Version 1.88.1
Cortex-Debug v1.12.1
P&E GDB Server for Arm(R) devices, Version 9.34.00.00
GNU gdb (GNU Tools for Arm Embedded Processors 9-2019-q4-major) 8.3.0.20190709-git
Arm GNU Toolchain 13.2.rel1 (Build arm-13.7) 13.2.1 20231009
Device: NXP S32K148
FreeRTOS: 10.5.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions