Thank you for your reply. Yes, this is the only privileged variable with no-zero initial value.
There are some other minor issues in link script, maybe also not issues:
1. If enable timer,
PrivilegedData
RegionSize exceed 256.
2. If change flash start address to other value than zero, link fail. Have to change:
.text :
{
/* Non privileged code kept out of the first 16K or flash. */
. = __privileged_functions_start__ + _Privileged_Functions_Region_Size;
to
.text :
{
/* Non privileged code kept out of the first 16K or flash. */
. = ORIGIN( FLASH ) + _Privileged_Functions_Region_Size;
In my environment, need change these to get right link result.
3. Also have to change this to put .bss after
PrivilegedData
RegionSize.
. = ORIGIN( SRAM ) + _Privileged_Data_Region_Size;
.bss :
{
*(.bss*)
*(COMMON)
_ebss = .;
} > SRAM
to
.bss :
{
. = ORIGIN( SRAM ) + _Privileged_Data_Region_Size;
*(.bss*)
*(COMMON)
_ebss = .;
} > SRAM