forked from ARMmbed/mbed-os
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upload: NUVOTON: Change GDB load command to flash post-build processe…
…d image (#341) * Upload: PyOCD: Halt device after UPLOAD_LAUNCH_COMMANDS For pyocd debug, it appears the device under debug must be halted after UPLOAD_LAUNCH_COMMANDS, or debugger will become abnormal. * Convert output to Intel HEX format unconditionally in post-build This converts output to Intel HEX format unconditionally but to BIN format just on demand for the following reasons: 1. Most flash programming tools support Intel HEX format, e.g. GDB load command. 2. Output can have large holes in addresses which BIN format cannot handle and can generate very large file. * Upload: Support adjustment of debug commands for debug launch This gives chance to adjust GDB commands MBED_UPLOAD_LAUNCH_COMMANDS or MBED_UPLOAD_RESTART_COMMANDS for debug launch by implementing mbed_adjust_upload_debug_commands cmake function. * Upload: Change GDB load command to flash post-build processed image With this adjustment, GDB load command changes to "load <app>.hex" from just "load": 1. "Load" will load <app>.elf and is inappropriate for targets like bootloader or TF-M enabled which need to post-build process images. 2. "load <app>.bin" is not considered because GDB load command doesn't support binary format. * Upload: Generate GDB command line gdbinit for multiple application This enables generating GDB command line gdbinit file for single project multiple application scenario. The gdbinit file name would be <app>.gdbinit for distinct among multiple applications.
- Loading branch information
Showing
4 changed files
with
74 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters