You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<h1id="specific-consideration-for-available-flash-size-inside-linker-file">Specific consideration for available FLASH size inside linker file</h1>
52
+
<p>The available flash size depends on the wireless binary used inside the STM32WB device.</p>
53
+
<p>The linker files templates for IAR, KEIL and GCC provide example of implementation which can be tuned.</p>
54
+
<p>You can refer to the below chapters to optimize the usage of the flash on your device.</p>
55
+
<h2id="stm32wb55xx-stm32wb50xx-and-stm32wb5m">STM32WB55xx, STM32WB50xx and STM32WB5M</h2>
56
+
<p>The default linker file provided in “/Drivers/CMSIS/DeviceST/STM32WBxx/Source/Templates” allows the application to use 512KB of flash.</p>
57
+
<p>The maximum flash memory that can be used by the application is up to the Secure Flash Start Address (SFSA) that can be read from the option byte.</p>
58
+
<p>The __ICFEDIT_region_ROM_end__ in the linker can be modified with a value up to : (0x08000000 + (SFSA << 12)) - 1.</p>
59
+
<p>Example:</p>
60
+
<ul>
61
+
<li>When the SFSA option byte is set to 0xA0, the maximum value to be used for __ICFEDIT_region_ROM_end is 0x0809FFFF which is 640KB of flash.</li>
62
+
</ul>
63
+
<p>Note:</p>
64
+
<ul>
65
+
<li>The SFSA option byte can only be set by the CPU2. The user cannot modify that value.</li>
66
+
</ul>
67
+
<h2id="stm32wb35xx-and-stm32wb30xx">STM32WB35xx and STM32WB30xx</h2>
68
+
<p>The default linker file provided in "/Drivers/CMSIS/Device/ST/STM32WBxx/Source/Templates allows the application to use 120KB of flash.</p>
69
+
<p>The maximum flash memory that can be used by the application is up to the Secure Flash Start Address (SFSA) that can be read from the option byte.</p>
70
+
<p>The __ICFEDIT_region_ROM_end__ in the linker can be modified with a value up to : (0x08000000 + (SFSA << 12)) - 1.</p>
71
+
<p>Example:</p>
72
+
<ul>
73
+
<li>When the SFSA option byte is set to 0x32, the maximum value to be used for __ICFEDIT_region_ROM_end is 0x08031FFF – which is 200KB of flash</li>
74
+
</ul>
75
+
<p>Note:</p>
76
+
<ul>
77
+
<li>The SFSA option byte can only be set by the CPU2. The user cannot modify that value.</li>
0 commit comments