Open-CMSIS-Pack / devtools

Open-CMSIS-Pack development tools - C++
Apache License 2.0
72 stars 54 forks source link

Improve documentation on `cdefault.yml` #1641

Closed ReinhardKeil closed 3 weeks ago

ReinhardKeil commented 1 month ago

The Problem To Be Solved

cdefault.yml is a good starting point, but there are a few issues that should be improved for GCC.

  1. Link option --specs=rdimon.specs Enables semihosting, but may actually create problems as it runs on a breakpoint. Should this be in the default?

  2. Linker warning warning: ...elf has a LOAD segment with RWX permissions when using the default linker script management. What is causing this? Can it be solved or does this need to be in the documentation?

jkrech commented 1 month ago

1) The rational behind enabling semihosting for GCC was driven by running solutions on AVH-FVP models using semihosting for test output.

2) https://metebalci.com/blog/solution-to-load-segment-with-rwx-permissions-warning-with-cmsis/ seems to describe to assign permissions manually. Maybe someone can propose a solution that is compatible with the existing concept. The warning wants to prevent having writable code sections.

ReinhardKeil commented 1 month ago

Decision on 1. is to not enable semihosting (leave the existing toolchain default).