Skip to content

Commit

Permalink
No scrubbing on scratchpad build
Browse files Browse the repository at this point in the history
  • Loading branch information
bsousi5 committed Aug 13, 2020
1 parent e56490d commit d9ec971
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions templates/base.lds
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ SECTIONS
* certain core features */
PROVIDE(__metal_chicken_bit = {{ chicken_bit|default(0) }});

{% if eccscrub_en %}
/* The memory_ecc_scrub bit is used by _entry code to enable/disable
* memories scrubbing to zero */
PROVIDE(__metal_eccscrub_bit = {{ eccscrub_bit|default(0) }});
Expand Down
1 change: 1 addition & 0 deletions templates/default.lds
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@
# Set layout options
#}
{% set ramrodata = False %}
{% set eccscrub_en = True %}
1 change: 1 addition & 0 deletions templates/freertos.lds
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#}
{% set ramrodata = False %}
{% set privilege_en = True %}
{% set eccscrub_en = True %}

{% block privileged_function_section %}
.privileged_functions : ALIGN (4) {
Expand Down
1 change: 1 addition & 0 deletions templates/ramrodata.lds
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
# Set layout options
#}
{% set ramrodata = True %}
{% set eccscrub_en = True %}

{% block force_itim %}
{% if text_in_itim %}
Expand Down
1 change: 1 addition & 0 deletions templates/scratchpad.lds
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@
# Set layout options
#}
{% set ramrodata = False %}
{% set eccscrub_en = False %}

0 comments on commit d9ec971

Please sign in to comment.