File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed
TARGET_NUVOTON/TARGET_M480/device Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,7 @@ void SystemInit (void)
76
76
/* Disable Flash Access Cycle Auto-tuning, set access cycle for CPU @ 192MHz */
77
77
FMC -> CYCCTL = FMC_CYCCTL_FADIS_Msk | (8 << FMC_CYCCTL_CYCLE_Pos );
78
78
79
+ #if MBED_CONF_TARGET_SPIM_CCM_ENABLE
79
80
// Divert SRAM bank2 (32 KB) to CCM from SPIM cache
80
81
// NOTE: C-runtime not initialized yet. Ensure no static memory (global variable) are accessed in function below.
81
82
// NOTE: SPIM must keep enabled to run CCM mode.
@@ -84,5 +85,6 @@ void SystemInit (void)
84
85
SPIM_DISABLE_CACHE ();
85
86
SPIM_ENABLE_CCM ();
86
87
while (! SPIM_IS_CCM_EN ());
88
+ #endif
87
89
}
88
90
/*** (C) COPYRIGHT 2016 Nuvoton Technology Corp. ***/
Original file line number Diff line number Diff line change 12762
12762
" IAR"
12763
12763
],
12764
12764
"config" : {
12765
+ "spim-ccm-enable" : {
12766
+ "help" : " Enable SPIM CCM mode to spare 32KiB SRAM for normal use" ,
12767
+ "value" : 0
12768
+ },
12765
12769
"gpio-irq-debounce-enable" : {
12766
12770
"help" : " Enable GPIO IRQ debounce" ,
12767
12771
"value" : 0
12840
12844
"device_name" : " M487JIDAE" ,
12841
12845
"detect_code" : [
12842
12846
" 1304"
12843
- ]
12847
+ ],
12848
+ "overrides" : {
12849
+ "spim-ccm-enable" : 1
12850
+ }
12844
12851
},
12845
12852
"NUMAKER_IOT_M487" : {
12846
12853
"inherits" : [
12852
12859
"device_name" : " M487JIDAE" ,
12853
12860
"detect_code" : [
12854
12861
" 1308"
12855
- ]
12862
+ ],
12863
+ "overrides" : {
12864
+ "spim-ccm-enable" : 1
12865
+ }
12856
12866
},
12857
12867
"TMPM066" : {
12858
12868
"inherits" : [
You can’t perform that action at this time.
0 commit comments