Open-CMSIS-Pack / Open-CMSIS-Pack-Spec

Common Microcontroller Software Interface Standard - Pack(age) based distribution system
https://open-cmsis-pack.github.io/Open-CMSIS-Pack-Spec/
Apache License 2.0
54 stars 22 forks source link

What is attribute `init` and `uninit` used in element device/board memory #322

Open ReinhardKeil opened 2 months ago

ReinhardKeil commented 2 months ago

What is attribute init and uninit used in element device/board memory: https://open-cmsis-pack.github.io/Open-CMSIS-Pack-Spec/main/html/pdsc_family_pg.html#element_memory

Today's link scripts handle init/uninit independent from this attribute. It appears that the usage is historic and no longer relevant. See https://github.com/Open-CMSIS-Pack/devtools/issues/1718

jkrech commented 2 months ago

In uVision' Options for target dialog the target tab's memory is populated by the memory elements from the device. RW Memories have a check-box "NoInit". If a linker script is automatically generated from this data the "NoInit" results in the use of UNINIT for this memory region.

  RW_RAM1 0x2007C000 UNINIT 0x00000800  {  ; RW data