Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

loadFiles not working as expected with PE Micro servertype #1019

Closed
tsweaver321 opened this issue May 21, 2024 · 3 comments
Closed

loadFiles not working as expected with PE Micro servertype #1019

tsweaver321 opened this issue May 21, 2024 · 3 comments

Comments

@tsweaver321
Copy link

tsweaver321 commented May 21, 2024

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

@tsweaver321
Copy link
Author

Full Debug Console dump:
debug_console_pe_launch.txt

@tsweaver321
Copy link
Author

I see there's already a PR for this. Closing. #989

@tsweaver321
Copy link
Author

Existing PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant